Keep Jenkins Job Builder from upgrading to 2.0 97/9797/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 6 Apr 2018 19:56:52 +0000 (12:56 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 6 Apr 2018 21:25:19 +0000 (14:25 -0700)
jenkins-job-builder (JJB) 2.0 adds support for the post build script
plugin and defaults to assuming the newest version
(postbuildscript:2.X.X) is installed. The new version of postbuildscript
is not yet supported in global-jjb, so installing a newer version of JJB
breaks the initial population of the ci-management repo.

Change-Id: I873dda9d7c58ae33d4f0c0417eb95929397861ae
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
init/config-ci-environment.sh

index c839529..272f86a 100644 (file)
@@ -133,7 +133,7 @@ fi
 #  Upload Jenkins Jobs
 if [ ! -f /init/step-7.done ]; then
     cd $CI_MANAGEMENT_REPO
-    pip install jenkins-job-builder
+    pip install "jenkins-job-builder<2.0.0"
     cat > $CI_MANAGEMENT_REPO/jenkins.ini <<-EOF
 [job_builder]
 ignore_cache=True