Update tox jjb command to use jjb 2.0.3 63/58463/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 12 Jun 2018 17:56:33 +0000 (10:56 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 13 Jun 2018 20:12:26 +0000 (13:12 -0700)
2.0.3 is the current JJB version being used by OPNFV.

This removes 'jjb/global' from the positional arguments as overriding
with '-- jjb' will throw errors files are included twice.

Change-Id: If9014fd8a5b92ade89d97994ea1b58f0b227c65a
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
docs/infra/jenkins/jjb-usage.rst
tox.ini

index 6712781..d467dbe 100644 (file)
@@ -10,7 +10,7 @@ Creating/Configuring/Verifying Jenkins Jobs
 
 Clone and setup the repo::
 
-    git clone ssh://YOU@gerrit.opnfv.org:29418/releng
+    git clone --recursive ssh://YOU@gerrit.opnfv.org:29418/releng
     cd releng
     git review -s
 
@@ -29,13 +29,13 @@ Make changes::
 
 Test with tox::
 
-    tox -v -ejjb
+    tox -jjb
 
 .. note:: You can also test the jobs under a single jjb directory by
     specifying the directory. For example to test only the releng jobs, you
     could run:
 
-     tox -v -e jjb -- jjb/releng
+     tox -e jjb -- jjb/global:jjb/global-jjb:jjb/releng
 
 Submit the change to gerrit::
 
diff --git a/tox.ini b/tox.ini
index abdffc5..d2f4168 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -15,9 +15,9 @@ setenv=
 
 [testenv:jjb]
 deps =
-  jenkins-job-builder==1.6.1
+  jenkins-job-builder==2.0.3
 commands=
-  jenkins-jobs test -o job_output -r jjb/global:{posargs:"jjb/"}
+  jenkins-jobs test -o job_output -r {posargs:"jjb/"}
 
 [testenv:docs]
 deps = -r{toxinidir}/docs/requirements.txt