diff --git a/Jenkinsfile b/Jenkinsfile index a2c7696b5..7829a4430 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,25 +3,20 @@ pipeline { options { buildDiscarder(logRotator(numToKeepStr:'5')) - timeout(time: 60, unit: 'MINUTES') + timeout(time: 15, unit: 'MINUTES') disableConcurrentBuilds() } stages { stage('checkout') { steps { - checkout([$class: 'GitSCM', branches: [[name: '*/dev']], + checkout([$class: 'GitSCM', branches: [[name: "*/${env.BRANCH_NAME}"]], extensions: [[$class: 'CleanCheckout'], - [$class: 'LocalBranch', localBranch: 'dev']]]) + [$class: 'LocalBranch', localBranch: "${env.BRANCH_NAME}"]]]) } } stage('build') { - - when { - branch 'dev' - } - steps { withMaven( maven: 'default', // Tools declared in the Jenkins "Global Tool Configuration"