Switch to use stestr which is maintained as opposed
to testrepository (testr) which became a defunct project.
Change-Id: I47f628a7d224189362f2b2cfd9fe4c54af198cde
This allows us to spot things that may be broken
by changes made to dependencies.
Adds zull job that tests tips of both projects.
Adds 'tips' tox environment that can be used by
developers to perform the same kind of testing
locally.
Change-Id: I35dbdf6acab1062109dc4b1f1474decd75932504
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Unfortunately, during the review process of commit 454259ed3 I made a typo and
notify-for-each-module argument is not parsed correctly.
Change-Id: Ia053dbd722800f536c347d58f9b9822e2e67868a
This work was based on original work done by
Joshua Harlow on top of older code from:
https://github.com/abnamrocoesd/jenkins-job-builder/
Credit is due to `Joost van der Griendt` for doing this
work. This builds on his work in that repo, and adjusts it
so that it can get merged into upstream and released
as a fully supported job type.
SCM implementation is different than than normal SCM module,
supporting: BitBucket, git, and GitHub in this initial
patch.
Change-Id: If50a54d282dd7d901c16edb9fe04874bdd83c9ef
Co-Authored-By: Joshua Harlow <jxharlow@godaddy.com>
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Co-Authored-By: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Signed-off-by: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Avoids console span when running in non verbose mode,
especially when using --config-xml which would
create one folder for each job created.
Change-Id: Id5d47c50c5c364068c26437c125e4066b856587c
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Add a list subcommand that allows listing of all the jobs defined in
yaml configuration, or on the Jenkins master, with the option of taking
glob parameters to allow matching some job names.
Also supports the recursive and exclude path control options.
jenkins-jobs list 'wikimedia-fundraising*'
jenkins-jobs list -r -p configs/ 'wikimedia-fundraising*'
Co-Authored-By: Darragh Bailey <dbailey@hpe.com>
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Change-Id: I897b9ed35561e455dc6b89c3bacec74b54777903
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Running a test with input yaml will result in output XML being sent
to the stdout. Use mock on the console to capture this so that running
the tests via testtools directly doesn't output unnecessarily
Change-Id: I4ccbfcb464d40a77c04913cb8281a0167504e1a4
Update tests for minimal and full types and update docs with default
and required options.
Change-Id: If9aaa35e2d7943b6a49f976db83d9f6cae82005b
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Also update tests to have a minimal & full tests.
Change-Id: Id2b57492c5cc43634df48deefb9eca00a3713b99
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Support for these triggers was added in email-ext v2.37 and v2.32
respectively.
Change-Id: Ib1353611bb77dc5e1789df0338cb434b7967db5d
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
If I understand correctly, tox is already installed on automated test
nodes; however, the intent here is to improve local development workflow
by ensuring that an appropriate version is installed for running tests
locally.
This requires at least tox 2.9.1, which is the version that was used in
a zuul run observed today.
Change-Id: I8052e5792e229b58a48e48bd705ed576acdc2884
This allows the use of the {% include %} tag[0] within Jinja2 templates,
with the same search path used for looking up other templates (i.e. the
one which LocalLoader is instantiated with).
[0] http://jinja.pocoo.org/docs/2.9/templates/#include
Change-Id: I0403c385ee317e1460a80a9bf717aa4712f37e2f
As Jinja2 provides functionality other than interpolation, it's entirely
feasible to use it outside of a context where there are template
variables. This change ensures that we always deep format Jinja2
templates, even when we wouldn't normally interpolate a regular JJB
template.
Change-Id: Ia3f86dd2073d48594eaf791fa2277db7e5ebf0ab
Adds multiple py3x versions to the default list in oder
to assure that they are used when available.
Some systems are already using py36 but other production
systems are have only py34, like RHEL 7.x.
This should have no effect on gates as they specify exactly
their targets, but it does improve developer testing.
Change-Id: I6225f1d8cd7cb0022817d8dc1f459403bbd57f8e
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>