nolabs: Move jobs to nolabs tenant 67/2467/3
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 1 Oct 2019 18:13:47 +0000 (20:13 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Wed, 2 Oct 2019 05:37:30 +0000 (07:37 +0200)
Change-Id: I8526d23b4e720355db493de78c51cd561a38fbd6

jjb/nolabs/booking-job-macros.yaml
jjb/nolabs/delete-booking.sh
jjb/nolabs/handle-booking.sh
jjb/nolabs/nolabs-booking-jobs.yaml

index 4fc20d345af6f4f399f6e2287730210eb444846c..3c4d6ebfd72d97a203beb766fc182318f5535519 100644 (file)
@@ -25,7 +25,8 @@
           !include-raw: ../cloud-infra/wait-for-pkg-manager.sh
       - shell: |
           #!/bin/bash
-          cp $OPENRC_FILE /tmp/openrc
+          /bin/rm -f /tmp/openrc
+          /bin/cp -f $OPENRC_FILE /tmp/openrc
       - shell:
           !include-raw: ./handle-booking.sh
 
@@ -36,6 +37,7 @@
           !include-raw: ../cloud-infra/wait-for-pkg-manager.sh
       - shell: |
           #!/bin/bash
-          cp $OPENRC_FILE /tmp/openrc
+          /bin/rm -f /tmp/openrc
+          /bin/cp -f $OPENRC_FILE /tmp/openrc
       - shell:
           !include-raw: ./delete-booking.sh
index 9b53764e832dbea4fe241350661e34c26514f911..a4b938de688b3cb8189158bf2bfe7f470ea5cf58 100644 (file)
@@ -3,6 +3,7 @@
 cd $WORKSPACE
 
 # install dependencies
+sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" > /dev/null
 sudo apt install -y virtualenv jq > /dev/null
 /bin/rm -rf $NOLABS_VENV && mkdir -p $NOLABS_VENV
 virtualenv -p python3 $NOLABS_VENV > /dev/null
index 4b011027d49ced4005531d6e39e081fa60cc3f4d..e0096a959ef3a877429bd650403544add3900a3c 100644 (file)
@@ -3,6 +3,7 @@
 cd $WORKSPACE
 
 # install dependencies
+sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" > /dev/null
 sudo apt install -y virtualenv jq > /dev/null
 /bin/rm -rf $NOLABS_VENV && mkdir -p $NOLABS_VENV
 virtualenv -p python3 $NOLABS_VENV > /dev/null
index a40d909931ba5bc3994802d36bd78f1d29db40af..ca3d952da99cf6de38a3bdf40c4b1f12ee447c9a 100644 (file)
@@ -50,8 +50,9 @@
     stream:
       - 'master':
           branch: '{stream}'
-          slave-label: 'vpod-deploy-ubuntu1804'
+          slave-label: 'nolabs-booking-slave'
           build-timeout: 60
+#          slave-label: 'vpod-deploy-ubuntu1804'
 
     booking-phase:
       - 'handle'
@@ -73,7 +74,7 @@
 - job-template:
     name: 'nolabs-{booking-phase}-booking-{target-site}site-{stream}'
 
-    disabled: '{obj:disabled}'
+    node: '{slave-label}'
 
     concurrent: true
 
           name: TARGET_SITE
           default: '{target-site}'
           description: 'Target site to handle the bookings for.'
-      - label:
-          name: SLAVE_LABEL
-          default: '{slave-label}'
-          description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use.'
+#      - label:
+#          name: SLAVE_LABEL
+#          default: '{slave-label}'
+#          description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use.'
       - string:
           name: BOOKING_PHASE
           default: '{booking-phase}'
 
     properties:
       - logrotate
-      - build-blocker:
-          use-build-blocker: true
-          blocking-jobs:
-            - 'cloud-infra-verify-engine-.*'
-            - 'cloud-infra-verify-scenario-.*'
-            - 'cloud-infra-periodic-engine-.*'
-            - 'k8-.*'
-            - 'nolabs-.*'
-          block-level: 'NODE'
-      - throttle:
-          max-per-node: 1
-          max-total: 10
-          option: project
+#      - build-blocker:
+#          use-build-blocker: true
+#          blocking-jobs:
+#            - 'cloud-infra-verify-engine-.*'
+#            - 'cloud-infra-verify-scenario-.*'
+#            - 'cloud-infra-periodic-engine-.*'
+#            - 'k8-.*'
+#            - 'nolabs-.*'
+#          block-level: 'NODE'
+#      - throttle:
+#          max-per-node: 1
+#          max-total: 10
+#          option: project
 
     wrappers:
       - credentials-binding:
       - build-timeout:
           timeout: '{build-timeout}'
       - fix-workspace-permissions
-      - openstack:
-          single-use: True
+#      - openstack:
+#          single-use: True
 
     scm:
       - git-scm: