Change-Id: Ifbfb28fd61092f15d7960f5dfc8ba57992607464
Reviewed-on: https://review.openstack.org/26318
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: Iaab1d59c6e01fb95f5c8cd012dbc73379c92174e
Reviewed-on: https://review.openstack.org/26317
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Adding ability to use top-level maven targets within your build.
This is a change to the builders file and setup.py to add the new
functionality.
Change-Id: I7ae24b82d0b0ba4e81eda67045131733ced1dc46
Reviewed-on: https://review.openstack.org/25413
Reviewed-by: Khai Do <zaro0508@gmail.com>
Reviewed-by: Arnaud Fabre <fabre.arnaud@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
The Sonar Plugin provides both a builder and a publisher,
the later targeting Maven projects.
This commit adds support for the publisher, which is straightforward
to configure: no option is required, the plugin finds suitable
defaults by itself.
Several parameters can be provided though, which are transferred
as is to either Sonar or Maven. Analysis can also be skipped under
certain conditions.
Change-Id: I30744d0961d623cabf7c0780ab2f0d4db2cd9295
Reviewed-on: https://review.openstack.org/25073
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Adding the ability to use the GitHub Pull Request Builder plugin.
This plugin requires modifications on the Configure System page
of Jenkins to work properly. If using GitHub Enterprise you must
set the token on this page, password does not work. This change
affects the modules/triggers.py and setup.py file, adding a new
section for this plugin. When using this plugin in the GUI the
textboxes for admin list and crontab will default to the values
stored on the main Configure System Jenkins page, I don't think
JJB can even attempt this default so I just defaulted to nothing.
Change-Id: Ib453cee269038e04f01a446378922b36307c18ce
Reviewed-on: https://review.openstack.org/24929
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Projects might need to publish artifacts on Windows shares, which is
possible with the CIFS variant of Publish Over plugins.
The provided support is mostly similar to the existing ftp support.
Change-Id: Ic313f579158fb6460ab934f705b9c512b1131ca2
Reviewed-on: https://review.openstack.org/23861
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Added ability to build when a change is pushed to github, to the triggers.
This change is changing the triggers.py file and follows the poll scm
as a template for the change. Setup.py was also changed to enable the new
feautre. There is outside changes needed to Jenkins and/or github to fully
use this feature. You need to tell Jenkins whether to automatically manage
the github repos or you need to put the correct URL into the webhook.
Furthermore, at the current time it is necessary to set both github and
pollscm for this to work. In the future this may not be necessary so setting
github does not automatically set pollscm.
Change-Id: Id7b48fa47f63669ba31282a403f07a1234e7ac31
Reviewed-on: https://review.openstack.org/23433
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This change adds the ability to use the extended choice plugin.
This plugin allows you to populate a file with choices and then
allow the user to select one or more when the build now button
is clicked. This change only changes the properties and setup
files.
Change-Id: I05af63f75f9ab87cd923c23177d33898c26149cf
Reviewed-on: https://review.openstack.org/20610
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Khai Do <zaro0508@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Add publisher for Checkstyle Plugin[1] (based on code for the
Violations Plugin publisher)
[1] https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin
Change-Id: Ie622ad8600720081072f288e72dd56e65505380a
Reviewed-on: https://review.openstack.org/21066
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Put it in test-requires so it's there when we build a tarball.
Change-Id: I8a5adec74beeb397e71e17030338a8051fe6fb0b
Reviewed-on: https://review.openstack.org/19885
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This change adds the ability to run arbitrary batch commands.
This functionality is to be able to run windows commands on a windows
slave or master. The format followed is exactly the same as the shell
functionality.
Change-Id: I463660b29b09e5945137b50b3721ee04cc5fc04c
Reviewed-on: https://review.openstack.org/19387
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
The current style guide is for functions implemented as xx-xx
to be named xx_xx in the python code. The functionality implementing
the claim build plugin has been implemented as claim-build, thus
the function in the python code should be claim_build
instead of claimbuild as it is currently implemented
Change-Id: I0cc3ebe37bfd6249f2985f0208697d6cc1a275db
Reviewed-on: https://review.openstack.org/18688
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Note: this does not take care of the initial configuration of jenkins
to use jclouds, it merely lets you create jobs from manually-configured
jclouds templates.
Change-Id: I981bd90fffb0077bf8f60c8701a157ebd8009000
Reviewed-on: https://review.openstack.org/17826
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: I0e2b43d889593e01d6ad0761960c93472990af1e
Reviewed-on: https://review.openstack.org/16983
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
currently only supports label expression axes
Change-Id: I5d714affdf101eeb5b0eeae5ed5408d6964c6b77
Reviewed-on: https://review.openstack.org/16908
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: Ic468e265c606b20e7684da8092194c21f6135bef
Reviewed-on: https://review.openstack.org/16923
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This change adds the ability for Jenkins to update relevant JIRA issues
Change-Id: I1fdf00feb6931e588af587924a6a995fd66c2490
Reviewed-on: https://review.openstack.org/16971
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
Change-Id: I53eda0c9061cd3cc6c17f9f0afb1cb0bc60d9202
Reviewed-on: https://review.openstack.org/16550
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: If52f021fd077ffd5983cda8c672ce93d1084097d
Reviewed-on: https://review.openstack.org/16549
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: Ia8ca38290fbc04d24628dc30862823df628ada0a
Reviewed-on: https://review.openstack.org/16906
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: Iaa0fefb296c72ce4ac955986375e63704f45e6d5
Reviewed-on: https://review.openstack.org/16548
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
However due to an upstream bug[1] we ignore E125 for now.
[1] https://github.com/jcrocholl/pep8/issues/126
Change-Id: I75337d9194156580cc66666aed9a5bc2fd5d4e15
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/16604
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: Id0bc211c8071e66379f0eccf0a06118a7245f0de
Reviewed-on: https://review.openstack.org/16495
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
Fixes bug #1080824
Change-Id: Ie5043283bf8c0f13f04d250c4c7299596d766508
Reviewed-on: https://review.openstack.org/16454
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
Since the project uses entrypoints so heavily - move the jenkins-jobs script
to be contained within the project and have entrypoints generate the script.
Change-Id: Ie9541163c8677de1b05576491c8e9e63d3bd25fc
Reviewed-on: https://review.openstack.org/15816
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: I4602154fa7fca84d1eaa6aed13e501fcc770b609
Reviewed-on: https://review.openstack.org/15926
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: I8c63de4eebd42dbe2274a560b038ffe3f7cf8598
Reviewed-on: https://review.openstack.org/15891
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
With help from clarkb in #openstack-infra and openstack-ci/gerritbot,
I've manage to update our versioning to be inline with other openstack
projects. This is another step towards creating our OS packaging.
Change-Id: If3f44b939ee0a3c9c4dfa1d9f83ae14a8285ba5f
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/15335
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: If688379d17cf1cbfaf4018f53e0e01625ddaeb11
Reviewed-on: https://review.openstack.org/15522
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: Ie64b4d3d0b1812347f6cc5921dc1cb5bb22ea27f
Reviewed-on: https://review.openstack.org/15402
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: If5f59588994ad17de56adffa0f64a1aab1ee2e1c
Reviewed-on: https://review.openstack.org/15514
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I3b4094397726eb0ddd0acc019e19ffa96251a9e1
Reviewed-on: https://review.openstack.org/15438
Reviewed-by: Tollef Fog Heen <tfheen@varnish-software.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: Ib88d09a2da1c903bac9afeb1dbd70648e003edfe
Reviewed-on: https://review.openstack.org/15024
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: Icf933a25513f3b349ef67badc7b3e9cd7998089c
Reviewed-on: https://review.openstack.org/15037
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: I387ea1d006f3d1a053cb7e88afc9fe99ea010a5c
Reviewed-on: https://review.openstack.org/15021
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: I619393f1f6144e8ee48d7642f2ff97f34b4d18dc
Reviewed-on: https://review.openstack.org/15029
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I9a6d90399a6a1d6cfd07a5d4694e13b1060a498d
Reviewed-on: https://review.openstack.org/14976
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Change-Id: Iad9c60d052c85bfb60794e6d2a9d80a915e7d1a8
Reviewed-on: https://review.openstack.org/14675
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I85caf018a69a24e83a58b76d114c962f1516e104
Reviewed-on: https://review.openstack.org/14736
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Let you describe a publisher for the xUnit Jenkins plugin:
https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin
import the `logger` module since this publisher is doing a few
validations.
Example usage:
publishers:
- xunit:
thresholdmode: 'number'
thresholds:
- skipped:
unstablenew: 1
failurenew: 1
types:
- phpunit:
pattern: "junit.log"
stoponerror: false
- cppunit:
pattern: "cppunit.log"
Test plan:
* tox is all green
* sphinx doc got no warning and looks fine
Change-Id: Iab418b9a94e0f538afb7c2a4824ab4ddf421c208
Reviewed-on: https://review.openstack.org/14283
Reviewed-by: David Ripton <dripton@redhat.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This let you define an 'ant' builder for those using ant as a build
script.
Given the YAML input:
builders:
- ant: "debug"
- ant:
targets: "test install"
buildfile: "foobar.xml"
Generates the following XML:
<builders>
<hudson.tasks.Ant>
<targets>debug</targets>
</hudson.tasks.Ant>
<hudson.tasks.Ant>
<targets>test install</targets>
<buildFile>foobar.xml</buildFile>
</hudson.tasks.Ant>
</builders>
Test plan:
* tox is all green
* sphinx doc got no warning
Change-Id: I9e443c827b7a1b7c3ceff668de518d4cbd7abfff
Reviewed-on: https://review.openstack.org/14141
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Tweaks the Builder and YamlParser classes to accept a config object
which is passed to the parser's ModuleRegistry object. This makes it
available to the HipChat object.
Change-Id: I3017658336b949c0fda7c82945e7014dbcf6e152
Reviewed-on: https://review.openstack.org/12794
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I6675727cd0638a183e20c0110fcdedfdca3f715a
Reviewed-on: https://review.openstack.org/13785
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Move test.sh to the tools directory.
Move parameters and notifications to their own modules; even
though they are implemented as Jenkins properties, they make
more sense as separate entities in the job builder, because
that's they way they are specified in the YAML. All three
modules that touch the properties xml object know how to
create it if it's missing.
Change-Id: I4b42ff10a93fd3ed98f632b58e47f3e0e45086d6
Reviewed-on: https://review.openstack.org/12741
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I0ab567c07c5acd7408d7662ea75dd8513a58888e
Reviewed-on: https://review.openstack.org/12792
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: Id26b073354c5825b8fe91ece83f56a636ea4ae5d
Reviewed-on: https://review.openstack.org/12791
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Add ability to have the Jenkins Job Builder specify a script and
property file to use to inject environment variables into builds.
Change-Id: I628753ea526735e950b9d17697a08df1b412604f
Reviewed-on: https://review.openstack.org/12382
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I94abedc07e0e5884cd737975c65d53375c598f14
Reviewed-on: https://review.openstack.org/11501
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I4d6312e92dffd596ae58e55c837e3db3ea7d1c52
Reviewed-on: https://review.openstack.org/11198
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Switch to using entry points for loading modules as well as
individual buliders, triggers, publishers, etc.
Remove most openstack-specific python code.
Change templating so it's less repetitive -- a single project
definition will suffice for multiple jobs or job-groups.
This outputs XML that is identical to the current production XML,
warts and all. There are significant improvements that can be made
to the YAML in a separate change, as they will cause minor changes
to existing jobs (adding timestamps, logrotate, etc.). These are
mostly marked with TODO in this change.
Change-Id: Idcfddb3b43b6cfef4b20919a84540706d7a0a0b1
Reviewed-on: https://review.openstack.org/11000
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins