【Jenkins】Jenkinsfile
pipeline {
agent any
stages{
stage('Init'){
steps {
echo "Testing......"
}
}
stage('Build'){
steps {
echo "Building......"
}
}
stage('Deploy'){
steps {
echo "Code Deployed."
}
}
}
}
pipeline {
agent any
tools{
maven 'local maven'
}
stages{
stage ('build'){
steps{
sh 'mvn clean package'
}
}
}
}
[Day 26] Pipeline 專案 (中) - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天 (ithome.com.tw)
[Day 27] Pipeline 專案 (下) - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天 (ithome.com.tw)