From 7ca094a4c86698b4403fdde1c59545d886a0871b Mon Sep 17 00:00:00 2001 From: madavi Date: Fri, 4 Oct 2019 17:47:50 +0530 Subject: [PATCH] Adding the git fetch to avoid build failure at git describe Change-Id: I1aa2bdb8e2ceebb366d756ebb0e838b761fd26b5 Signed-off-by: madavi --- jenkins/ci-pipelines/ci_stage_2.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/ci-pipelines/ci_stage_2.groovy b/jenkins/ci-pipelines/ci_stage_2.groovy index c433c144..4d23cf17 100644 --- a/jenkins/ci-pipelines/ci_stage_2.groovy +++ b/jenkins/ci-pipelines/ci_stage_2.groovy @@ -19,7 +19,8 @@ def project_checkout(url_prefix,project,refspec,revision) { // checkout the project // this is done automaticaly by the multibranch pipeline plugin // git url: "${url_prefix}/${project}" - + + sh "git fetch --tags" sh "git fetch origin ${refspec}" if (GERRIT_PATCHSET_REVISION.size() > 0 ) { sh "git checkout -f ${revision}" -- 2.17.1