projects
/
osm
/
devops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c33cdc3
)
Adding the git fetch to avoid build failure at git describe
19/8019/1
author
madavi
<jm00553988@techmahindra.com>
Fri, 4 Oct 2019 12:17:50 +0000
(17:47 +0530)
committer
madavi
<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
patch
|
blob
|
history
diff --git
a/jenkins/ci-pipelines/ci_stage_2.groovy
b/jenkins/ci-pipelines/ci_stage_2.groovy
index
c433c14
..
4d23cf1
100644
(file)
--- 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}"