Issue Type: New Feature New Feature
Assignee: Daniel Spilker
Attachments: config.xml
Components: job-dsl-plugin
Created: 19/Jan/15 1:37 PM
Description:

Bitbucket PR Builder plugin is similar to GitHub PR Builder plugin.

And Job DSL plugin already supports GitHub.

This is feature request to support Bitbucket PR Builder.
I have attached config.xml for a job using it.

Per my understanding, the important sections of that XML are

SCM configuration

<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <url>[email protected]:${repositoryOwner}/${repositoryName}.git</url>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>*/${sourceBranch}</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions>
      <hudson.plugins.git.extensions.impl.PreBuildMerge>
        <options>
          <mergeRemote>origin</mergeRemote>
          <mergeTarget>${targetBranch}</mergeTarget>
          <mergeStrategy>default</mergeStrategy>
        </options>
      </hudson.plugins.git.extensions.impl.PreBuildMerge>
    </extensions>
  </scm>

Build trigger

<triggers>
    <bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger plugin="[email protected]">
      <spec>H/1 * * * *</spec>
      <cron>H/1 * * * *</cron>
      <username>mycompany</username>
      <password>mypassword</password>
      <repositoryOwner>myteam</repositoryOwner>
      <repositoryName>myrepo</repositoryName>
      <ciSkipPhrases></ciSkipPhrases>
      <checkDestinationCommit>true</checkDestinationCommit>
    </bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger>
  </triggers>

This is a follow up to question on Google Group

Environment: Jenkins version:1.596
Project: Jenkins
Labels: plugin bitbucket pull_request
Priority: Major Major
Reporter: Maksym Grebenets
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to