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 AM9/10/20
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.


Reply all
Reply to author
Forward
0 new messages