Add compass task for iec CI/CD in community
[ci-management.git] / jjb / iec / iec.yaml
index 6594ec5..b0cc699 100644 (file)
@@ -24,6 +24,9 @@
       - fuel-virtual:
           slave-label: 'aarch64_dev'
           scenario: 'k8-calico-iec-noha'
+      - compass-virtual:
+          slave-label: 'aarch64_dev'
+          scenario: 'k8-calico-iec-noha'
 
     jobs:
       - 'iec-{deploy-type}-daily-{stream}'
           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:
-      - shell:
-          !include-raw-escape: ./iec-fuel-deploy.sh
+      - description-setter:
+          description: "POD: $NODE_NAME"
+      - conditional-step:
+          condition-kind: regex-match
+          regex: 'compass-.*'
+          label: '{deploy-type}'
+          steps:
+            - shell:
+                !include-raw-escape: ./iec-compass-build.sh
+            - shell:
+                !include-raw-escape: ./iec-compass-deploy.sh
+            - shell:
+                !include-raw-escape: ./iec-compass-destroy.sh
+      - conditional-step:
+          condition-kind: regex-match
+          regex: 'fuel-.*'
+          label: '{deploy-type}'
+          steps:
+            - shell:
+                !include-raw-escape: ./iec-fuel-deploy.sh
 
     publishers:
       - email:
     name: 'iec-fuel-baremetal-daily-master-trigger'
     triggers:
       - timed: ''
+- trigger:
+    name: 'iec-compass-virtual-daily-master-trigger'
+    triggers:
+      - timed: '0 13 * * *'