Remove license check from Merge job 45/7945/8
authormadavi <jm00553988@techmahindra.com>
Thu, 12 Sep 2019 12:05:17 +0000 (17:35 +0530)
committermadavi <jm00553988@techmahindra.com>
Thu, 12 Sep 2019 13:22:26 +0000 (15:22 +0200)
Change-Id: Ie6d6ee1f4a05eab80cb7bf76b18849f5226c7c37
Signed-off-by: madavi <jm00553988@techmahindra.com>
jenkins/ci-pipelines/ci_stage_2.groovy

index ddbd80a..18de85f 100644 (file)
@@ -39,7 +39,12 @@ 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"
+      } 
+      else {
+        Println("skip the scan for merge")
+      }
     }
 
     container_name = "${project}-${branch}".toLowerCase()