diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-08-11 08:30:32 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-08-11 08:30:32 +0200 |
commit | f92a04cb21140a21f5649e1ce5b9fb3ddb97177f (patch) | |
tree | 3684677d62ce45d3bf80744aac18316024e60118 /jjb | |
parent | 173409bf67a5bc20cef4a58ab4e289d28765e76d (diff) |
Run ci-management on control-slave
also install latest jjb version with pip.
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I5fd788ece16a410272434fcf25dd2545be4ba863
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/ci-management/ci-management.yaml | 8 | ||||
-rw-r--r-- | jjb/ci-management/include-raw-jjb-update.sh | 8 | ||||
-rw-r--r-- | jjb/ci-management/include-raw-jjb-verify.sh | 9 |
3 files changed, 21 insertions, 4 deletions
diff --git a/jjb/ci-management/ci-management.yaml b/jjb/ci-management/ci-management.yaml index 34b3dff4..916fd9bd 100644 --- a/jjb/ci-management/ci-management.yaml +++ b/jjb/ci-management/ci-management.yaml @@ -21,7 +21,7 @@ name: ci-management-verify-jjb project-type: freestyle - node: master + node: control-slave concurrent: true parameters: @@ -47,15 +47,15 @@ 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 diff --git a/jjb/ci-management/include-raw-jjb-update.sh b/jjb/ci-management/include-raw-jjb-update.sh index 0a87bac6..7146995a 100644 --- a/jjb/ci-management/include-raw-jjb-update.sh +++ b/jjb/ci-management/include-raw-jjb-update.sh @@ -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 index 00000000..d87a1093 --- /dev/null +++ b/jjb/ci-management/include-raw-jjb-verify.sh @@ -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/ |