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