Skip to content
Snippets Groups Projects
Commit 599b6511 authored by 준하 김's avatar 준하 김
Browse files

Update Jenkinsfile

parent 98b17bee
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' }
failure {
echo 'maven build failed'
} }
always {
echo 'done prepare'
} }
cleanup {
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