Skip to content

Commit

Permalink
Update Tox JJB Command
Browse files Browse the repository at this point in the history
This allows using the command to only test one project's changes. For
example:

  tox -e jjb -- jjb/releng

Will only test jobs under 'jjb/releng'. If jobs have dependencies, of
multiple project jobs need to be tested, they can be included using the
jjb ':' syntax, as anything after '--' is passed directly to jjb:

  tox -e jjb -- jjb/doctor:jjb/functest

Change-Id: I4b71803a1d6ed4f62d50cdca87183a68b20fae5a
Signed-off-by: Trevor Bramwell <[email protected]>
  • Loading branch information
bramwelt committed Apr 5, 2018
1 parent d19d34c commit 4dc3dec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/infra/jenkins/jjb-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Test with tox::

tox -v -ejjb

.. 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

Submit the change to gerrit::

git review -v
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ setenv=
deps =
jenkins-job-builder==1.6.1
commands=
jenkins-jobs test -o job_output -r jjb/
jenkins-jobs test -o job_output -r jjb/global:{posargs:"jjb/"}

0 comments on commit 4dc3dec

Please sign in to comment.