Skip to content
Snippets Groups Projects
Commit 05737ec4 authored by dudgns2947's avatar dudgns2947
Browse files

repipeline

parent 9df86c5a
Branches
No related tags found
1 merge request!8repipeline
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 {
echo 'maven build failed' cleanup {
echo 'after all other post conditions'
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment