Skip to content

Commit 2a98b01

Browse files
authored
Merge pull request #1193 from daspilker/JENKINS-44142
[JENKINS-44142] documentation of pitfalls
2 parents b7eb906 + d16fa3c commit 2a98b01

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

docs/Home.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins
3333

3434
## Release Notes
3535
* 1.76 (unreleased)
36+
* added documentation for pitfalls when using multiple Job DSL build steps in a single job
37+
([JENKINS-44142](https://issues.jenkins-ci.org/browse/JENKINS-44142))
3638
* 1.75 (August 12 2019)
3739
* Added documentation about mandatory identifier in multi-branch Pipeline job branch sources, the identifier will no
3840
longer be generated and must be set to a constant and unique value, see [Migration](Migration#migrating-to-175)

docs/User-Power-Moves.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,8 @@ Options:
238238
* `sandbox`: optional, defaults to `false`, if `false` the DSL script needs to be approved by an administrator; set to
239239
`true` to run the DSL scripts in a sandbox with limited abilities (see [[Script Security]]); this option
240240
will be ignored when script security for Job DSL is disabled on the "Configure Global Security" page
241+
242+
> **Note**: when using multiple Job DSL build steps in a single pipeline, set `removedJobAction`, `removedViewAction`
243+
> or `removedConfigFilesAction` to `DELETE` (or `DISABLE`) only for the last Job DSL build step. Otherwise jobs, views
244+
> or config files may be deleted and re-created (or disabled and re-enabled) and you may loose the job history of
245+
> generated jobs. See [JENKINS-44142](https://issues.jenkins-ci.org/browse/JENKINS-44142) for details.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div>
2+
Specifies what to do when previously generated config files are not referenced anymore.
3+
4+
<p>
5+
<b>Note:</b> when using multiple Job DSL build steps in a single job, set this to "Delete" only for the last Job
6+
DSL build step. Otherwise config files may be deleted and re-created. See
7+
<a href="https://issues.jenkins-ci.org/browse/JENKINS-44142">JENKINS-44142</a> for details.
8+
</p>
9+
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
<div>
22
Specifies what to do when a previously generated job is not referenced anymore.
3+
4+
<p>
5+
<b>Note:</b> when using multiple Job DSL build steps in a single job, set this to "Delete" or "Disable" only for
6+
the last Job DSL build step. Otherwise jobs will be deleted and re-created or disabled and re-enabled and you
7+
may loose the job history of generated jobs. See
8+
<a href="https://issues.jenkins-ci.org/browse/JENKINS-44142">JENKINS-44142</a> for details.
9+
</p>
310
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<div>
22
Specifies what to do when a previously generated view is not referenced anymore.
3+
4+
<p>
5+
<b>Note:</b> when using multiple Job DSL build steps in a single job, set this to "Delete" only for the last Job
6+
DSL build step. Otherwise views may be deleted and re-created. See
7+
<a href="https://issues.jenkins-ci.org/browse/JENKINS-44142">JENKINS-44142</a> for details.
8+
</p>
39
</div>

0 commit comments

Comments
 (0)