Release date: 2021-08-16
- Fix: Pipeline retry operation doesn't retry when there is a timeout inside of it (JENKINS-51454) (PR #144)
- To revert to the old behavior you can set the following system property to
true:org.jenkinsci.plugins.workflow.steps.TimeoutStepExecution.forceInterruption
- To revert to the old behavior you can set the following system property to
- Internal: Corrected flakes in StashTest (PR #137)
- Internal: Make compatible with Guava 21.0 and newer (PR #147)
- Internal: Remove usages of
com.google.common.collect.ImmutableSet(PR #148) - Internal: update plugin POM and BOM (PR #146)
Release date: 2020-11-06
- This plugin now requires Jenkins 2.263 or newer
- Fix: The implementation of JENKINS-46175 added in version 2.22 did not work correctly (PR #134)
- Internal: Add Windows support to various tests (PR #132, PR #135)
Release date: 2020-10-01
- This plugin now requires Jenkins 2.249.1 or newer
- Fix: The implementation of JENKINS-29144 added in version 2.21 caused exceptions thrown by some implementations of
SimpleBuildStepto be wrapped inInvocationTargetExceptionincorrectly (PR #128) - Developer: Support new
SimpleBuildStep.performandSimpleBuildWrapper.performoverloads that do not require aFilePathorLauncher(JENKINS-46175) - Internal: Add support for Windows to an existing test case (PR #130)
Release date: 2020-09-15
- Developer: Support new
SimpleBuildStep.performoverload withEnvVarsparameter (JENKINS-29144) - Improvement: Update the help text for the
sleepandtimeoutsteps to mention the default units for each step (PR 114) - Improvement: Update the help text for the
waitUntilstep to mention the maximum wait time between attempts (PR 119) - Internal: Ignore flaky test and remove invalid test (PR 120, PR 126)
Release date: 2020-04-20
- Improvement: Add new
quietoption to thewaitUntilstep. Usequiet: trueto stop thewaitUntilstep from logging a message every time the condition is checked.quietdefaults to false. (JENKINS-59776). - Fix: Prevent the
fileExistsstep from throwing an error if thefileparameter isnull. If the file parameter isnull, the current directory will be checked, which is the same as the behavior for an empty string. (PR 108) - Fix: Prevent the
timeoutstep from hanging indefinitely after a Jenkins restart in rare cases where the step already attempted to cancel the body before the restart and needs to force-cancel it after the restart because the body was unresponsive. (JENKINS-42940) - Internal: Update minimum supported Jenkins core version to 2.164.3. (PR 111)
- Internal: Use
waitForMessageinstead ofassertLogContainsin tests to avoid nondeterministic failures. (PR 110) - Internal: Update pom.xml to use jenkinsci/bom to specify dependency versions. (PR 95)
Release date: 2020-01-03
- JENKINS-60354: Make the retry step work correctly with the
buildstep when usingpropagate: true(similarly for thecatchErrorandwarnErrorsteps when usingcatchInterruptions: false). You must update Pipeline: Build Step Plugin to 2.11 or newer along with this update for the full fix. (PR 102) - Improvement: Add an optional
initialRecurrencePeriodparameter to thewaitUntilstep. (PR 49) - Improvement: Update documentation for the
stashstep to clarify that stashes are only available in the current build, not from other jobs, or from other builds of the same job. (PR 89) - JENKINS-59575: Update documentation for the
withContextstep to clarify that Groovy objects may not be passed to the step, and to indicate that users are encouraged to create aStepin a plugin instead of using thewithContextorgetContextsteps. (PR 93) - Internal: Update parent POM, refactor uses of deprecated APIs, improve tests, and migrate wiki content to GitHub. (PR 91, PR 92, PR 93, PR 94, PR 96, PR 103)
Release date: 2019-06-04
You must update Pipeline Groovy Plugin to version 2.70 along with this update.
- JENKINS-41854:
Refresh references to files on agents when an agent reconnects.
Fixes some cases where a
dirstep would fail with aRequestAbortedExceptiondue to aChannelClosedExceptionif the agent had disconnected earlier during the build even if the agent was connected to Jenkins at the time of failure. - JENKINS-57537:
The
buildResultandstageResultparameters added to thecatchErrorstep in version 2.16 of this plugin did not work correctly in a Declarative Pipeline.
Release date: 2019-06-03
- Released incorrectly, do not use.
Release date: 2019-05-14
This plugin now requires Jenkins 2.138.4 or newer.
- JENKINS-45579/JENKINS-39203:
Use a new API provided by Pipeline API Plugin version 2.34 to create
new steps to set the build result to
UNSTABLEin a way that allows visualizations such as Blue Ocean to identify the stage and step that set the build result toUNSTABLE.- Note: In order for stage-related results to be visualized differently in Blue Ocean, you must update to Pipeline: Graph Analysis 1.10 or newer.
- The
catchErrorstep has been updated with new optional parameters:message: String- A message that will be printed to the build log if an exception is caught. The message will be associated with the stage result if the stage result is set and may be shown in visualizations such as Blue Ocean in the future.buildResult: String- What the overall build result should be set to if an exception is caught. UsenullorSUCCESSto not set the build result. Defaults toFAILURE.stageResult: String- What the stage result should be set to if an exception is caught. UsenullorSUCCESSto not set the stage result. Defaults toSUCCESS.catchInterruptions: boolean- If true, certain types of exceptions that are used to interrupt the flow of execution for Pipelines will be caught and handled by the step. If false, those types of exceptions will be caught and immediately rethrown. Examples of these types of exceptions include those thrown when a build is manually aborted through the UI and those thrown by thetimeoutstep. Defaults totrue.
- The following two steps have been added:
unstable(message: String): Prints a message to the log and sets the overall build result and the stage result toUNSTABLE. The message will be associated with the stage result and may be shown in visualizations such as Blue Ocean in the future.warnError(message: String, catchInterruptions: boolean): Executes its body, and if an exception is thrown, sets the overall build result and the stage result toUNSTABLE, prints the specified message and the exception to the build log, and associates the stage result with the message so that it can be displayed by visualizations.- Equivalent
to
catchError(message: message, buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') catchInterruptionshas the same meaning as in thecatchErrorstep.
- Equivalent
to
Release date: 2019-03-18
- Fix formatting issues in informational text for various steps (PR 82)
- Internal: Update dependencies and fix resulting test failures so that the plugin's tests pass successfully when run using the PCT (PR 79)
Release date: 2019-01-14
- JENKINS-43276:
Fix potential issue where a
SimpleBuildWrapperused in a Pipeline script through the general build wrapper step (wrap) could block Pipeline execution indefinitely.
Release date: 2018-11-30
- JENKINS-54607: Fix issue where timeouts reused the timeout value instead of the grace period of 60 seconds when force killing unresponsive Pipelines after the timeout expires.
- Improvement: Chinese localizations have been migrated to the Localization: Chinese (Simplified) Plugin.
Release date: 2018-11-30
- JENKINS-54607: Fix issue where timeouts reused the timeout value instead of the grace period of 60 seconds when force killing unresponsive Pipelines after the timeout expires.
Release date: 2018-10-26
- JENKINS-54078:
Fix issue causing builds to fail when using the
timeoutstep withactivity: true.
Release date: 2018-09-10
Requires Jenkins Core 2.121.1 or newer.
- Fix a file leak introduced in version 2.10 when
using
writeFilewith Base64 encoding.
Release date: 2018-09-10
- Fix a file leak introduced in version 2.8.1 when using
writeFilewith Base64 encoding.
Release date: 2018-08-21
Requires Jenkins Core 2.121.1 or newer.
- Adds support to
readFileandwriteFilefor working with binary files by passingBase64as the encoding. Can be used with Pipeline: Shared Groovy Libraries 2.10 or higher to copy binary files from libraries into the workspace. (JENKINS-52313)
Release date: 2018-08-21
Requires Jenkins Core 2.60.3 or newer.
- Adds support to
readFileandwriteFilefor working with binary files by passingBase64as the encoding. Can be used with Pipeline: Shared Groovy Libraries 2.10 or higher to copy binary files from libraries into the workspace. (JENKINS-52313)
Release date: 2018-06-16
Requires Jenkins Core 2.121.1
- Support for storing stashes and artifacts off-master if using an appropriate storage implementation via VirtualFile.toExternalUrl (JENKINS-49635)
Release date: 2018-06-15
- Docs: Fixes to the Stash step help (thanks, community contributor Josh Soref!)
- Docs: Note exception type thrown by Timeout step (thanks, community contributor Dawid Gosławski!)
Release date: 2018-04-18
- JENKINS-46180 -
Deprecated
archivestep will log when no files to archive are found. - JENKINS-48138 -
Log a warning when
fileExistsis called with an empty string. - JENKINS-44379
-
retrywill no longer retry on aFlowInterruptedException, such as abortedinput,milestonesteps or an aborted run. - JENKINS-26521 -
Add
activityflag totimeoutstep.
Release date: 2017-06-30
- JENKINS-45101 Improved display of step summaries in Blue Ocean for various steps.
Release date: 2017-05-30
- JENKINS-27094 Honor
the
encodingparameter ofwriteFile. - JENKINS-37327 Allow
empty
stashes.
Release date: 2017-02-10
- JENKINS-41276
retrynow exits immediately upon receiving a user-initiated build abort. - Implemented virtual thread dump status for
waitUntil. - Simplified some implementations as per JENKINS-39134.
Release date: 2016-11-01
- JENKINS-39072
(related to
JENKINS-34637):
make the
timeoutstep print more information to the log, display status in Thread Dump, and forcibly kill its body after a grace period has elapsed. - JENKINS-28385
Added
getContextandwithContextsteps for use in advanced libraries. - Warning in documentation regarding JENKINS-38640 and JENKINS-36914.
Release date: 2016-09-23
- JENKINS-37397
Allow use of symbols to select the
typeof atool. - Creating the workspace directory from some steps if the step required it and it did not already exist.
- Broken documentation link.
Release date: 2016-07-28
- JENKINS-29922
Marking
stepandwrapas “metasteps”, allowing simplified syntax with Pipeline Groovy Plugin 2.10. Correspondingly deprecating theartifactstep for Jenkins 2.2+ users. - JENKINS-34554
Maximum recurrence period for
waitUntil, currently hard-coded. - JENKINS-34281
Indicate in the build log if
sleepstill applies after a Jenkins restart. - JENKINS-31842
Indicate in the virtual thread dump if
sleepis ongoing. - JENKINS-29170
Snippet generation improvements for
mail. - Some inline help fixes.
Release date: 2016-04-05
- First release under per-plugin versioning scheme. See 1.x changelog for earlier releases.
- Now includes
stashandunstashsteps formerly in Pipeline Supporting APIs Plugin.