Remove use of user venv by builder-jjb-merge job 00/62400/2
authorTim Johnson <tijohnson@linuxfoundation.org>
Mon, 25 Nov 2019 21:35:15 +0000 (13:35 -0800)
committerTim Johnson <tijohnson@linuxfoundation.org>
Tue, 26 Nov 2019 17:58:21 +0000 (09:58 -0800)
Call lf-activate-venv() to create venv to install jenkins-jobs. Remove
references to jjb-cleanup.sh & jjb-install.sh scripts. Some jobs still
depend on them, so they have to remain for now.

Issue: RELENG-2557
Change-Id: Ib6b8a6e65113a874994a447cb628ca08dc9604c0
Signed-off-by: Tim Johnson <tijohnson@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
shell/jjb-merge-job.sh

index 4a74615..3ec2b49 100644 (file)
       - inject:
           properties-content: JJB_WORKERS={jjb-workers}
       - shell: !include-raw-escape:
-          - ../shell/jjb-install.sh
           - ../shell/jjb-merge-job.sh
-          - ../shell/jjb-cleanup.sh
 
 - job-template:
     name: "{project-name}-jjb-merge"
index 0a05c4f..9a497fd 100644 (file)
@@ -15,4 +15,9 @@ workers="${JJB_WORKERS:-0}"
 # Ensure we fail the job if any steps fail.
 set -eu -o pipefail
 
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv jenkins-job-builder
+
 jenkins-jobs update --recursive --delete-old --workers "$workers" jjb/