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

repipeline

parent 9df86c5a
No related branches found
No related tags found
1 merge request!8repipeline
pipeline {
agent any
stages {
stage('Prepare') {
agent any
steps {
checkout scm
}
}post {
post {
success {
echo 'prepare success'
}
always {
echo 'done prepare'
}
cleanup {
echo 'after all other post conditions'
}
}
}
stage('maven build'){
pipeline {
agent any
stages {
stage('Prepare') {
agent any
steps {
sh 'mvn package'
checkout scm
}
post {
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