projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes Bug 1429: Add a different way to install nodejs
[osm/devops.git]
/
jenkins
/
ci-pipelines
/
ci_stage_2.groovy
diff --git
a/jenkins/ci-pipelines/ci_stage_2.groovy
b/jenkins/ci-pipelines/ci_stage_2.groovy
index
c433c14
..
67d1b5b
100644
(file)
--- a/
jenkins/ci-pipelines/ci_stage_2.groovy
+++ b/
jenkins/ci-pipelines/ci_stage_2.groovy
@@
-20,6
+20,7
@@
def project_checkout(url_prefix,project,refspec,revision) {
// this is done automaticaly by the multibranch pipeline plugin
// git url: "${url_prefix}/${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}"
sh "git fetch origin ${refspec}"
if (GERRIT_PATCHSET_REVISION.size() > 0 ) {
sh "git checkout -f ${revision}"
@@
-41,7
+42,7
@@
def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa
stage('License Scan') {
if (!JOB_NAME.contains('merge')) {
sh "devops/tools/license_scan.sh"
stage('License Scan') {
if (!JOB_NAME.contains('merge')) {
sh "devops/tools/license_scan.sh"
- }
+ }
else {
println("skip the scan for merge")
}
else {
println("skip the scan for merge")
}