Skip to content
Snippets Groups Projects
Commit 7ca094a4 authored by madavi's avatar madavi
Browse files

Adding the git fetch to avoid build failure at git describe


Change-Id: I1aa2bdb8e2ceebb366d756ebb0e838b761fd26b5
Signed-off-by: default avatarmadavi <jm00553988@techmahindra.com>
parent c33cdc33
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment