Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins job dsl for bitbucket branch source plugin documentation with complete examples?

I currently have this:

multibranchPipelineJob("myjob") {
  branchSources {
    branchSource {
      source {
        bitbucket {
          credentialsId('bitbucket-login-user-pass')
          repoOwner('myteam')
          repository('myrepo')
          autoRegisterHook(true)
        }
      }
    }
  }
}

But I also need to add the following settings: enter image description here

How do I add these settings in the config? Are they "traits" where do I go to see what traits I have available?

like image 499
red888 Avatar asked Oct 16 '25 11:10

red888


1 Answers

You can have a look at the jobDSL-API-Viewer of your jenkins-instance. This will show you all available jodDSL functions for your instance (jobDSL for installed plugins):

https://your.jenkins.url/plugin/job-dsl/api-viewer/index.html

like image 195
prumand Avatar answered Oct 19 '25 00:10

prumand



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!