dab3156465
Same as existing bitbucket checkout-over-ssh ssh-checkout for github must needs the option for a user to specify the id of the secret containing the ssh credentials to be used for checkout. Change-Id: I675c94c971e78d6ecd71d6f1446e0388430dab80 Signed-off-by: sbussetti <steve.bussetti@gmail.com>
153 lines
9.1 KiB
XML
153 lines
9.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject plugin="workflow-multibranch">
|
|
<properties/>
|
|
<views>
|
|
<hudson.model.AllView>
|
|
<name>All</name>
|
|
<filterExecutors>false</filterExecutors>
|
|
<filterQueue>false</filterQueue>
|
|
<properties class="hudson.model.View$PropertyList"/>
|
|
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../../.."/>
|
|
</hudson.model.AllView>
|
|
</views>
|
|
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
|
|
<folderViews class="jenkins.branch.MultiBranchProjectViewHolder" plugin="branch-api">
|
|
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
|
|
</folderViews>
|
|
<healthMetrics>
|
|
<com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric plugin="cloudbees-folder">
|
|
<nonRecursive>false</nonRecursive>
|
|
</com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric>
|
|
</healthMetrics>
|
|
<icon class="jenkins.branch.MetadataActionFolderIcon" plugin="branch-api">
|
|
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
|
|
</icon>
|
|
<orphanedItemStrategy class="com.cloudbees.hudson.plugins.folder.computed.DefaultOrphanedItemStrategy" plugin="cloudbees-folder">
|
|
<pruneDeadBranches>true</pruneDeadBranches>
|
|
<daysToKeep>-1</daysToKeep>
|
|
<numToKeep>-1</numToKeep>
|
|
</orphanedItemStrategy>
|
|
<triggers/>
|
|
<sources class="jenkins.branch.MultiBranchProject$BranchSourceList" plugin="branch-api">
|
|
<data>
|
|
<jenkins.branch.BranchSource>
|
|
<source class="org.jenkinsci.plugins.github_branch_source.GitHubSCMSource" plugin="github-branch-source">
|
|
<id>gh-example-owner-example-repo</id>
|
|
<repoOwner>example-owner</repoOwner>
|
|
<repository>example-repo</repository>
|
|
<apiUri>http://example.org/github</apiUri>
|
|
<credentialsId>example-credential</credentialsId>
|
|
<traits>
|
|
<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>
|
|
<strategyId>3</strategyId>
|
|
</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>
|
|
<org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
|
|
<credentialsId>ssh_secret</credentialsId>
|
|
</org.jenkinsci.plugins.github__branch__source.SSHCheckoutTrait>
|
|
<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>
|
|
<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
|
|
<strategyId>3</strategyId>
|
|
<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustEveryone"/>
|
|
</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
|
|
<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
|
|
<strategyId>3</strategyId>
|
|
</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
|
|
<jenkins.plugins.git.traits.CleanAfterCheckoutTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.CleanCheckout"/>
|
|
</jenkins.plugins.git.traits.CleanAfterCheckoutTrait>
|
|
<jenkins.plugins.git.traits.CleanBeforeCheckoutTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.CleanBeforeCheckout"/>
|
|
</jenkins.plugins.git.traits.CleanBeforeCheckoutTrait>
|
|
<jenkins.plugins.git.traits.CloneOptionTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.CloneOption">
|
|
<shallow>true</shallow>
|
|
<depth>3</depth>
|
|
<noTags>true</noTags>
|
|
<timeout>100</timeout>
|
|
</extension>
|
|
</jenkins.plugins.git.traits.CloneOptionTrait>
|
|
<jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.SubmoduleOption">
|
|
<disableSubmodules>false</disableSubmodules>
|
|
<recursiveSubmodules>true</recursiveSubmodules>
|
|
<trackingSubmodules>false</trackingSubmodules>
|
|
<parentCredentials>true</parentCredentials>
|
|
<reference/>
|
|
<timeout>100</timeout>
|
|
</extension>
|
|
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
|
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.CheckoutOption">
|
|
<timeout>100</timeout>
|
|
</extension>
|
|
</jenkins.plugins.git.traits.CheckoutOptionTrait>
|
|
<jenkins.plugins.git.traits.PruneStaleBranchTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.PruneStaleBranch"/>
|
|
</jenkins.plugins.git.traits.PruneStaleBranchTrait>
|
|
<jenkins.plugins.git.traits.WipeWorkspaceTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.WipeWorkspace"/>
|
|
</jenkins.plugins.git.traits.WipeWorkspaceTrait>
|
|
<jenkins.plugins.git.traits.AuthorInChangelogTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.AuthorInChangelog"/>
|
|
</jenkins.plugins.git.traits.AuthorInChangelogTrait>
|
|
</traits>
|
|
</source>
|
|
<buildStrategies>
|
|
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<atMostMillis>86400000</atMostMillis>
|
|
<atLeastMillis>604800000</atLeastMillis>
|
|
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
|
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<atMostMillis>-1</atMostMillis>
|
|
<atLeastMillis>-1</atLeastMillis>
|
|
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
|
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
|
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
|
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
|
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
|
<jenkins.branch.buildstrategies.basic.BranchBuildStrategyImpl plugin="basic-branch-build-strategies"/>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<filters>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter>
|
|
<name>test</name>
|
|
<caseSensitive>true</caseSensitive>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
|
|
<regex>test.*$</regex>
|
|
<caseSensitive>true</caseSensitive>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-WildcardsNameFilter>
|
|
<includes>testinclude</includes>
|
|
<excludes>testexclude</excludes>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-WildcardsNameFilter>
|
|
</filters>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl plugin="basic-branch-build-strategies">
|
|
<filters>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter>
|
|
<name/>
|
|
<caseSensitive>false</caseSensitive>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
|
|
<regex>^.*$</regex>
|
|
<caseSensitive>false</caseSensitive>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-RegexNameFilter>
|
|
<jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-WildcardsNameFilter>
|
|
<includes>*</includes>
|
|
<excludes/>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-WildcardsNameFilter>
|
|
</filters>
|
|
</jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl>
|
|
</buildStrategies>
|
|
</jenkins.branch.BranchSource>
|
|
</data>
|
|
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
|
|
</sources>
|
|
<factory class="org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory">
|
|
<owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
|
|
<scriptPath>some.Jenkinsfile</scriptPath>
|
|
</factory>
|
|
</org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject>
|