diff --git a/Jenkinsfile b/Jenkinsfile index 804f0c79489bfb3a25cfd4e6ea8fe2a09b6d63e4..77d96ff9615c1b37c8d5a821c22bf28a544a426b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,81 +1,36 @@ 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' - } - } - } - - - -pipeline { - - agent any - - stages { - - stage('Prepare') { - - agent any - - steps { - - checkout scm - - } - - post { - - success { - - echo 'prepare success' - + stage('maven build') { + steps { + sh 'mvn package' } - - always { - - echo 'done prepare' - - } - - cleanup { - - echo 'after all other post conditions' - + post { + success { + echo 'maven build success' + } + failure { + echo 'maven build failed' + } } - - } - } + } +} +