Add JJB for Airship installer 03/68503/6
authorKaspars Skels <kaspars.skels@att.com>
Thu, 19 Sep 2019 20:09:40 +0000 (15:09 -0500)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 20 Sep 2019 19:27:38 +0000 (21:27 +0200)
This adds builder and job for simple Airship installer

Change-Id: I0b911d6aa62df14fd18dc9f45ed6d80cbf3dc2ac
Signed-off-by: Kaspars Skels <kaspars.skels@att.com>
jjb/airship/airship.yaml

index d577b20..8c1210b 100644 (file)
           name: slave
           default: '{slave}'
 
-- parameter:
-    name: airship-branch
-    parameters:
-      - string:
-          name: branch
-          default: '{branch}'
-
 - airship-containers: &airship-containers
     name: 'airship-containers'
     repo: '{repo}'
           fi
           docker rmi $image || true
 
+- builder:
+    name: airship-deploy
+    builders:
+      - shell: |
+          set +x
+          tools/deploy deploy_site
+
+- scm:
+    name: airship-scm
+    scm:
+      - git:
+          url: https://gerrit.opnfv.org/gerrit/airship
+          refspec: '+refs/changes/*:refs/changes/*'
+          branches:
+            - '{ref}'
+
+- parameter:
+    name: airship-branch
+    parameters:
+      - string:
+          name: branch
+          default: '{branch}'
+
+- job-template:
+    name: 'airship-deploy-{tag}'
+    parameters:
+      - airship-slave:
+          slave: '{slave}'
+      - airship-branch:
+          branch: '{branch}'
+    scm:
+      - airship-scm:
+          ref: $branch
+    builders:
+      - airship-deploy
+
+- project:
+    name: 'airship-deploy'
+    tag:
+      - latest:
+          branch: master
+          slave: intel-pod17
+    jobs:
+      - 'airship-deploy-{tag}'
 
 - job-template:
     name: 'airship-{repo}-{container}-{tag}-pull'
     parameters:
       - airship-slave:
           slave: '{slave}'
+      - airship-branch:
+          branch: 'master'
     properties:
       - build-blocker:
           use-build-blocker: true
           blocking-jobs:
             - '^airship-{tag}-(daily|check|gate)$'
     builders:
+      - multijob:
+          name: deploy
+          projects:
+            - name: 'airship-deploy-latest'
+              <<: *airship-jobs
       - multijob:
           name: remove former images
           projects: