Modified Jenkins file

pull/1601/head
Gaurav Katiyar 2018-05-30 12:51:38 +01:00
parent 67f584fa08
commit 98021f411a
1 changed files with 3 additions and 5 deletions

8
Jenkinsfile vendored
View File

@ -20,11 +20,9 @@ pipeline {
stages {
stage ('Build') {
steps {
timeout(time: 20, unit: 'MINUTES') {
sh 'mvn versions:set -DnewVersion=1.3.3-${env.BUILD_NUMBER}'
}
timeout(time: 20, unit: 'MINUTES') {
sh 'mvn -B -V -U -T4 clean deploy -DaltDeploymentRepository=releases::default::https://nexus.greshamtech.com/content/repositories/thirdparty'
sh "mvn versions:set -DnewVersion=1.3.3-${env.BUILD_NUMBER}"
timeout(time: 10, unit: 'MINUTES') {
sh "mvn -B -V -U -T4 clean deploy -DaltDeploymentRepository=releases::default::https://nexus.greshamtech.com/content/repositories/thirdparty"
}
}
post {