Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created October 2, 2022 15:58
Show Gist options
  • Save KyMidd/2f1caa427a9992fd25c2db81c0316f7f to your computer and use it in GitHub Desktop.
Save KyMidd/2f1caa427a9992fd25c2db81c0316f7f to your computer and use it in GitHub Desktop.
jenkinsJobName=$(echo "$COMMITNOTIFICATION" | grep -E 'Triggered' | cut -d " " -f 2 | grep -E '_Any' | rev | cut -d "/" -f 2 | rev | head -n 1) && echo "$jenkinsJobName"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment