[iec] deploy: Disable git submodule cloning 67/567/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 18 Apr 2019 13:01:22 +0000 (15:01 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 19 Apr 2019 17:02:13 +0000 (19:02 +0200)
IEC deploy jobs do not require cloning git submodules, which got
pretty heavy (more than 1GB), so at least for these jobs, disable
git submodules via JJB scm configuration.

Since `lf-infra-gerrit-scm` macro from lf-macros does not allow
configuration of submodule.disable, stop using said wrapper macro.

Change-Id: If6b41bf213a3cea095fabc03f8efbd3bda7d1723
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/iec/iec.yaml

index 6594ec5..391cdfa 100644 (file)
           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
 
     scm:
-      - lf-infra-gerrit-scm:
-          jenkins-ssh-credential: '{jenkins-ssh-credential}'
-          git-url: '{git-url}/{project}.git'
+      - git:
+          credentials-id: '{jenkins-ssh-credential}'
+          url: '{git-url}/{project}.git'
           refspec: ''
-          branch: '{branch}'
-          submodule-recursive: false
-          submodule-timeout: '{submodule-timeout}'
+          branches:
+            - 'refs/heads/{branch}'
+          skip-tag: true
+          wipe-workspace: true
+          submodule:
+            disable: true
+            recursive: false
+            timeout: '{submodule-timeout}'
           choosing-strategy: default
 
     builders: