Run ci-management on control-slave 95/25095/1
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 11 Aug 2020 06:30:32 +0000 (08:30 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 11 Aug 2020 06:30:32 +0000 (08:30 +0200)
also install latest jjb version with pip.

Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I5fd788ece16a410272434fcf25dd2545be4ba863

jjb/ci-management/ci-management.yaml
jjb/ci-management/include-raw-jjb-update.sh
jjb/ci-management/include-raw-jjb-verify.sh [new file with mode: 0644]

index 34b3dff..916fd9b 100644 (file)
@@ -21,7 +21,7 @@
     name: ci-management-verify-jjb
 
     project-type: freestyle
-    node: master
+    node: control-slave
     concurrent: true
 
     parameters:
           files: '**/**'
 
     builders:
-      - shell: |
-          ls -alh ; jenkins-jobs test --recursive jjb/
+      - shell:
+          !include-raw-escape: include-raw-jjb-update.sh
       - ci-management-check-unicode
 
 - job-template:
     name: 'ci-management-merge'
 
     project-type: freestyle
-    node: master
+    node: control-slave
 
     build-discarder:
       days-to-keep: 30
index 0a87bac..7146995 100644 (file)
@@ -1,3 +1,11 @@
+#!/bin/bash
+
+curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
+python3 get-pip.py --user
+export PATH=/home/jenkins/.local/bin:$PATH
+
+pip3 install --user jenkins-job-builder
+
 jenkins-jobs update --delete-old --recursive jjb/
 
 # Submit patches for any jobs that can be auto updated
diff --git a/jjb/ci-management/include-raw-jjb-verify.sh b/jjb/ci-management/include-raw-jjb-verify.sh
new file mode 100644 (file)
index 0000000..d87a109
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
+python3 get-pip.py --user
+export PATH=/home/jenkins/.local/bin:$PATH
+
+pip3 install --user jenkins-job-builder
+
+ls -alh
+jenkins-jobs test --recursive jjb/