= Jobcopy Builder plugin
:sectanchors:
This plugin adds "Copy Job" as a build step.You can select how to retrieve choices, including the way to share choices among all jobs.
:toc:
[[JobcopyBuilderplugin-Whatsthis]] == What's this?
This plugin provides a Copy Job build step:
[[JobcopyBuilderplugin-Screenshots]] == Screenshots
. You can add "Copy Job" build step. + #image:docs/images/01-configure.png[image]# . "Copy Job" performs additional operations. Replacing strings in the configuration, enabling a disabled job.
[[JobcopyBuilderplugin-Howdoesthiswork]] == How does this work?
This plugin works as following:
. Reads the configuration xml (config.xml) of the copying job. . Applies the operations to the configuration xml string. . Create a new job with the processed configuration xml string.
[[JobcopyBuilderplugin-Extensionpoint]] == Extension point
A new way to provide choices can be added with implementing
+JobcopyOperation+
, overriding the following method:
or, with extending +AbstractXmlJobcopyOperation+
, overriding the
following method:
[[JobcopyBuilderplugin-Usedwithpromotedbuilds]] == Used with promoted builds
When used with https://plugins.jenkins.io/promoted-builds/[Promoted Builds Plugin], the configurations of promotions are not copied for they are not stored in config.xml. + Do as followings:
[[JobcopyBuilderplugin-Permissionstocopyjobs]] == Permissions to copy jobs
[cols=",,",options="header",] |=== |Target Job |Required permissions |Notes |Item to copy from |Job/Read, Job/ExtendedRead |Job/ExtendedRead is displayed only when you install https://plugins.jenkins.io/extended-read-permission/[Extended Read Permission Plugin]. You can grant it by granting Job/Configure instead.
|Item to copy to (when create) |Job/Create |
|Item to copy to (when overwrite) |Job/Read, Job/Configure | |===
[[JobcopyBuilderplugin-Issues]] == Issues
To report a bug or request an enhancement to this plugin please create a ticket in JIRA (you need to login or to sign up for an account). Also have a look on https://www.jenkins.io/participate/report-issue/[How to report an issue]
include::CHANGELOG.adoc[]