Adding the git fetch to avoid build failure at git describe 19/8019/1
authormadavi <jm00553988@techmahindra.com>
Fri, 4 Oct 2019 12:17:50 +0000 (17:47 +0530)
committermadavi <jm00553988@techmahindra.com>
Fri, 4 Oct 2019 12:17:50 +0000 (17:47 +0530)
Change-Id: I1aa2bdb8e2ceebb366d756ebb0e838b761fd26b5
Signed-off-by: madavi <jm00553988@techmahindra.com>
jenkins/ci-pipelines/ci_stage_2.groovy

index c433c14..4d23cf1 100644 (file)
@@ -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}"