how to get configuration for a job with bitbucket plugin

8 views
Skip to first unread message

Sergii Rudyka

unread,
Apr 6, 2022, 10:41:09 AM4/6/22
to jenkins-job-builder
Hi All,

I'm looking for help to get a YAML configuration for Bitbucket Plugin (bitbucket-push-and-pull-request).

I was able to get an XML file for manually configured Jenkins Job ( in Jenkins UI) but it did not help me at all.

jenkins-jobs successfully digest this part of a  config but when I check UI - it does not set a tick for using the plugin.

     triggers:
       - timed: 'H 1 * * *'
       - bitbucket:
         - 'bitbucket-push-and-pull-request':
             action: 'BitBucketPPRPullRequestMergedActionFilter'

Appreciate any help
Thank you 
  Sergii Rudyka

Sergii Rudyka

unread,
Apr 6, 2022, 10:55:22 AM4/6/22
to jenkins-job-builder
forgot to add the XML part:
  <triggers>
    <io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger plugin="bitbucket-push-...@2.8.1">
      <spec></spec>
      <triggers>
        <io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestTriggerFilter>
          <actionFilter class="io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestMergedActionFilter">
            <allowedBranches></allowedBranches>
            <isToApprove>false</isToApprove>
          </actionFilter>
        </io.jenkins.plugins.bitbucketpushandpullrequest.filter.pullrequest.cloud.BitBucketPPRPullRequestTriggerFilter>
      </triggers>
      <credentialsId></credentialsId>
    </io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger>
  </triggers>

Reply all
Reply to author
Forward
0 new messages