diff --git a/Jenkinsfile b/Jenkinsfile index 0dd09c23f2d4cdb090692be1cedbef8d3238e846..1f2d94b71feadc76e91f917b1d973dc027cb62f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,34 +1,81 @@ pipeline { - agent any - stages { - stage('Prepare'){ - agent any - steps { - checkout scm - } - }post { - success{ - echo 'prepare success' - } - always{ - echo 'done prepare' - } - cleanup{ - echo 'after all other post conditions' - } + + agent any + + stages { + + stage('Prepare') { + + agent any + + steps { + + checkout scm + + } + + post { + + success { + + echo 'prepare success' + } + + always { + + echo 'done prepare' + + } + + cleanup { + + echo 'after all other post conditions' + + } + + } + } - stage('maven build'){ - steps { - sh 'mvn package' + + + +pipeline { + + agent any + + stages { + + stage('Prepare') { + + agent any + + steps { + + checkout scm + + } + + post { + + success { + + echo 'prepare success' + } - post { - success{ - echo 'maven build success' - } + + always { + + echo 'done prepare' + } - failure { - echo 'maven build failed' + + cleanup { + + echo 'after all other post conditions' + } - } -} \ No newline at end of file + + } + + } \ No newline at end of file