From 98021f411a47265b80502fabfc5703f776b2999a Mon Sep 17 00:00:00 2001 From: Gaurav Katiyar Date: Wed, 30 May 2018 12:51:38 +0100 Subject: [PATCH] Modified Jenkins file --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef98144e5..dbf3de3de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {