2604 Commits

Author SHA1 Message Date
Sorin Sbarnea
c8ba7a5a0f Replace testr with stestr
Switch to use stestr which is maintained as opposed
to testrepository (testr) which became a defunct project.

Change-Id: I47f628a7d224189362f2b2cfd9fe4c54af198cde
2018-04-05 12:14:13 +01:00
Zuul
3b120c3bab Merge "Enable cross testing with python-jenkins" 2018-04-04 20:33:54 +00:00
Sorin Sbarnea
7fea75e6fb Enable cross testing with python-jenkins
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>
2018-04-04 18:32:55 +01:00
Sorin Sbarnea
d47634fc3f Allows params to be specified via environment variables
Adds ability to load common params from environment variables:
JJB_CONF
JJB_LOG_LEVEL
JJB_SECTION
JJB_USER
JJB_PASSWORD

Change-Id: Ida786f2e60e4b3e54d739436d0970917a5f93518
2018-03-27 12:53:02 +01:00
Andrea Scarpino
a67c4cab87 Reporters: fix 'perModuleEmail' support
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
2018-03-22 10:31:55 +01:00
Joost van der Griendt
efc5fbe0fd Add multibranch project-type
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>
2018-03-15 16:51:32 +00:00
Zuul
89506addb7 Merge "Moved create directory log level to debug" 2018-03-14 14:46:27 +00:00
Sorin Sbarnea
713b660aaf Moved create directory log level to debug
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>
2018-03-14 10:55:30 +00:00
Marc Abramowitz
8d4671e3a7
Add a "list" subcommand
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>
2018-03-09 10:58:21 -05:00
Zuul
72dfe41186 Merge "Add support for job status job filter" 2.0.3 2018-03-09 15:37:27 +00:00
Zuul
5e023d0301 Merge "Capture XML output from test" 2018-03-07 15:23:08 +00:00
Darragh Bailey
3fe85e5bbd Capture XML output from test
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
2018-03-07 14:14:38 +00:00
Zuul
d5c3876a74 Merge "Update release to make use of convert_mapping_to_xml()" 2018-03-06 12:04:35 +00:00
Major Hayden
14f7bbcc3b
[Docs] Ensure commands are monospaced
Change-Id: Iee9f8c8831ee83ea23677fdbdd20eb2ae7709d29
Signed-off-by: Major Hayden <major@mhtx.net>
2018-03-02 10:41:17 -06:00
Anil Belur
00f64f2e20
Add support for job status job filter
Add support for job status job filter for views.

Change-Id: Iaeace8d2f4a150ab2497f25371f18b9b62617713
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-03-02 12:45:41 +10:00
Sorin Sbarnea
c6ff48ce4a Added main entry point
This allows using external debuggers.

Change-Id: I8d29534b0ef22c3ddb0e70c7fafe94f49c0d7f4e
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-28 16:17:21 +00:00
Yolande Amate
5a4c87e061 Update release to make use of convert_mapping_to_xml()
Change-Id: I6dd64fe0ca084af283ba980b2a110a5fa920e825
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-28 12:44:26 +00:00
Zuul
d617fc535a Merge "Update artifact_resolver to make use of convert_mapping_to_xml()" 2018-02-28 09:27:05 +00:00
Zuul
e12b2fd209 Merge "Update dynamic_scriptler_param_common to use convert_xml()" 2018-02-28 09:14:00 +00:00
Yolande Amate
3caff2f7ca Update artifact_resolver to make use of convert_mapping_to_xml()
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>
2018-02-28 09:08:39 +00:00
Yolande Amate
f97acb632a Update flowdock to use convert_mapping_to_xml()
Change-Id: I70588de4912ea0dbd11ca28c5af2b4f2c78899bd
2018-02-27 18:28:50 +00:00
Yolande Amate
1cbe42eb9d Update dynamic_scriptler_param_common to use convert_xml()
Change-Id: Ia73458e7f55de5c8c2213040bfab57299b7aa0eb
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-27 18:19:40 +00:00
Zuul
fcd61f8ad6 Merge "Maven project: allow to disable trigger downstream projects" 2018-02-27 18:15:02 +00:00
Zuul
1cf218b3c7 Merge "Update inject_passwords to use convert_xml()" 2018-02-27 18:15:01 +00:00
Zuul
30d97916fa Merge "Fix duplicated actions field in XML for folders" 2018-02-27 18:08:33 +00:00
Zuul
eb1544eb60 Merge "Update svn to make use of convert_mapping_to_xml()" 2018-02-27 18:08:32 +00:00
Zuul
00ab895035 Merge "Update build_result to use convert_xml()" 2018-02-27 18:02:53 +00:00
Andrea Scarpino
dff7df4ef0 Maven project: allow to disable trigger downstream projects
Change-Id: Ie4af949ad686f007d3091d947ef65c670262f8d4
2018-02-27 17:57:12 +00:00
Yolande Amate
e0887e767c Update inject_passwords to use convert_xml()
Change-Id: Id89e422b0b6d758fa9fd83805197f243e65b90e6
2018-02-27 17:55:27 +00:00
Marco Nenciarini
ca5d12627f Fix duplicated actions field in XML for folders
Change-Id: I9638dda0c31dfd70ffe8fcfc9eecc260bb326f61
2018-02-27 17:52:24 +00:00
Zuul
673523e2c3 Merge "Enable groovy-script includes for extended_choice_param" 2018-02-27 17:48:01 +00:00
Yolande Amate
67b5dc909d Update svn to make use of convert_mapping_to_xml()
Change-Id: Icd8397674b803a86065c50e71aaa9cd42791f970
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-27 17:47:48 +00:00
Yolande Amate
e70f327a9e Update monitor_files to use convert_xml()
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>
2018-02-27 16:52:28 +00:00
Anil Belur
c6df0adc44
Add support for build trend Job Filter plugin
Add support for build trend job filter plugin for views.

Change-Id: I157ae898383d40dab542feb7b0e752b51151f4d1
Signed-off-by: Anil Belur <askb23@gmail.com>
2018-02-27 19:47:21 +10:00
Jonathan Rajotte
9eb4431978 Support First Unstable and Fixed Unhealthy trigger type
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>
2018-02-24 19:48:02 +00:00
Zuul
dd9c0b675a Merge "Add support for build duration Job Filter plugin" 2018-02-24 19:44:50 +00:00
Zuul
70685b5dfe Merge "Always deep format Jinja2 templates" 2018-02-24 16:31:13 +00:00
Zuul
bb1b44bc92 Merge "tox: enable multiple py3x versions" 2018-02-24 16:17:00 +00:00
Zuul
79594397ad Merge "Add tox to test-requirements.txt" 2018-02-24 11:07:08 +00:00
Zuul
2da47d901b Merge "Add views and jobs only options for update" 2018-02-23 21:25:05 +00:00
Wayne Warren
28d02cddc3 Add tox to test-requirements.txt
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
2018-02-23 14:02:34 -05:00
Anil Belur
726e50aa22 Add support for build duration Job Filter plugin
Add support for build duration job filter plugin for views.

Change-Id: Ib19775e02f3f7359e69c82b986bc4f89aa51e9df
Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-02-23 17:49:40 +00:00
Daniel Watkins
aa74f8d67c Add support for {% include %} in Jinja2 templates
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
2018-02-23 12:04:45 -05:00
Daniel Watkins
ac7bcb5337 Always deep format Jinja2 templates
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
2018-02-23 11:43:21 -05:00
Zuul
bc80e5e2f3 Merge "Add support for plugin column views" 2018-02-23 16:43:12 +00:00
Zuul
123387a86d Merge "Add !j2 directive to allow inline Jinja2 templates" 2018-02-23 16:37:58 +00:00
Zuul
96aa1c756f Merge "re-raise the original Exception instead of raising a new one" 2018-02-23 16:36:23 +00:00
Sorin Sbarnea
831d497b85 tox: enable multiple py3x versions
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>
2018-02-23 11:19:22 +00:00
Zuul
324e0197c4 Merge "Support version 2.0 and greater of the Priority Sorter Plugin" 2018-02-22 03:14:14 +00:00
Zuul
70c8dd694c Merge "publishers: add Task Scanner Plugin support" 2018-02-22 03:10:13 +00:00