Closed PhilippDehner closed 1 month ago
Hi! You can take a look at testDslTriggerCreateUpdatedMergedApprovedPRAllowBranchesWithApproveActionsPipeline.groovy in the test.resources.dsl . You can find a lot of examples for many use cases in this resources folder as well
Hi! You can take a look at testDslTriggerCreateUpdatedMergedApprovedPRAllowBranchesWithApproveActionsPipeline.groovy in the test.resources.dsl . You can find a lot of examples for many use cases in this resources folder as well
Thanks for your replay. In my case I use declarative pipeline scripts. I did not find any documentation how to integrate the properties into my script...
Here is an example you can take a look at in the Readme: https://github.com/jenkinsci/bitbucket-push-and-pull-request-plugin#pipeline-script. Should be more specific to your case
Have you also tried this tool: https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator? You can then choose trigger in the "Declarative Directive Generator" and select the BBPPR Plugin and generate your declarative pipelines.
I'd like to use the triggers in my declarative pipeline script. I couldn't find any solutions in the internet, so maybe it would be nice to add it to the readme of the plugin.
My problem is: I’d like to trigger my pipeline after opening and updating a pull request in bitbucket. If I do the following, I get an error:
The error was:
org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: ae121c1a-49a4-4ced-b330-a6e7130dd5fb java.lang.NoSuchMethodError: No such DSL method 'pullRequestServerCreatedAction' found among steps