Skip to content

Instantly share code, notes, and snippets.

@aaclarker
Last active June 17, 2024 19:49
Show Gist options
  • Save aaclarker/75b8a0eb2b4d600779f84f8e849f2c37 to your computer and use it in GitHub Desktop.
Save aaclarker/75b8a0eb2b4d600779f84f8e849f2c37 to your computer and use it in GitHub Desktop.
Check if Jenkins build was started by timer (Declarative Pipeline)
def started_by_timer = currentBuild.getBuildCauses()[0]["shortDescription"].matches("Started by timer")
@SJrX
Copy link

SJrX commented Jun 17, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment