From: madavi Date: Fri, 4 Oct 2019 12:17:50 +0000 (+0530) Subject: Adding the git fetch to avoid build failure at git describe X-Git-Tag: v7.0.0rc1~59 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F8019%2F1;p=osm%2Fdevops.git Adding the git fetch to avoid build failure at git describe Change-Id: I1aa2bdb8e2ceebb366d756ebb0e838b761fd26b5 Signed-off-by: madavi --- 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}"