Skip to content
Snippets Groups Projects
Commit 9105b97f authored by 김영훈's avatar 김영훈
Browse files

Update Jenkinsfile

parent b0461107
No related branches found
No related tags found
No related merge requests found
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Prepare'){ stage('Prepare'){
agent any agent any
steps { steps {
checkout scm checkout scm
} }
}post {
post {
success{ success{
echo 'prepare success' echo 'prepare success'
} }
always{ always{
echo 'done prepare' echo 'done prepare'
} }
cleanup{ cleanup{
echo 'after all other post conditions' echo 'after all other post conditions'
} }
} }
} }
stage('maven build'){
pipeline {
agent any
stages {
stage('Prepare') {
agent any
steps { steps {
sh 'mvn package'
checkout scm
} }
post { post {
success{ success{
echo 'maven build success'
echo 'prepare success'
} }
always {
echo 'done prepare'
} }
failure {
cleanup { echo 'maven build failed'
echo 'after all other post conditions'
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment