summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs
Commit message (Collapse)AuthorAgeFilesLines
* Fix Authorization Matrix property - inheritance strategyAdam Romanek2020-07-151-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now <inheritanceStrategy> tag was only added to jobs-in-a-folder and folder configs. In JJB the tag's class is always set to "InheritParentStrategy" which according to the docs means the "item will inherit its parent items permissions". Apparently <inheritanceStrategy> tag needs to be present on top-level jobs also. For top-level jobs setting the tag's class value to "InheritParentStrategy" means the job "will inherit the global security security settings" and this is the default behavior. The code has simplified a bit - if it's a folder then we use a different property name for authorization matrix property, other than that the code is the same for all three "variants": folder, job-in-a-folder and job-outside-a-folder (top-level job). Also this change fixes the missing <inheritanceStrategy> tag for job-in-a-folder, where the folder name was specified as part of the "name" key instead of the standalone "folder" key. With this change we no longer check if a job is in a folder or not, so it's implicitly fixed. Added a test case to catch potential regressions in the future. The copyright notice reflects this and the previous contribution in this module. Change-Id: I84b22c09c8a107aab2b4eca20feffc9b61675a92
* Added topic-changed-event on triggers.pyEren ATAS2020-06-191-1/+4
| | | | | | | Depends on https://review.opendev.org/#/c/731169/ Change-Id: I8d1ed67b11e1ff1fcf13325108c007d6baff07c4 Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
* Merge "Gerrit Trigger: update support to the latest plugin version"Zuul2020-06-181-7/+121
|\
| * Gerrit Trigger: update support to the latest plugin versionAdam Romanek2020-06-011-7/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes include: - deprecated the following options and made support for them dependent on the Gerrit Trigger plugin version: - 'no-name-and-email' - 'readable-message' - 'trigger-for-unreviewed-patches' - added a set of new options: - 'name-and-email-parameter-mode' (replaced 'no-name-and-email') - 'commit-message-parameter-mode' (replaced 'readable-message') - 'change-subject-parameter-mode' - 'comment-text-parameter-mode' all these options can have one of the following values: - NONE - PLAIN - BASE64 the default value for the first two options is taken from the respective options they replaced, if they exist in the input YAML file, so the overall change should be backward compatible - fixed the value generated for <dynamicTriggerConfiguration> element it should be "true"/"false" instead of "True"/"False" - added an empty <dynamicGerritProjects> element when dynamic trigger functionality is disabled to match what the plugin does With the above changes the markup generated by JJB is fully aligned with Gerrit Trigger plugin v2.30.x. Tested on Gerrit Trigger plugin v2.30.0. Task: 39871 Story: 2007722 Change-Id: I25800874f51a93a351926a9a1be255cce80b88bd
* | Gradle plugin: Support parameter passingBen Douglas2020-06-011-0/+6
|/ | | | | | | Introduce 2 booleans in the Gradle builder section to support passing parameters by System Properties and Project Properties Change-Id: I0de1e20b85902263e0d83ccadd64d42fc2b37193
* Merge "Introduce disable-host-key-checking for builder ansible-playbook"Zuul2020-05-261-3/+18
|\
| * Introduce disable-host-key-checking for builder ansible-playbookChristian Kanthak2020-05-151-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented new parameter "disable-host-key-checking" to make the "anbile-playbook" builder compatible with version >=1.0 of the ansible plugin. The parameter defaults to "false" for security reasons (as the plugin does). The old parameter "host-key-checking" is still written to XML to keep code working in a setup with plugin version <1.0. This has no impact on newer setups because the plugin with version >=1.0 ignores the old parameter value. For same security reasons the default value of old parameter "host-key-checking" was changed to "true" to "fix" older setups which have the parameter not defined. Change-Id: I4a592c1a4d6ba8bb4f365ce505296cf5c09f7e19 Task: 39789 Story: 2007678
* | Merge "Pipelines: stop producing unsupported and deprecated XML tags"Zuul2020-05-255-21/+61
|\ \
| * | Pipelines: stop producing unsupported and deprecated XML tagsAdam Romanek2020-05-255-21/+61
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes include: - <concurrentBuild> should now be represented as <org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> property - <triggers> should now be localed inside <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> property, in <properties> section - unsupported XML elements got removed: - <blockBuildWhenDownstreamBuilding> - <blockBuildWhenUpstreamBuilding> - <assignedNode> - <canRoam> - <customWorkspace> - got rid of publishers from project_pipeline_template005.{xml,yaml} as these are not supported in Pipeline jobs The above changes align the produced XMLs with the ones from Jenkins 2.190.1 and Pipeline plugin v2.6. Task: 39836 Story: 2007708 Change-Id: I650ef2ee60e872cce8f93de5f391933d68ec81f0
* | Added trim option for String parameter.Igor Lakhtenkov2020-05-221-1/+7
| | | | | | | | | | Task: #22637 Change-Id: Ic2722aac586d3911e3ff5ab4c2d3c5a7a03fa14e
* | Merge "Added missing 'BuiltOn' column for views"Zuul2020-05-181-0/+3
|\ \
| * | Added missing 'BuiltOn' column for viewsSergey Lebedev2020-05-181-0/+3
| |/ | | | | | | | | | | Plugin home - https://plugins.jenkins.io/built-on-column/ Change-Id: I7fd27add618772fe3835f5f4fd4ef30c097b781d
* / Added missing 'Favorite' column for viewsSergey Lebedev2020-05-181-0/+1
|/ | | | | | Plugin home - https://plugins.jenkins.io/favorite/ Change-Id: Ibfaf64721fa25c19812c90c79d12ab82b31451aa
* Fix Authorization Matrix property support on jobs in a folderAdam Romanek2020-05-131-7/+12
| | | | | | | | | | | | | | | | | Without the fix: > 2020-05-11 10:56:12.238+0000 [id=29522] WARNING > o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost/job/someFolder/createItem > java.lang.ClassCastException: com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty cannot be cast to hudson.model.JobProperty It turns out com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty should only be applied to Folders, not Jobs. The latter should use hudson.security.AuthorizationMatrixProperty. Task: 39760 Story: 2007666 Change-Id: I64907265b214fb1e489e1e657a30c90d6ee08c3f
* Add "upstream-committers" to publisher "email-ext"Christian Kanthak2020-05-041-0/+7
| | | | | | | | | | Add support for the recipient item "Upstream Committers" of the "Send To" list of a trigger of the "Email Extension" (email-ext) plugin. Change-Id: Iaa77330bb1910881df154494b0472ce21ea28d99 Task: 39595 Story: 2007607
* Merge "Add parameter "cancel-pending-builds-on-update" for trigger "gitlab""Zuul2020-04-201-0/+3
|\
| * Add parameter "cancel-pending-builds-on-update" for trigger "gitlab"Christoph Erhardt2020-04-161-0/+3
| | | | | | | | | | | | | | When this boolean parameter is set to true, updating a merge request cancels any pending merge-request builds. Change-Id: Ic5ef400cf4cd088680b92bd10b88b79520795729
* | modules/properties: Multibranch projects have folder structureMatt Kucia2020-03-241-0/+2
|/ | | | | | | | | Without this change, multibranch project creation with authorization parameter would fail with hudson.security.AuthorizationMatrixProperty cannot be cast to com.cloudbees.hudson.plugins.folder.AbstractFolderProperty Change-Id: Ie83355705f0526f2984eca0e5f1f80fba8b1ba5f
* Add execute-on parameter for post build stepsArtem Nikitin2020-03-121-1/+36
| | | | | | | | | | | executeOn setting is available for PostBuildStep since 2.0 version of the Post Build Script plugin. For previous plugin's version executeOn should be set on the PostBuildScript layer. Change-Id: I6b7c9ccfbd0a2d610499074675835e6b5d96cb17 Task: 39028 Story: 2007411
* Fix zuul parameters anchor linkThanh Ha2020-03-121-1/+1
| | | | | Change-Id: Ie8e3b07d903b45f4d407a00e5433b02cb4a43eaa Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Merge "Add support for become in ansible playbook"Zuul2020-03-041-0/+5
|\
| * Add support for become in ansible playbookMichal Ovciarik2020-02-251-0/+5
| | | | | | | | Change-Id: Ia116f715042d4a4c8cc26ac45cf1a91be47435d3
* | Merge "conditional-publisher: sort publisher attributes alphabetically"Zuul2020-03-041-0/+6
|\ \
| * | conditional-publisher: sort publisher attributes alphabeticallyKen Dreyer2020-02-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described in dc83d5161fd58c22018c0355282f98c9c2369035, Python 3.8's ElementTree now writes out attributes in insertion order. On older Python versions, ElementTree writes attributes in alphabetical order instead. The conditional_publisher() method takes an existing publisher XML node and alters it by changing the tag name to "publisher" and adding a new "class" attribute with the original tag name. ElementTree on py38 preserves the insertion order of the "class" attribute, whereas py37 and earlier would have sorted "class" ahead of the other attributes. This leads to a unit test failure on Python 3.8 in publishers/fixtures/conditional-publisher002.yaml. The conditional "copy-to-master" publisher has a "plugin" attribute in the XML. On py37, the "class" attribute sorted before the "plugin" attribute alphabetically, but on py38+, "plugin" was inserted before "class", so the order is effectively reversed. To resolve the test failure, sort the attributes alphabetically when we modify edited_node. This makes py38 write the edited_node attributes in the same order as older Pythons. With this change, the test suite passes when comparing the JJB output with the static XML fixture file. Change-Id: Ib727365e101507d9ab69a426bb0bda89a402fb08
* | | Adding view for the Delivery Pipeline PluginJiri Tyr2020-02-071-0/+217
| | | | | | | | | | | | | | | Change-Id: I8a9a71267562734b078b7260c79d299db7fb4e2b Signed-off-by: Jiri Tyr <jiri.tyr@gmail.com>
* | | Merge "Ignore py:obj warnings and fail on warnings"Zuul2020-02-077-76/+76
|\ \ \ | |/ / |/| |
| * | Ignore py:obj warnings and fail on warningsThanh Ha2020-01-227-76/+76
| | | | | | | | | | | | | | | | | | | | | | | | * Enables fail on warnings and enable nitpicky * Consolidate string -> str for args Change-Id: Id5c29d48813fd6f772816dc74c7c4e408097113d Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | | Merge "Fix some typos in documentation"Zuul2020-02-042-2/+2
|\ \ \
| * | | Fix some typos in documentationMattia Rizzolo2020-02-032-2/+2
| |/ / | | | | | | | | | | | | Change-Id: I67d82228bb37b8b4634c07e76a421964e227c3cb Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
* / / Re-order some XML attributes, to preserve orderingMattia Rizzolo2020-02-023-7/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 changed things, so now the order of the attributes is not alphabetic anymore but reflect the order they where added. See this CPython commit for more details: https://github.com/python/cpython/commit/63673916464bace8e2147357395fdf3497967ecb This lets the testsuite pass with both CPython 3.8 as well as previous versions. Change-Id: I315abda0465d882d9673c9a7faac0990e38b6840 Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
* | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-226-206/+292
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all plugins that have a relevant plugins.jenkins.io URL documentation link. Change-Id: Iba7df7eada7b8ca0bb9aad93f5499ac6365a9293 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Update Jenkins wiki -> plugins URLs parametersThanh Ha2020-01-221-23/+37
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all parameters that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I3f944d268031c0217544ee94bb5361276ca9158d Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-2210-50/+56
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates links that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I7ce6978d48d09deea976e9b5f800632e92e7bd11 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Fix links causing redirectsThanh Ha2020-01-221-1/+1
| | | | | | | | | | | | | | | | Some links have been permanently redirected to a new URL so adjust the links to go directly to the new URL. Change-Id: I900091f8bdc39aa5fd06eae04a9b18ef23add8f2 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Update Jenkins wiki -> plugins URLs buildersThanh Ha2020-01-223-121/+183
| | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all builders that have a relevant plugins.jenkins.io URL documentation link. Change-Id: Ib07ebb4dceb23325e8d401dd9c0a8dfb9f49cd80 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | Merge "Fix authorization property issue"Zuul2020-01-221-1/+1
|\ \
| * | Fix authorization property issueArtem Nikitin2020-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change fixes a XML generating error (KeyError: '_use_folder_perms') for project, which isn't contained in a folder and has got authorization properties. Task: 38110 Story: 2007087 Change-Id: I2e0ec6e524d07a935333b35e10eb4204af9256f7
* | | Update Jenkins wiki -> plugins URLsThanh Ha2020-01-221-178/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Jenkins Wiki page is deprecated and Jenkins community is expected to migrate their documentation to plugins.jenkins.io URL. This patch updates all publishers that have a relevant plugins.jenkins.io URL documentation link. Change-Id: I94448d04f2b28fbf3befde2e49c76d196e352d7e Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* | | Merge "Add support for opsgenie notification plugin"Zuul2020-01-221-0/+47
|\ \ \ | |/ / |/| |
| * | Add support for opsgenie notification pluginJohn Oram2020-01-071-0/+47
| | | | | | | | | | | | Change-Id: Id84b3d9282568cf47d5feb930fd618afe969b45f
* | | Experimental support for filterChecks traitLuca Milanesio2020-01-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | The gerrit-code-review-plugin v0.4.0 introduces the integration with Gerrit Checks plugin. Introduce the option to query for pending checks. Change-Id: Idb3f290121aa6fbcdc25a0821c9bdc3dd03e21af
* | | Merge "Fix gerrit-code-review plugin name"Zuul2020-01-071-1/+4
|\ \ \ | |/ / |/| |
| * | Fix gerrit-code-review plugin nameLuca Milanesio2020-01-031-1/+4
| |/ | | | | | | | | | | | | | | The GerritSCMSource type for the multibranch pipeline does not belong to the 'gerrit' plugin but rather to the 'gerrit-code-review' plugin. Change-Id: I5edd81a3506847c3e5910ad66d4498a2b8c899e9
* / Enable docs-linkcheckThanh Ha2020-01-069-33/+29
|/ | | | | | | | | This toxenv will allow us to flag URLs that no longer work. We also switch from using old style setup.py build_sphinx to the newer sphinx-build command. Change-Id: I62f42918814fb6eea4876e0d22c6bccddf86a826 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Update homepageAndreas Jaeger2019-12-221-1/+1
| | | | | | | | Since change I5cbf7b5cfea349a0bd72d2abee40710175cf5b2f, this repo publishes to https://jenkins-job-builder.readthedocs.io/en/latest/ , let's update the links for this. Change-Id: I08f8dd992ee1b6360f3d226cb668cda7f4242b8a
* Merge "Fix the yaml load warning."3.2.0Zuul2019-12-162-2/+2
|\
| * Fix the yaml load warning.Daniel Bengtsson2019-12-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | In the new version of PyYAML the API changed to be more explicit. Now the default value for the Loader is None, see: https://github.com/yaml/pyyaml/blob/5.1/lib3/yaml/__init__.py#L103 The load is unsafe. It's better to use safe_load function. Change-Id: Ia1cd16f2ff970ca220a266c99b6554dd4254ebd9
* | Add support for noSquash (no-squash) in jms-messaging triggerWaldemar Znoinski2019-12-131-0/+7
|/ | | | | | | | | | | It's sometimes required to trigger a job build on every CI message. To achieve that the XML's noSquash (jjb: no-squash) has to be set to True. see triggers section at: https://wiki.jenkins.io/display/JENKINS/JMS+Messaging+Plugin Change-Id: I389e59cca4f649379614f7f6247bf76cf4a0ba95
* Switch to debug log level for not deleting jobThanh Ha2019-11-221-1/+1
| | | | | | | | The spam caused by jjb not doing anything with a job is not generally interesting so switch it to a DEBUG level logger. Change-Id: I0c5277612c8db3a11a1e44d4855b4a51226a8f2c Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Add alias to multijob builderArtem Nikitin2019-11-131-0/+9
| | | | | | | It's helpful to have possibility to set `jobAlias` in case the same job is used multiple times with different configurations. Change-Id: Ic092c6b2f5d893e75ebce4aaebc7eaf88a8978a6