Change-Id: I0610218034ea6c3aeeee03ab9b14ca79d25c5810
Reviewed-on: https://review.openstack.org/15046
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.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
Ideally we should verify this at build time, but until then, at least
make the examples syntactically valid for anybody trying to get
started.
Change-Id: I413ae9576b012a4847bedaa5a1582fad3e1a8de0
Reviewed-on: https://review.openstack.org/15018
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.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
It seems that order is important for the various parameter options that
can be passed to the envinject parameterized trigger plugin.
The relative order (of XML generation) of the 'current-parameters'
option has been changed so that it is generated before any
'predefined-parameters'. This allows for overriding any
of the current parameters with a pre-defined parameter.
Change-Id: If0429a63267b314c23e0ef331546e3187b4373c3
Reviewed-on: https://review.openstack.org/15050
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: I8fb296b1b8b17261c46df1eb062ec52d2559307b
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-on: https://review.openstack.org/15035
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: 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
Done in order to enable specifying build pipelines at the project level.
Pipelines are built using the 'pipeline' plugin or the 'trigger-builds'
plugin. The downstream job to be executed is specified at the project
level, and substituted into the template. Ignoring definitions where
the downstream job is blank allows the pipeline to be easily terminated.
Also adding a samples/ directory, which currently contains an example of
pipeline creation, together with a new tools/run-compare-xml-samples.sh
to run the before/after test on the samples.
Change-Id: Icc324d1485e22db7824ad784890db48eb3e48f8f
Reviewed-on: https://review.openstack.org/13706
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This change allows constructs like:
- job-template:
name: "foo-build-{slave}"
- project:
slave:
- debian-squeeze-powerpc
- debian-squeeze-amd64
and will then instantiate the job template for each value in the
list.
Change-Id: I057a30ef6d91048efacc4a6da2142cb8f924dd06
Reviewed-on: https://review.openstack.org/14738
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: 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: Icdfb6295fb3a2c5bfbb411995bf67e8075197b86
Reviewed-on: https://review.openstack.org/14914
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: 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
Change-Id: I49ebd3056817ca071276d03196175e3caf4a2a51
Reviewed-on: https://review.openstack.org/14737
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
The motivation for this was to allow for specifying a pipeline of jobs
at the project level, thereby re-using the same job templates in
different pipelines.
Change-Id: I9840d3713669ceca75a831be92c95c3fe9195c01
Reviewed-on: https://review.openstack.org/13705
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: Ie4bc5fed35d39dbca2c3ef9ca185d465df0dc4e2
Reviewed-on: https://review.openstack.org/14457
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
When doing developement, we usually want to stick a jenkins_job.ini file
at the root of our working directory. The logic still look under /etc/
by default and --conf will override the config file.
Test plan:
* tox is all green
Change-Id: I28781653feb3ce60eb18b50e5b44383d4b544f5a
Reviewed-on: https://review.openstack.org/14285
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.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
Change-Id: Ic31b468b6cd1285578038af8f08020e5c4e30c63
Reviewed-on: https://review.openstack.org/13876
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
Sphinx was unable to find the jenkins_jobs.sphinx.yaml module when I
ran 'make html' in the doc/ subdirectory.
Change-Id: I64817139b149c66b01e3610248b49f955c5bde8c
Reviewed-on: https://review.openstack.org/13707
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: Ia0d75275dfea794a0cfcae9d408cc53ccc8ff627
Reviewed-on: https://review.openstack.org/14044
Reviewed-by: Monty Taylor <mordred@inaugust.com>
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
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: I6835f4d20ef1e1d934f60bc096e79b63079f7e92
Reviewed-on: https://review.openstack.org/13270
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: 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
A tiny README file using the markdown syntax, gives out some hints as to
how one can install the prerequisites to jenkins-job.
Change-Id: I5577b09d9da0d74b8818799e399b570ffbbfcdfb
Reviewed-on: https://review.openstack.org/13494
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Change-Id: I6899aadddeec6b5e53803d173889890a1e8ebd91
Reviewed-on: https://review.openstack.org/13341
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Job deletion also clears the job cache, so that a subsequent update
will upload even if the job hasn't changed.
Change-Id: Ie6d756a469e9f0069532c1327da01d57fe4feffe
Reviewed-on: https://review.openstack.org/13268
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: I91ecac2e8d2d6b6b58f9a7fccc91897270ffe44d
Reviewed-on: https://review.openstack.org/13267
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
One import was not used and another was missing.
Change-Id: I2eed26e445e4be1e674df89d29fb5b22dfa9dec4
Reviewed-on: https://review.openstack.org/13163
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I5544ce07c7423a0e530860fa5637af26c73f6521
Reviewed-on: https://review.openstack.org/13162
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Add links to section docstrings that point at Jenkins plugins required
for that particular section to work.
Change-Id: Ie5c8de780072b157fbb873227d3ccfa5a2be88f3
Reviewed-on: https://review.openstack.org/13155
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
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: Id891e6948b879dfcb8f777f272dc1cb34cd197e8
Reviewed-on: https://review.openstack.org/12793
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: 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
Change-Id: I651992a7e908b0c859397ec6281238b5e3ac9336
Reviewed-on: https://review.openstack.org/12790
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: I3d7b24f96efe3b588a727789c4900b9448da891d
Reviewed-on: https://review.openstack.org/12875
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I8a48cb9dc2c6ea136ce072482467bee292a425f3
Reviewed-on: https://review.openstack.org/12788
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I0182cad0313411b368d42325f40d09e5da8bc168
Reviewed-on: https://review.openstack.org/12787
Reviewed-by: Monty Taylor <mordred@inaugust.com>
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
It's in the openstack defaults now.
Change-Id: Ib65ed00bec0cea363414e20ec799bde4fb33bac0
Reviewed-on: https://review.openstack.org/12471
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Add a defaults object that will be the lowest priority source of
configuration data for jobs.
Change-Id: Ie7c9e5a5a84a610e9db02cf191ae1fbd15c7e3b9
Reviewed-on: https://review.openstack.org/12470
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Make it easier to invoke the tox environments from another project
(eg, openstack-ci-puppet).
Change-Id: I88305c8edb79bb6e944eb35f5e39c84827807f11
Reviewed-on: https://review.openstack.org/12451
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@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: I5a871026f2bf7757b7e3e46278391b41e90c5674
Reviewed-on: https://review.openstack.org/12289
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Change-Id: I5e0b76e195a1b412d180484ce1ddd3e9159d7779
Reviewed-on: https://review.openstack.org/12286
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins