On Wednesday, July 27, 2016 at 11:10:34 PM UTC-4, Shade Alabsa wrote: > > I've been trying to write a Jenkinsfile to do different tasks based on > whether it's a PR or a merge in Jenkins 2. I've found the snippet below > which will tell me if the build was triggered by a user or via Github. >
Not sure exactly what your situation is, but if you are using GitHub organization folders (or single multibranch projects), you should be able to just check `env.CHANGE_ID != null` to detect a PR build. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/72e4e4ed-08af-4c31-b4d8-c94094558f5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
