// 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 ) {
stage('License Scan') {
if (!JOB_NAME.contains('merge')) {
sh "devops/tools/license_scan.sh"
- }
+ }
else {
println("skip the scan for merge")
}