My Jenkinsfile is built from several stages and can be triggered by the scheduler or via push to Gitlab. I would like to use the trigger source in order to skip several stages for a trigger. How can I identify which event triggered the job?
Asked
Active
Viewed 178 times
0
-
You might find this answer helpful - https://stackoverflow.com/a/43609466/5603509 – Harry King Aug 05 '21 at 09:26
1 Answers
0
If you mean Push/Merge events, you can check env.gitlabActionType
variable.

Marat Gareev
- 387
- 1
- 4
- 16