Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save emil-nasso/4eefdc0599f39adcdfb70ea8890282f6 to your computer and use it in GitHub Desktop.
Save emil-nasso/4eefdc0599f39adcdfb70ea8890282f6 to your computer and use it in GitHub Desktop.
def jobName = sh (
script: 'echo ${JOB_NAME%/*}',
returnStdout: true
).trim()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment