Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
How to use SCMEvent on multibranch-pipeline
12 views
Skip to first unread message
Santiago Fraire Willemoës
unread,
Sep 10, 2020, 3:41:22 AM
9/10/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Is it possible to trigger a job based on a SCMEvent?
I'd like something like:
```
when {
SCMEvent() == "
pr:merged
"
}
```
Does anyone know how to do that?
I've checked bitbucket plugin and it is processing
those events, but I don't how to listen to them.
https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/d8e822773ddc35b455176386fbaf47650f259cd4/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/hooks/NativeServerPullRequestHookProcessor.java#L73-L86
Reply all
Reply to author
Forward
0 new messages