Last active
June 17, 2024 19:49
-
-
Save aaclarker/75b8a0eb2b4d600779f84f8e849f2c37 to your computer and use it in GitHub Desktop.
Check if Jenkins build was started by timer (Declarative Pipeline)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def started_by_timer = currentBuild.getBuildCauses()[0]["shortDescription"].matches("Started by timer") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you