I was able to trigger jenkins pipeline when PR approved in *declarative syntax*. triggers { pullRequestReview(reviewStates: ['approved']) }
I want to achieve the same with *scripted pipeline*. I tried as describe below, but that was not working. properties([ pipelineTriggers([pullRequestReview(reviewStates: ['approved'])]) ]) -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a8741869-844e-4312-9560-0211bb85d66cn%40googlegroups.com.