Regenerate .gitmodules after rename.
This also takes into account recent retirement and new creation of repos.
Change-Id: I171261b046cc3f00444ef1f4b2bc0bc646f9b346
* Update jenkins-job-builder from branch 'master'
- Merge "Include support for jacoco source inclusion pattern"
- Include support for jacoco source inclusion pattern
Change-Id: Iec75f7041e38bda09abf4d85abc15219259eff2c
* Update jenkins-job-builder from branch 'master'
- Merge "fix job-template call in include-raw-escaped fixtures"
- fix job-template call in include-raw-escaped fixtures
the correct term is job-template, not template-job
Change-Id: I01e7aea19d95c103f1a1a3d5d4bafeb95a53ab87
* Update jenkins-job-builder from branch 'master'
- Merge "Refactor jobfilters to separate file"
- Refactor jobfilters to separate file
Make things easier to document and parse.
Change-Id: I35ce23b307970bbd05380d669efabcb68f6f4980
Signed-off-by: Thanh Ha <zxiiro@linux.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Add 'publishers-from' to the publishers module"
- Add 'publishers-from' to the publishers module
This adds the 'publishers-from' action to the publishers module.
It enables the "Use publishers from another project" provided by
the "Template Project Plugin".
Change-Id: I6fb030a99bccaa79e4f99efe012ff63c6d376a38
* Update jenkins-job-builder from branch 'master'
- Set reference repo under clone options
When we have cloneOptions in the generated with options like
tags and reference filled outside of cloneOptions,
The reference is not filled in the job configuration and this
option will not work as expected. reference should
alwasy be listed inside CloneOptions.
Change-Id: I519d3c42f1b32ab27243b0f5c592e3d41e3230bb
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
* Update jenkins-job-builder from branch 'master'
- Merge "Add support for Packer plugin"
- Add support for Packer plugin
Change-Id: Idcb85f53656efb07a6aafe28f60ecafd9011fab4
Co-Authored-By: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
* Update jenkins-job-builder from branch 'master'
- Merge "Fix loader overwriting"
- Fix loader overwriting
In cases when there are many j2 templates and some of them use
include tags, correct jinja loader is overriden with one of loaders
related to other templates.
This patch fixes it with workaround. Which is overwrite incorrect
loader with initial.
Change-Id: Iec21c24fe6e4bfedf281d7215e520298381f07a7
* Update jenkins-job-builder from branch 'master'
- Allow pyyaml >= 5
Current latest version is 5.1 so allow this version, too.
Change-Id: Ic349545720bf9a3d973fe863c7068d1e590732c3
* Update jenkins-job-builder from branch 'master'
- Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I250cbe6699b73d7ddeb3c6e2b875ce8e439276be
* Update jenkins-job-builder from branch 'master'
- Merge "add the "honorRefspec" option to the Git SCM"
- add the "honorRefspec" option to the Git SCM
Taken from github pull request
https://github.com/openstack-infra/jenkins-job-builder/pull/64/files
Change-Id: Ib051a46daa4a3e2d6add74cc9c1c3c1eb766672a
* Update jenkins-job-builder from branch 'master'
- Merge "Adds named branches to property strategy support"
- Adds named branches to property strategy support
My previous submission added support for property strategy: all branches
get the same properties. This patch adds support for the second of 2
options, "named branches get different properties", which allows for
a default definition of properties + exceptions for individual refspecs
based on their literal branch name. Also includes some re-org of the
existing prop. strat. support in order to DRY up the code for both.
Also adds sphinx.ext.doctest to docs/src/conf.py extensions to allow for
running `make doctest` locally.
Change-Id: Icd143fe25b1e2d5c8d1e7e8b0650d91f40838043
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Do not ignore global-settings-type in Maven module"
- Do not ignore global-settings-type in Maven module
settings-type parameter hides global-settings-type and makes it
impossible to use settings from the file and ConfigFileProvider at the
same time like:
maven:
settings-type: file
settings: mvn/settings.xml
global-settings-type: cfp
global-settings: test
Change-Id: Ieda05912ae8b28942d98150a51c92b2521f2b6bf
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
* Update jenkins-job-builder from branch 'master'
- Adds github scm multibranch regex branch filter
This commit adds the ability to filter discovered branches in a multibranch project using a regex filter.
This is done by adding a 'head-filter-regex' key in the github scm configuration inside the multibranch job yaml - it maps to a <jenkins.scm.impl.trait.RegexSCMHeadFilterTrait>
element containing a <regex> element in the resulting job.
Change-Id: I8c88a8b131cdc51d2c8abb13397637ebbf6d1373
Signed-off-by: amit lin <amitl@totango.com>
- Merge "Add support for "Build / Publish Docker Image""
- Merge "Add retry support to plugins depend on Publish Over X"
- Merge "adds vault unlocking parameter to ansible builder"
- Merge "Update mailinglist address"
- Update mailinglist address
Change-Id: Id13bcbfed1cb1b6416f28849384c8f6d1edbd26d
- Add retry support to plugins depend on Publish Over X
Change-Id: Ic5a1ce530ad93b84f0444666ca40fed98b0460bc
- adds vault unlocking parameter to ansible builder
This commit adds a parameter to the ansible builder, vault-credentials-id.
This maps to the element <vaultCredentialsId> in the resulting job
definition, and has been tested against the Jenkins Ansible plugin
v1.0.
Change-Id: I40cfd9225923b29c9d2714a60279f1c88f6cb88c
- cucumber-reports: Add support for new options
Change-Id: Ia447c8ab95d6ea9782ba0092c42b95571625b97f
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- Fix default '0' being ignored
The problem with `if default:` is that it evaluates int 0 to be
equivalent to False. If a user is passing in a int 0 then they
should be expected to receive int 0 in the case of defaults.
Change-Id: Ida1f4c68b6f9d1af5b98d633b552f038c57654cc
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Merge "Print config-xml warning once"
- Merge "Convert parameter default value to str"
- Convert parameter default value to str
This resolves the error "TypeError: cannot serialize 1 (type int)" when
using a parameter inside of a macro and then passing an integer value
to the macro. For example:
- parameter:
name: int-param
parameters:
- string:
name: VAR_INT
default: '{var}'
- job-template:
name: int-param
parameters:
- int-param:
var: 1
Change-Id: Ie3a5d2e03b7aa0b7cafdb467cd0118e4ff6e73bc
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Adds support for Property Strategies
Multibranch pipeline jobs also support "Property Strategy" elements.
These are fairly limited, but do contain the very useful "Suppress
automatic SCM triggering" trait. This commit adds support for
defining these for the "All branches get the same properties"
strategy, and could be easily amended to also support the "Named
branches get different properties" strategy in a future update.
Change-Id: I3d9281657e341260a23f357f6e247793379b0eed
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
- Merge "Handle cancel-builds-on-update values from vars"
- Print config-xml warning once
Instead of printing the deprecation warning against every generated
config-xml file, print it only once at the beginning of the test
command call to not spam the console.
Change-Id: Ifdcdb1373d44ba6232ea7a5359662cc760353774
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Merge "Add .venv to .gitignore"
- Merge "Remove random print"
- Merge "Adds support for Disable GitHub Multibranch Status"
- Merge "docker-pull-image: Pull Docker image from Docker Hub/Registry"
- Handle cancel-builds-on-update values from vars
The code assumes that the value of cancel-builds-on-update is a boolean.
This fails when specifying the value of the param in a variable because when
deep_formatter formats the data, booleans turn into strings.
Also added tests for such case.
Change-Id: Ib1ec3d5545091be550bfe023e49c7982372d5b55
Signed-off-by: Daniel Belenky <daniel.belenky@gmail.com>
- Remove random print
The random print statement does not provide any useful information
and spams the console output if a repo has many declared views with
uninteresting output.
Change-Id: I7f40730c753ec8f1145ba6144fe28bf97844b9e2
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Add support for All view-type
Change-Id: I49774d6d177382f30f117dab3836619a40d0e895
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Add missing 'release' stage for Nexus IQ
The 'release' phase was missed in the development of this feature.
Change-Id: Ia4660d6b8a86bb43e6ea38802e22c6a5ce06834c
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Adds support for Disable GitHub Multibranch Status
Jenkins2 GitHub scms default to automatically sending updates on build
status to github for pull requests. The plugin this enables allows
control of this by enabling or disabling the feature via an SCM trait,
allowing you to either no notify at all or manually notify via other
means.
Change-Id: I4f5629c3ee8031d41054e3be5e853201d8f0fed6
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
- Merge "Add 'secret-token' parameter to gitlab trigger"
- Merge "Add 'publish-over-cifs' to the builders module"
- Add 'secret-token' parameter to gitlab trigger
This adds support for the job specific secret token in the
gitlab build trigger.
This feature was added to the "Gitlab Plugin" with version 1.4.1
(released Sep 24, 2016).
Excerpt from the changelog:
"Add possiblity to configure secret tokens per job to allow
only web hooks with the correct token to trigger builds."
Change-Id: Id1ede4a6a51a231f60a39bfaefbadd8f849076e4
- Add 'publish-over-cifs' to the builders module
This adds the 'publish-over-cifs' action to the builders module.
It enables the "Send files to a windows share" build step,
provided by the "Publish Over CIFS Plugin".
Change-Id: I80cb2f86091ef53a284cf85a381294bbb6133010
- docker-pull-image: Pull Docker image from Docker Hub/Registry
Change-Id: I66e638564605fd25504b6e06524a26f778880f06
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- jclouds: Utilize convert_mapping_to_xml
Change-Id: I319aee86daf63f17778f020dea6b3756db04127d
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- Fix flake8 failures and make its execution more consistent
- upgrade flake8 to 3.6.0
- remove use of hacking since pre-commit replaced it
- mentioned minimal flake8 version on pre-commit config
- fixed newer linting errors
- disable W504 as it seems not possible to fix (conflict with W403)
- replaced buggy tox deps installation with native pip install, which
address the issue of missing to install new deps when the reqs files
are updated, developer being forced to to recreate the virtualenv.
- prepare for migration from tox-pep8 to tox-linters, now these being
just aliases.
Change-Id: I310578dce215aaf00a5b2d54716f90da9a1ecb4d
Depends-On: https://review.openstack.org/#/c/613726/
- Add .venv to .gitignore
.venv was not a part of the .gitignore file and was showing up when
creating a virtual environment for developing with Jenkins Job Builder.
This patch adds .venv to the .gitignore file.
Change-Id: Ie32384290b9127759591a695cdfb5b0d6e740eb1
- Merge "Add support for the "Gitlab Logo Plugin""
- Merge "Make jjb-tox-cross-python-jenkins job voting"
- Merge "Adds option to specify secret id for github"
- Add support for the "Gitlab Logo Plugin"
This adds support for the "Gitlab Logo" plugin
to the properties module.
Change-Id: I7bcffbcb31e478da3e4dd43dedb47e13d6364802
- Adds option to specify secret id for github
Same as existing bitbucket checkout-over-ssh
ssh-checkout for github must needs the option
for a user to specify the id of the secret
containing the ssh credentials to be used
for checkout.
Change-Id: I675c94c971e78d6ecd71d6f1446e0388430dab80
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
- Merge "Add support for the "Disk Usage" plugin"
- Fix build-result trigger jobs list in examples
Change-Id: I4fc954560953b64dca6720dff427855be7ccb132
- Add support for the "Disk Usage" plugin
This adds support for the "Disk Usage" plugin
to the properties module.
Change-Id: Icead10ae6e4e2e637dddd542128779bf5579d293
- Fix 'block-level' Build Blocker Plugin Property
In the process of taking advantage of 'convert_mapping_to_xml()',
commit:7ebe78979166e36a038a116788c33383878ced20 renamed 'block-level' to
'blocking-level' in the build-blocker property.
Another unrelated commit modified the test to use 'block_level' instead
of 'block-level'.
Change-Id: I2dd642ec4966c4c48e0a35e986a69b3b74803358
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
- Make jjb-tox-cross-python-jenkins job voting
As it prooved reliable, we should make this job voting to avoid
accidents.
Change-Id: Iba1001832ba5f35928c70793ad919287af9c9a23
- Add update option to the JJB config sample
Change-Id: Ice7cf29bbf88450951b55cd316be361430eb1d7d
Signed-off-by: Anil Belur <askb23@gmail.com>
- Add support for "Build / Publish Docker Image"
Change-Id: Iac9ffcdcb4312818d53e1da9be92ecdbb84c8cc1
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- Merge "docker-container: Improve support for more options"
- Merge "gitlab-merge-request: Add support for 2.x"
- Merge "docker-custom-build-env: Add support for new options"
- docker-custom-build-env: Add support for new options
Change-Id: I9482d2e3c98cf8058d5689cd688b8cc489bbb016
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- docker-container: Improve support for more options
Change-Id: I261959adcbba235f38fe4ac32b39a88ae96f636f
Co-Authored-By: Anil Belur <askb23@gmail.com>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Anil Belur <askb23@gmail.com>
- Merge "config-file-provider: Add tests"
- gitlab-merge-request: Add support for 2.x
This patch adds support for gitlab-merge-request 2.x.
As indicated by the plugin homepage [1]:
* GitLab version < 8.1: use v1.2.4 of this plugin
* GitLab version >= 8.1 < 11: use v2.0.1 of this plugin
* GitLab version >= 11: use the latest version of this plugin
GitLab 8.1 was released on Oct 22, 2015.
[1]: https://github.com/timols/jenkins-gitlab-merge-request-builder-plugin#supported-gitlab-versions
Change-Id: I0c7618715ba3fad162bfe20819a7721e1c83ad13
- Merge "build-keeper: Add support for RunCondition"
- Merge "Fix options.update is not 'all' if no config"
- Merge "copyartifact-build-selector: Utilize convert_mapping_to_xml"
- Merge "hue-light: Add commas to mapping tuple"
- Merge "email: Utilize convert_mapping_to_xml"
- Merge "Extend multibranch pipeline project scm"
- email: Utilize convert_mapping_to_xml
Change-Id: I05e7bad41e3f7329af0da313cffdd0ee297a53ba
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "Add config options --jobs-only and --views-only"
- Fix options.update is not 'all' if no config
If the user does not have 'update' in their configuration
ensure we are properly defaulting to 'all' and not None.
Change-Id: I65ddc49066119db0947801203ac88cb69153d1b0
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Add config options --jobs-only and --views-only
Add options --jobs-only and --views-only to job_builder
section in config file.
By default JJB updates both jobs and views. Some cases
non-admin users are not allowed to update views on Jenkins
which requires explicity using -j flag.
Allow users to set a config option 'update=jobs|views|all'
in the 'job_builder' section implicitly use --jobs-only or
--views-only and control these flags from the config file.
Note: CLI options takes precedence over the config file.
Change-Id: I2a94e5a2d671ccbfc505de2f19b578ecfef9e9d7
Co-Authored-By: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Anil Belur <askb23@gmail.com>
- Merge "Add support for docker-stop-container"
- Enable groovy sandbox for properties-inject
The groovy-plugin has introduced with it's 2.0 release on April 10th 2017
the notion of SecureGroovyScript with the associated sandbox for groovy code
To enable JJB jobs relying on the sandbox groovy execution we need to enable
the expected SecureGroovyScript XML stanza.
When used with the groovy 2.0 plugin this will
enable the following JJB YAML stanza
properties:
- inject:
groovy-content: test groovy-content location 004
groovy-sandbox: true
Needed for groovy code sandbox mode
This implementation is the same as the wrapper implementation in
jenkins_jobs/modules/wrappers.py L949- L989
Change-Id: I93e890a7a0496520246532adbdfd84e3be746abf
- Add support for docker-stop-container
Change-Id: I0c93113acdba170d1e2e54f2295819acc7a37d21
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "jdepend: Add commas to mapping tuple"
- Merge "trig-param-build: Utilize convert_mapping_to_xml"
- Merge "Support SSHCheckout trait"
- Merge "Document practical use case for variable defaults"
- Merge "artifactory-generic: Utilize convert_mapping_to_xml"
- Merge "cvs: Fix indentation"
- trig-param-build: Utilize convert_mapping_to_xml
Change-Id: I1f7130bda46f268a9f25de152a0c767f82cbfa1d
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- hue-light: Add commas to mapping tuple
Change-Id: Ib902b1be936afbe5295229995a23fbb262576223
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- jdepend: Add commas to mapping tuple
Change-Id: I7f02043b49a2364eccf1f88562eee7d03ec45536
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "docker-build-publish: Improve support for new options"
- Merge "reporters: Import entire helpers library for usage"
- Support SSHCheckout trait
Change-Id: Ie00ad2e68a8c9100d055df220ac68bfb8f0ba184
Closes-bug: 2003749
- Extend multibranch pipeline project scm
Add suport of available extensions from default git scm
Story #2003620
Task #25743
Change-Id: I62f8018fb49d239ab634b502e51005a1465a81d9
- reporters: Import entire helpers library for usage
Change-Id: I4f7a5da69d36773a0ac9888655f943db78726240
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- docker-build-publish: Improve support for new options
Change-Id: I316989cc736bb4ffb6152c68e4b3ff598b4274db
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- config-file-provider: Add tests
Change-Id: Id8e36d1745bd05527985d5ee9ddfba32c5fa197d
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- cvs: Fix indentation
Change-Id: I4f3c30678d8b9907f059f0f288de8bfb415f7338
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Use upstream default for allNodesMatchingLabel
As has been found earlier in Idf3460f165209611113193c7e85a884c42511371
having allNodesMatchingLabel on is a very bad idea
because it kills scaling in your CI
by scheduling every job on every node in parallel
Change-Id: Iae07b578ccfb6f728a1615628479318c46e0530a
- Merge "Add multibranch features"
- Document practical use case for variable defaults
Took inspiration from my StackOverflow reply here
https://stackoverflow.com/questions/50177308 to document a practical
use of setting variable defaults and inheritenence.
Change-Id: I45934341d3ff3fbf4ff711a435924197d2f12712
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Merge "pollurl: Utilize convert_mapping_to_xml"
- Merge "Add new checkboxes for Xcode plugin"
- Merge "Add support for "Nexus Repository Manager Publisher""
- Merge "github-pull-request: Utilize convert_mapping_to_xml"
- copyartifact-build-selector: Utilize convert_mapping_to_xml
Change-Id: Ie66cff0f9cd775f963c2b7bd0cc1a759bf12fc93
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Add multibranch features
Adds the following features:
* discover-pr-forks-strategy
* discover-pr-forks-trust
* local-branch
* checkout-over-ssh
* checkout-over-ssh-credentials
* filter-by-name-wildcard
* filter-by-name-wildcard-include
* filter-by-name-wildcard-exclude
Change-Id: I475086b73e1e485552279ee7ba03866d610afb07
- Merge "vault-secrets: Utilize convert_mapping_to_xml"
- Merge "credentials-binding: Add support for more options"
- Merge "jclouds: Utilize convert_mapping_to_xml"
- credentials-binding: Add support for more options
Change-Id: I0d193dbab5967b362d92bde58c5a43bacac86bd2
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "copyartifact: Add support for new options"
- Merge "rbenv: Utilize convert_mapping_to_xml"
- Merge "ci-skip: Refactor to improve readability"
- github-pull-request: Utilize convert_mapping_to_xml
Change-Id: I8a5f3ade27d7aeba8054c814ad0dc2bf7993dd42
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- pollurl: Utilize convert_mapping_to_xml
Change-Id: I2d14f0c714e42c268d6fc411355a61347f89934f
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Add new checkboxes for Xcode plugin
This change allows for the user to specify the following checkboxes:
* Upload Bitcode?
* Upload Symbols?
* Compile Bitcode?
The plugin defaults to these checkboxes being checked, so I kept those
defaults here.
Change-Id: I727611fd2a70f2157b05d030ec296c74a5b214a8
- build-keeper: Add support for RunCondition
Change-Id: I05e7f9930c18e4cf803eb0d50dbd626bb081c915
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- vault-secrets: Utilize convert_mapping_to_xml
Change-Id: If0d4080e6df0b5ab51b36eabce4c721eba8dc987
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- jclouds: Utilize convert_mapping_to_xml
Change-Id: I8830ef72ae50d9a51d8ee3e0ba5d766b7ddcbad9
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- copyartifact: Add support for new options
New options include:
1. exclude
2. result-var-suffix
This update affects copyartifact in builders.py
Change-Id: I682a10be47f049fe457e5bc199aa50a5583958a7
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- artifactory-generic: Utilize convert_mapping_to_xml
Change-Id: I9add96bfb2e8d55cd9175465326660ab2144e944
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Allow control of verbose option for publish-over plugins
The publish-over plugins all expose the option 'verbose' to all for
lots of debug output from the connection to be outputted to the jenkins
console. However by default this is supposed to be disabled ('false')
so update the existing code to switch to the correct behaviour.
Change-Id: Ie9acb1a005a25cd5c9f279cc89d5178eb8d54dd7
- ci-skip: Refactor to improve readability
Change-Id: I7e601edb2a269a2f74c6aec6ee2aa5bb50275720
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "ant: Refactor code to improve readability"
- rbenv: Utilize convert_mapping_to_xml
Change-Id: I8da4a843f18aa3c845f4c15cc9ecd346c2c69498
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Allow running only on one of nodes with label parameter
Current default value setting makes the jobs with label parameter
execute in parallel on all nodes matching a label. In some cases that is
not expected and is undesirable. It is also no the default value
upstream
Change-Id: Idf3460f165209611113193c7e85a884c42511371
- Merge "build-blocker: Refactor to increase code quality"
- Merge "branch-api: Support skip-rate-limit param"
- Merge "ansicolor: Enforce valid types"
- branch-api: Support skip-rate-limit param
Change-Id: I4d86b24519381cc76e669f89d8e313f9c30ad999
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- ansicolor: Enforce valid types
Change-Id: Ie14dcfc289bc0a88da8071cb4e308a49afd47a2a
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- build-blocker: Refactor to increase code quality
Change-Id: I9e2e291c0a99e3fe01dacd0744752fe398b1938a
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "Avoid extra XML elements in views"
- Avoid extra XML elements in views
Non-view modules get called and add empty "actions", "builders" and
other XML elements to view XML tags where they are not supposed to be,
this causes Jenkins "Old data" warnings
Change-Id: Ie031192dca7ac0920e0953d533ed15c22db91022
Story: 2002159
Task: 20008
- ant: Refactor code to improve readability
Change-Id: I3d56a18b140e6660c91e144f5bd27db3d8fbded3
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Views require case insensitive sorting
Regular sorting places capital letters before lowercase, that is
incorrect order for Jenkins and causes jobs with names starting with
capital letters to become invisible in generated views
Change-Id: I2431d4fd5b86ce7ed6393b7d89552d08f025a5b9
Task: 12611
Story: 2001844
- Add support for "Nexus Repository Manager Publisher"
Change-Id: Icf72b436048bc0364690da2f956ed8b564fa5aa5
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "Add matching parameter to throttle concurrent jobs"
- Add matching parameter to throttle concurrent jobs
Change-Id: I6d211508d774df2312942d56a840bf311bb455d4
Co-Authored-By: Tan Heng Yeow <E0032242@u.nus.edu>
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "ssh-agent-credentials: Support ignore-missing-credentials param"
- ssh-agent-credentials: Support ignore-missing-credentials param
Change-Id: I5f78648600ef045dfe539a950daae14b304a74d9
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Revert "Allow dashes in variable key names"
This reverts commit b92336aa95c7b06316ece9e0537fb3d7c150279c.
Change-Id: I0c682f13af83febc862a927f389a547b851e41c0
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Merge "Add support for "Invoke Nexus Policy Evaluation""
- Add support for "Invoke Nexus Policy Evaluation"
Change-Id: I363e468cdb4b50a0c6cf924d00618fb0ec568588
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
- Merge "[Maven] Update helpers import to common style"
- Merge "[Triggers] Update helpers import to common style"
- Merge "[scm] Update helpers import to common style"
- Merge "[pipeline] Update helpers import to common style"
- Merge "[wrappers] Update helpers import to common style"
- Merge "[view_list] Update helpers import to common style"
- Merge "[Workflow] Update helpers import to common style"
- Merge "Fix pipeline view-type should be pipeline"
- Merge "Add support for filtering by name in git source"
- Merge "Fix typo in anchor test"
- Merge "Refactor parameters.py"
- Fix pipeline view-type should be pipeline
Change-Id: I55f080357fa610c94f34602c8ddc1e1087d284ce
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [view_list] Update helpers import to common style
Change-Id: Ia93449fd6c49e9f2814e3d06bcd31d575467021f
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [pipeline] Update helpers import to common style
Change-Id: I7ceb2e3bf23e9c92f13a7b86b8361b2bf98dbd81
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [wrappers] Update helpers import to common style
Change-Id: I0c5961b2dbeffecdaf9f25e67a8e4773a7f82dc0
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [scm] Update helpers import to common style
Also update some formatting for mappings.
Change-Id: I02460de312b66cbd746f4423f15a31ed5d47f56b
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [Triggers] Update helpers import to common style
Change-Id: Ic9f6791ab7b701e160a7d8b8ff20fe0615d222a4
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Fix typo in anchor test
Change-Id: I542eee4096340a8e54073c9ca584cb701e714b50
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [Maven] Update helpers import to common style
Change-Id: Iccf83252663426fc0859025928d4ff9e6acfff3c
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- [Workflow] Update helpers import to common style
Change-Id: I514842533112602f6454144fe30e95603959b062
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Refactor parameters.py
Converted all relevant functions to use helpers.<insert function>
instead of a specific import.
Added commas to last entries of mapping tuples.
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Change-Id: Ie7c40809ad8259fc3906871360c16dbb6e58a4b0
- Refactor email-ext in publishers.py
1. Refactored error handling to InvalidAttributeError
2. Fixed indentation of dictionary
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
Change-Id: I1cc1ec3b6c6f722c288989e7b2e3472bc1c3d03a
- Add support for filtering by name in git source
Change-Id: I31bcf257e3f508462b870d0559dd7fed580232bc
- Merge "Refactor clone_workspace function to use convert_mapping_to_xml"
- Merge "ghprb: blacklist-target-branches support"
- Merge "Add support for few of Extra Columns plugin' extra columns for ListView generator"
- Merge "Refactor notifications.py"
- Merge "Refactor hipchat_notif.py"
- Merge "Add support for Basic Branch Build Strategies Plugin"
- Fix typo in test docstring
Change-Id: I28f7b19319fdbbb8f5b2d582596643d85fc3efb9
Signed-off-by: Anil Belur <askb23@gmail.com>
- Allow dashes in variable key names
It can be confusing when adding variables to templates and macros to
discover that '-' are not valid characters in the key name.
Change-Id: I8b10371ddac54c19a92a9d0811cd549a492b3dbb
- Add support for few of Extra Columns plugin' extra columns for ListView generator
Changes include support for TestResultColumn, BuildDescriptionColumn, BuildParametersColumn,
UserNameColumn, LastBuildConsoleColumn, WorkspaceColumn and ConfigureProjectColumn.
Updated examples to show up how to use new columns with list view builder.
Proposed column names in job generation YAML config file are:
- extra-tests-total
- extra-tests-failed
- extra-tests-passed
- extra-tests-skipped
- extra-tests-format-0
- extra-tests-format-1
- extra-build-parameters
- extra-build-description
- extra-last-user-name
- extra-workspace-link
- extra-configure-button
- extra-last-output
To add an extra column with specific parameter named MY_PARAMETER, use following syntax:
- extra-build-parameter: MY_PARAMETER
Change-Id: I9497e2e322027f8cda105d728ee3d105a19b206e
- Add support for Basic Branch Build Strategies Plugin
Add optional parameter build-strategies to multibranch scm sections
(github, bitbucket, gerrit, git) in order to configure Basic Branch
Build Strategies Plugin
(https://github.com/jenkinsci/basic-branch-build-strategies-plugin).
This plugin allows control over whether to build a branch (or change
requests and tags). This also enables triggering builds on new tags
(normally the Multibranch Pipeline does not poll tags).
Change-Id: I908fe7c0ec81eb8503669177c337135fc4081a62
Task: 22732
Story: 2002816
- Refactor hipchat_notif.py
Converted all relevant functions to use helpers.<insert function>
instead of a specific import.
Added commas to last entries of mapping tuples.
Change-Id: I87640188c900aef38ee368eca7540c3126274c2e
- Refactor notifications.py
Converted all relevant functions to use helpers.<insert function>
instead of a specific import.
Added commas to last entries of mapping tuples.
Change-Id: Idc63572a57fa2e4f1cf5b442027dd7f5e99aefdb
- Refactor clone_workspace function to use convert_mapping_to_xml
1. Refactored the code in the function to utilize convert_mapping_to_xml's
way of detecting valid types.
2. Refactored optional parameters to use convert_mapping_to_xml
Note:
This update will affect users using lowercase inputs in their YAML files.
An exception will be raised if the inputs doesn't follow the exact
casing required by the plugin.
Change-Id: I053ef5f58200e51b3f6ff5ec55760f9e6f095370
- Merge "Refactor ivy function in triggers.py to utilize convert_mapping_to_xml"
- Merge "adopt pre-commit hooks"
- Merge "Stable identifier for branch sources in multibranch job"
- adopt pre-commit hooks
Change-Id: I98bc0b5717c3921b35e74f53c55f896427880a84
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Refactor builders.py
The refactoring process includes the following
1. Converted all relevant functions to use helpers.<insert function>
instead of a specific import.
2. Standardized indentation for mapping tuple
3. Add commas to last entries of mapping tuples
Change-Id: Ied80c8354b9d59639eba1a3bb9794f19d15c6ba3
- Stable identifier for branch sources in multibranch job
Calculate a stable identifier based on required parameters that make
up the identity of the repository so that jenkins will only require
rescanning the repository if the repository was changed.
Change-Id: I83da1d2478f2771e9c7808e7dbd9e6bcba5025f7
Task: 22887
Story: 2002910
- Merge "Add commas to all mapping tuples in properties.py"
- Add commas to all mapping tuples in properties.py
Inserted appropriate commas after the last entry of
the mapping variable to ensure consistency.
Change-Id: I0519cae693f13994bc64f20b40d681a8eafdca55
- Refactor ivy function in triggers.py to utilize convert_mapping_to_xml
Refactor the code in the function to utilize convert_mapping_to_xml.
Change-Id: Ic62b5cc60d260f9f4820c4260f69771e1f8589ba
- Fix typo of function description in helpers.py
Corrected the typo of function description in convert_mapping_to_xml.
Change-Id: I368196e21ada21c6fdbac29a9f3141d0b719e872
- Fix bug in Git 'skip-tag' backwards compatibility
Using the (deprecated) 'skip-tag' option in Git SCM did not work as
expected, despite code in place to maintain compatibility with it.
This needs to work to allow smooth transition for projects from JJB 1.x
to 2.x.
Also added a test case to expose the issue.
Change-Id: I90230f9fe97757bcc70e35b829fc887839a19e57
Signed-off-by: Barak Korren <bkorren@redhat.com>
- ghprb: blacklist-target-branches support
Change-Id: I27f49f25d97c810904cb107042380b9e7bb7fd42
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Merge "Normalize newlines at end of file"
- Merge "Adds wrapper for vault plugin"
- Normalize newlines at end of file
Preparatory move for adopting pre-commit hooks.
Shoudl only remove newlines and spaces at end of files.
Change-Id: Ia33679467c533722b9308f7e7b74be395c926428
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Merge "Revert "fix tox python3 overrides""
- Symlink folders001.xml to deduplicate the test xml
Change-Id: Id03b1a147303cc377a48be25ba93f97cab856a8c
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
- Add XUnit processing plugin to builders
Change-Id: Ib51da8d44bd467f9eec76d21a7e6f5014df43209
- Adds wrapper for vault plugin
Change-Id: I85ab23670a1d89b04eba01ddd4cc024da1d879a9
Signed-off-by: Roman Iuvshyn <riuvshyn@redhat.com>
- Constrain PyYAML to v3.x.
PyYAML v4.1 was released which breaks the `!!python/tuple` syntax with the
following error:
yaml.constructor.ConstructorError: could not determine a constructor for the tag
'tag:yaml.org,2002:python/tuple'
Change-Id: Iaf838b111e6dfad5dc5c1f904a482b525e99a911
- multibranch-bitbucket: discover strategies
Can specify discover-branch and discover-pr-origin strategies. Changes
are based on existing code for multibranch-github implementation.
Change-Id: I8e5e29df9d04339c19a61180143bc0e14395aa58
- multibranch-bitbucket regex for source branches
With the SCM API Plugin, a user can specify a regular expression to
filter discovered source branches. This behavior is now also
configurable from within the yaml configuration.
Change-Id: Iff7e385058134e9f072e8b219ec27ff7b9adf2dd
- Merge "Access priority sorter plugin info via short name"
- Access priority sorter plugin info via short name
In [version 2.0](8f2ae302bd)
of the priority sorter plugin, the long name of the plugin was renamed
to "Jenkins Priority Sorter Plugin", which broke the `priority_sorter`
function in the `properties` module.
The short name did not change, so we now use that instead to ensure
that we generate a configuration that matches the latest required by
the plugin.
Change-Id: I89a8fdabeac63ea482b3b1bd8ddf2dd83c1c7435
Task: 3112
Story: 2000655
- Merge "add pipeline template using nested stage command"
- Merge "Update BuildResultTrigger plugin"
- Merge "Add publishers related to GitLab Plugin"
- Merge "multibranch: Configurable script-path"
- Merge "Add support for AccuRev as SCM Provider"
- Merge "Refactor duplicated code in xml_config.py"
- Merge "Add support for new option in config_file_provider_builder"
- Merge "Update hipchat example for new syntax"
- Merge "Add groovy-script-file option to extended parameters"
- Merge "multibranch-bitbucket: Configure server address"
- Merge "Improve support for nodelabelparameter"
- Improve support for nodelabelparameter
Adds support for all fields for nodelabelparameter. Uploaded new tests, including one that covers existing behavior to prevent regression.
Story: #2001287
Task: #5835
Change-Id: I9dc4574427626fd56ba41149f0f6ab131a22e966
- Refactor duplicated code in xml_config.py
The view generation code was largely a copy/paste of the job generation
code. This refactors that shared code in to a super-class that both
code paths can share.
(This has the side effect of improving the error message when an
incorrect project-type is specified; that improvement was previously
only applied to views.)
Change-Id: I1316162b885267c5e21793e59c2c3f7b95d5ce3b
- multibranch-bitbucket: Configure server address
If the field is not specified, the value will not appear in the XML. The
value is then decided by the Jenkins configuration.
Change-Id: Ic373069ea916327778fb2fe567ddf578f03abd9e
- multibranch: Configurable script-path
By default the script-path is set to 'Jenkinsfile', but it can now be
configured.
Change-Id: If02468b292b6b771b3794ea0606acd233c2e9e4b
- Add publishers related to GitLab Plugin
Currently we have only possibility to set build status on GitLab
But GitLab Plugin provides us to make a comments and to vote on Merge Request
* Add Gitlab Message - configure Gitlab publisher to post comments on MR
* Add Gitlab Vote - jenkins set Vote for build status on GitLab MR
Change-Id: I30d2fbed647763f2a5eb6fb801dd79f6d43d4696
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Allow jjb to be called as a module
Enable us to do `python -m jenkins_jobs ...`
which avoids the need to install executable in
user path.
Tests cli execution on each supported python version.
Uses default encoding workaround only on
python2, where is needed.
Change-Id: I4cd79fd51a8309d532e0e76723ecfbbda3e1ca6f
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Revert "fix tox python3 overrides"
This reverts commit 51a4ccab70caba694fbf113548cf564139b0c0c8.
Change-Id: I52b3ff4699f6907cb481f016fb55fb9102c48b98
Signed-off-by: Thanh Ha <zxiiro@linux.org>
- fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I78f552cfb434b6bac30a77c5f2011636308fbbee
- Merge "upgrade hacking module"
- upgrade hacking module
- upgrades hacking to current version
- sorts new linting issues
- sorts bug with sys.reload on py3
Change-Id: I4a18abc93116667a2733e8aec619ac59ea73d630
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Merge "Improve support for rvm plugin"
- Merge "Improve unicode support"
- Improve support for rvm plugin
rvm version greater than 0.5 requires
a different ruby-class. This patch handles
this case while maintaining backwards
compatibility.
Change-Id: I1fd03922e6125dd17c2bd41bf91560679edaeafc
Story: #2000857
Task: #3476
- Add support for AccuRev as SCM Provider
The AccuRev plugin is supported in this patch.
Change-Id: I4a9d58367afdf06913213bdc8c0fdd8de5126d3e
Story: #2001118
Task: #4809
- Merge "Fix indent of git for scm"
- Improve unicode support
Printed job urls with unicode are now clickable
Avoids unicode decode errors in logging due on
systems, likely python27 systems where
default encoding is ascii.
Change-Id: I17041de05a4388c7b95a9ca04477043424458c67
- Merge "Improve support for EnvInject plugin"
- Fix indent of git for scm
Start new key value pairs at 4 indents on the next line.
Added a comma to last key value pair to facilitate future line additions.
Change-Id: I0f90e6afd25331d38771e3bc9cc4f44c07b33e6c
- Merge "Add support for Jenkins Sounds plugin"
- Improve support for EnvInject plugin
Adds support for groovy script option and sandbox option.
Updated new example YAML and XML files.
Story: #2000922
Task: #3553
Change-Id: Iad44f9a0a776060c6fb1acfc3ebb44fa3c5acef2
- Merge "Add support for GraphView column to views"
- Merge "Add depth option to git shallow-clone"
- Add depth option to git shallow-clone
- Use convert xml for shallow-clone and depth
Change-Id: I92d4bd2ded6db66bb608aed480e873e29e7b9474
- Fix typo in robot-lists XML
XML had a typo causing the column to not work.
Change-Id: I3e181ca7c92841f7d48dddf6888d570f0e0b3676
Signed-off-by: Thanh Ha <zxiiro@linux.com>
- Add support for GraphView column to views
Change-Id: I7a36c728b0e5485a41252a91657da72c60d04beb
Signed-off-by: Anil Belur <askb23@gmail.com>
- Correct doc for deprecation version of git skip-tag
Deprecation version in docs was incorrect. Deprecation of skip-tag
happened at 2.0.0 and onward in favour of per-build-tag extension.
Story: #2000907
Change-Id: Ibf9b43beaf7a23c18a62f57270c9f46bc4727d5c
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Merge "Change default on fail_required parameter to True for convert xml"
- Merge "Add trigger-from-child-projects option."
- Merge "Use convert_mapping_to_xml helper function"
- Merge "Add discover-tags to multibranch pipeline project"
- Use convert_mapping_to_xml helper function
'primaryView' and 'healthMetrics' attributes are generated in XML
code with the help of convert_mapping_to_xml helper function.
Change-Id: Ic68c22dfc49872c304f1540120deae237f479273
- Add discover-tags to multibranch pipeline project
Add the option to specify discover-tags on bitbucket, git and
github SCMs in multibranch pipeline.
Change-Id: I28a4bc3a4bb5d50b8d7717b19ef063a23a68ed8c
Task: 20061
Story: 2002187
- Add trigger-from-child-projects option.
Update trigger-parameterized-job arguments, to include
trigger from child projects.
Closes-Bug: story/2002157
Change-Id: Iae0610ee942dd2cad95e3fcaa8b70b16f42b3c50
- Handle generateParcelBuilderInputFile flag correctly
Change-Id: Id1da0647d4291e672ccad7a3abcb7fcdc47a7b54
Story: #2002156
Task: #20003
- Add support for Jenkins Sounds plugin
Change-Id: Ib5b8d24549ef47c308a49ed79d9cb1784cb67921
- Fix doc in logparser
Extra example line in doc that was not being used.
Change-Id: I9ac3abc38d549db4112270429875d1d2f3031e7e
- Merge "Add retain_anchors config option."
- Change default on fail_required parameter to True for convert xml
If optional setting was set and then is removed, Jenkins will retain the last
configured setting for the option. This is inconsistent as it is expected that
Jenkins will revert back to its default setting. And so optional parameters
should use default setting. That is, JJB will handle default setting if
optional parameter is not set.
Original issue:
http://lists.openstack.org/pipermail/openstack-infra/2016-February/003746.html
Change-Id: Iaf8684053f8a2a035467f13d91fe2f0a56be5906
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Merge "Fixes delete-all command when no option is provided"
- Update BuildResultTrigger plugin
- Add full and minimal tests
- Set plugin tag
Change-Id: Ibac51be8cd298bca0c6e8005182b59806d266e51
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Update hipchat example for new syntax
The hipchat001 and hipchat_rooms-list001 test/example were swapped (with
hipchat001 being renamed to hipchat_room001).
Change-Id: Ia00964726814d9b1c3a7cb6af20996da087c4ba1
Story: 2000315
Task: 2510
- Merge "Handle string skip-vote parameters in gerrit trigger"
- Merge "Make the deprecated plugin config messaging clearer"
- Fixes delete-all command when no option is provided
Change-Id: Ibc06209c2ec19045e12a145083a64a179d57d731
Implements: fix for delete-all command without option
Closes-Bug: #2001207
- triggers: correct name of JMS Messaging Plugin
The plugin's name is "JMS Messaging Plugin", and "Pipeline Plugin"
appears to be a bad copy & paste from elsewhere.
Change-Id: I3b955304fd671a95110679947228a5728480bb0e
- Add retain_anchors config option.
If set to True, YAML anchors can be referenced across files, allowing jobs to be
composed from bits of YAML defined in separate files. False by default.
Story: 2000338
Task: 2547
Change-Id: I034ce3bce0030093cb8d4266dabbdb06d96306d6
- Handle string skip-vote parameters in gerrit trigger
Prior to this commit, the code assumes that the parameters given in the
YAML will parse as Python bools. This fails when, for example, the
string "false" is given.
Change-Id: Ia7d0f5954929d13acc268f878ce992808b258a12
Story: 2001466
Task: 6183
- Make the deprecated plugin config messaging clearer
At the moment, if you don't know that you have configuration for the
given plugin in your config file, there's nothing that actually suggests
that's where you should start looking to fix this.
Change-Id: I32481eb9b1a4feafc8b8ca2cec63e4b9a0b29441
Story: 2001735
Task: 12090
- Merge "Add support for policy-violations for view columns"
- Merge "Add support for setting file paths to trigger on"
- Merge "Fixes a bug in the multibranch project type"
- Add groovy-script-file option to extended parameters
The extended parameters plugin allows to specify where the groovy script
file is to generate parameter
Change-Id: I0c6ac0b49c24b8d3afbc06b003847de2e043c2b8
- adding extra properties to sonar publisher
Allows you to explicitly set which sonar configuration to use
for the sonar analysis when having more than one sonar installation.
In this case you are required to select which one to use,
as there is no default fallback in the Jenkins plugin itself.
Also added a similar option for configuring the maven installation
to use. This does have a default value, the version used in the
maven build in the same job. However, if for some reason you
need a different version of maven for sonar analysis you
have to be able to configure which one.
Adds parameter installation-name for the sonar configuration,
and maven-installation-name for the maven configuration.
Change-Id: I013ea80688efa17334448e6394d312ca6854cf07
- Fixes a bug in the multibranch project type
It appears there was a stray if statement resulting in an
UnboundLocalError and stacktrace.
Change-Id: I7e1533ca382a582066dd6132d2967281b0b50b98
Task: 19766
Story: 2002092
- Merge "Add support for view-templates"
- Merge "Fix default value regex pattern"
- add pipeline template using nested stage command
Change-Id: I52bbf54c5c1c2603473b36f362b42e9291976543
Story: #2001759
Task: #12157
- Add support for policy-violations for view columns
Change-Id: I61a08cc4586119466b04f86497c330873e5d582d
Signed-off-by: Anil Belur <askb23@gmail.com>
- Fix default value regex pattern
Negative values can't be set as default values
currently, for example:
num-to-keep: '{num_to_keep|-1}'
It will return an exception saying: 'parameter missing
to format'.
This should also allow other patterns as long they do
not contain the closing curly bracket.
Change-Id: I26dafb80b120f2c071dda6d9a27319d533b0f874
- Improve support for Extended Choice Parameters
Adds support for extended choice parameters with regards to default groovy scripts.
Change-Id: I9d2a61013f041e7b81a80b5618781dbefeace329
Story: #2001931
Task: #14461
- Merge "Missed Replay property of authorization matrix"
- Add support for setting file paths to trigger on
- include minimal and full tests
Change-Id: Ic78c87c3e4388bb124414725bb2da2b406fb5269
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
- Add support for new option in config_file_provider_builder
Change-Id: Iab4ab936a44868abd4e0dbf3033107c0cf33e312
Task: 4669
story: 2001062
- README: add mailing list and IRC details
Point users to the mailing list and IRC channel.
Change-Id: Ieb0de98986bb736899620d5052c0528eeea6c788
- Merge "Deprecate running testjobs without config-xml flag"
- Merge "bug/2002053 allow None for auth-token"
- Deprecate running testjobs without config-xml flag
Creation of nested folders is not possible in
`project-type: folder` in test mode because the
folder name conflicts with the generated XML
filename and an `OSError` is thrown as a result.
This can be resolved by passing the `--config-xml`
flag when running the jobs in test mode. This
commit displays a deprecation message asking the
user to use the `--config-xml` flag.
Change-Id: I6f883040ed3d9b3536ccc2fb305cdddcfde5d765
Story: #2001937
Task: #15050
- Fix a typo in doc
Fix correct link to CloudBees Folders Plugin
Add missing comma in line 1290 of module wrappers
Change-Id: Idb0311064945965c58c0cc608fc6cab00eef3ee9
- Merge "conditional_publisher: add support for Matrix Aggregation"
- Merge "Fix dontWaitForConcurrentBuildCompletion option in s3 plugin"
- bug/2002053 allow None for auth-token
auth-tokean as None type should exclude from the build job
valuable for reuseing jobs that sometime need auth and othertimes don't
Change-Id: I691e7dd4ff1af53efd9fac3363bce9d41038cf25
- Merge "Add support for aggregated test results"
- Merge "fixed config format for nodejs plugin"
- Fix dontWaitForConcurrentBuildCompletion option in s3 plugin
Story: 2002042
Change-Id: Ied3dbc06a586ec2d39227207458f92d15c8240d5
- Add XCode 9.1 Support
Branched from my xcode-20 branch and rebased from master
and added support for xcode 9.1 now that the xcode plugin has been
released
Due to:
https://issues.jenkins-ci.org/browse/JENKINS-45509
Change-Id: Ibd0f4c82b5e8f37a9da335c57786eae5dc91aefb
- fixed config format for nodejs plugin
Updates generated config for nodejs
to match current configuration format.
Change-Id: Ie2642cc81d7dcf176c3d826120850dfaa1811150
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Add support for aggregated test results
This patch adds support for aggregated test results in the Jenkins
MultiJobProject plugin.
Change-Id: I5c98f7814d33a740d9a70b584e00d1aa5f50e0ea
Signed-off-by: Major Hayden <major@redhat.com>
- conditional_publisher: add support for Matrix Aggregation
Change-Id: Ic206b3a29c918b63e5b5db47b6629721eab14bd5
Signed-off-by: Evgeni Golov <evgeni@golov.de>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
- Add support for view-templates
Allow views to also be configured via templates similar to
job-templates.
This adds a new project key called "views" and parser type called
"view-template" allowing the user to add custom views.
Example:
- view-template:
name: '{name}-template-{seq}'
description: 'testing view templates feature'
view-type: list
regex: 'test-view-.*'
- project:
name: 'test-view'
views:
- '{name}-template-{seq}'
seq:
- a
- b
- c
Change-Id: I6eb225f24bc3c7d790c7dcab6391735c579ac71a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
- Missed Replay property of authorization matrix
Add support for Run.Replay property of authorization matrix
Change-Id: I1101c6a15a7e9704a3eccf8f194da6280e54d172
* Update jenkins-job-builder from branch 'master'
- Merge "Add support for Cloud Foundry plugin"
- Add support for Cloud Foundry plugin
Change-Id: Ic2ab8ad688515954011c6d55e680997a4bd32d93
Signed-off-by: Kien Ha <kienha9922@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Add Slack 2.2 new settings"
- Add Slack 2.2 new settings
The slack plugin added the "includeFailedTests" and "notifyRegression" options.
This review adds those two options, along with unit tests for them.
Change-Id: I256933d3d25c09c72c688928e9068fe66f23055b
* Update jenkins-job-builder from branch 'master'
- Merge "Update build_blocker to make use of convert_mapping_to_xml()"
- Update build_blocker to make use of convert_mapping_to_xml()
Change-Id: I104bbfce6b90f8ce62f28b75230ea0e86a5e2295
* Update jenkins-job-builder from branch 'master'
- Merge "Document use of | character for variable defaults"
- Document use of | character for variable defaults
Change-Id: Id20fc7a49fef6684170a73834f2df06db3f0ca7f
Signed-off-by: Thanh Ha <zxiiro@linux.com>
* Update jenkins-job-builder from branch 'master'
- Use of OrderedDict allows hash seed != 0
Before the yaml parser was modified to use OrderedDict
test input/output could be incorrectly ordered relative
to the expected output. This has long been fixed and we
should now be able to remove this setting.
Change-Id: I165c3fd4189d2d0d87cc5da565cbba7df236e326
* Update jenkins-job-builder from branch 'master'
- Add support for unclassified job filters
Add support for unclassified job filters for views.
Change-Id: I64f0464857b4925cd5b5b9714b8ba1bb1f860244
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for upstream downstream job filter
Add support for upstream downstream job filter for views.
Change-Id: I8869f804a6f85f8bee7720d785f03492c87ff959
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for user permissions job filter
Add support for user permissions job filter for views.
Change-Id: Ib956fa9387dc86fd8a2d297c443342b5548a9937
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for secured jobs filter
Add support for secured jobs filter for views.
Change-Id: I8b64d80eb0a6131c188710874c5406a1013e44e6
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for scmtype job filters
Add support for scmtype job filters for views.
Change-Id: Ie63f36ff61258c0a467eab8dbae93b4d5ef60837
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for other views job filter
Add support for other views job filter for views.
Change-Id: I80a8e82f8396df1dab2799781555c4a61942f34e
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for parameter job filter
Add support for parameter job filter for views.
Change-Id: I55cbfe318a99a8a2bcf9ac2abae5d230272da024
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for job type filter
Add support for job type filter for views.
Change-Id: I6bf6af70310d4a0e590187fca3e6db6a52c4ec33
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Add support for regex job filters
Add support for regex job filters for views.
Change-Id: Ic442aaf7f374800f1cd4d0d8a1229ee1e0557891
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Add support for user relevance job filter"
- Add support for user relevance job filter
Add support for user relevance job filter for views.
Change-Id: If20378e886c50f799f91e44d02d7d4e2edc9401c
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Add support for build status Job Filter plugin"
- Add support for build status Job Filter plugin
Add support for build status job filter plugin for views.
Change-Id: I1e9142e6eb7232341fc97545fe6a48fa0a94d46a
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Add support for fallback Job Filters"
- Add support for fallback Job Filters
Add support for fallback Job Filters for views.
Change-Id: I06290c74df62e68fe78f07fc8d77236c206cf5ad
Signed-off-by: Anil Belur <askb23@gmail.com>
* Update jenkins-job-builder from branch 'master'
- Merge "Fix Postbuildscript Plugin Info Lookup"
- Fix Postbuildscript Plugin Info Lookup
Between version 0.18.1 and 2.0, the longName of postbuildscript changed
from 'Jenkins Post-Build Script Plug-in' to 'Jenkins PostBuildScript
Plugin'. Because of this JJB>1.6.2 currently does not work with previous
usages of the postbuildscript macros, as the lookup never succeeds for
the plugin<2.0.
This change switches the 'get_plugin_info' call to query using the
shortName, which hasn't changed.
Change-Id: I51437a300993ed09c7419bd9fc70afd0e8629119
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
* Update jenkins-job-builder from branch 'master'
- Fix Parameter: Credentials Plugin docs example
Due to an extra colon and indentation, the example for the credentials
plugin parameter was not being included correctly.
Change-Id: I7363f8dea713410dc4fa263a557ba7cb6d1c4e58
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
* Update jenkins-job-builder from branch 'master'
- Merge "Add helper tag to join arbitrary lists into strings"
- Add helper tag to join arbitrary lists into strings
Adds a yaml application tag '!join:' to support defining data as a list
while having the resulting contents automatically joined together with
the specified delimiter and passed as a string into the resulting object
returned by yaml for JJB to process.
This allows users to store long lists of data that is combined together
for use with Jenkins plugins that expect a delimited string of arguments
instead of needing each module in JJB to provide individual support.
Change-Id: I745181ade3926d5c29708963189ae499a0378ece
* Update jenkins-job-builder from branch 'master'
- Merge "gitlab trigger: add support for different MR events"
- gitlab trigger: add support for different MR events
also add tests for branch-filter-type on < 1.2.0 to make Zuul happy :(
Change-Id: Ia0aa807e1139bacc3e808b6bdc9680648b596275
Signed-off-by: Evgeni Golov <evgeni@golov.de>
* Update jenkins-job-builder from branch 'master'
- wrappers: fix XML node name for scrip-env's only-run-on-parent
Jenkins configuration wants it as runOnlyOnParent (vs onlyRunOnParent).
https://storyboard.openstack.org/#!/story/2001547
Change-Id: Icbf9b44cabe6f111941659ec5b084d44c0fc8a59
* Update jenkins-job-builder from branch 'master'
- Merge "Sort views list jobs"
- Sort views list jobs
Change-Id: I27613393fd423fb514e9adfa44db7f12c5249b52
* Update jenkins-job-builder from branch 'master'
- Merge "Add 'existing-only' argument for update subcommand"
- Add 'existing-only' argument for update subcommand
Additional argument for the update subcommand to allow user to update
only jobs currently installed on the Jenkins server and managed by
this tool.
Change-Id: I4b0e997df01057f89896b8caa27dc00b5ca077df