summaryrefslogtreecommitdiffstats
path: root/tests/multibranch/fixtures/multi_scm_full.xml
diff options
context:
space:
mode:
authorJoost van der Griendt <j.vandergriendt@flusso.nl>2016-11-28 14:35:55 -0800
committerSorin Sbarnea <ssbarnea@redhat.com>2018-03-15 16:51:32 +0000
commitefc5fbe0fd0f4d91ee73bde22aeced756f0fc3c8 (patch)
tree5dcce00281f660ee7be6d28db892e5aa9ce89180 /tests/multibranch/fixtures/multi_scm_full.xml
parent89506addb77510d985412c354c36fc27f467eb8c (diff)
downloadpython-jenkins-job-builder-efc5fbe0fd0f4d91ee73bde22aeced756f0fc3c8.tar.gz
python-jenkins-job-builder-efc5fbe0fd0f4d91ee73bde22aeced756f0fc3c8.tar.xz
python-jenkins-job-builder-efc5fbe0fd0f4d91ee73bde22aeced756f0fc3c8.zip
Add multibranch project-type
This work was based on original work done by Joshua Harlow on top of older code from: https://github.com/abnamrocoesd/jenkins-job-builder/ Credit is due to `Joost van der Griendt` for doing this work. This builds on his work in that repo, and adjusts it so that it can get merged into upstream and released as a fully supported job type. SCM implementation is different than than normal SCM module, supporting: BitBucket, git, and GitHub in this initial patch. Change-Id: If50a54d282dd7d901c16edb9fe04874bdd83c9ef Co-Authored-By: Joshua Harlow <jxharlow@godaddy.com> Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com> Co-Authored-By: Thanh Ha <zxiiro@linux.com> Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com> Signed-off-by: Thanh Ha <zxiiro@linux.com> Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Diffstat (limited to 'tests/multibranch/fixtures/multi_scm_full.xml')
-rw-r--r--tests/multibranch/fixtures/multi_scm_full.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/multibranch/fixtures/multi_scm_full.xml b/tests/multibranch/fixtures/multi_scm_full.xml
new file mode 100644
index 00000000..c54a4c5e
--- /dev/null
+++ b/tests/multibranch/fixtures/multi_scm_full.xml
@@ -0,0 +1,84 @@
+<?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>10</daysToKeep>
+ <numToKeep>10</numToKeep>
+ </orphanedItemStrategy>
+ <triggers>
+ <com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger plugin="cloudbees-folder">
+ <spec>H H * * *</spec>
+ <interval>86400000</interval>
+ </com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger>
+ </triggers>
+ <sources class="jenkins.branch.MultiBranchProject$BranchSourceList" plugin="branch-api">
+ <data>
+ <jenkins.branch.BranchSource>
+ <source class="com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource" plugin="cloudbees-bitbucket-branch-source">
+ <id>1-1-1-1-1</id>
+ <repoOwner>SANDBOX</repoOwner>
+ <repository>test</repository>
+ <credentialsId>secret</credentialsId>
+ <traits/>
+ </source>
+ </jenkins.branch.BranchSource>
+ <jenkins.branch.BranchSource>
+ <source class="jenkins.plugins.git.GitSCMSource" plugin="git">
+ <id>1-1-1-1-1</id>
+ <remote>https://example.com/jonhndoe/keep-frontend.git</remote>
+ <credentialsId>secret</credentialsId>
+ <traits>
+ <jenkins.plugins.git.traits.BranchDiscoveryTrait/>
+ </traits>
+ </source>
+ </jenkins.branch.BranchSource>
+ <jenkins.branch.BranchSource>
+ <source class="org.jenkinsci.plugins.github_branch_source.GitHubSCMSource" plugin="github-branch-source">
+ <id>1-1-1-1-1</id>
+ <repoOwner>johndoe</repoOwner>
+ <repository>foo</repository>
+ <credentialsId>secret</credentialsId>
+ <traits>
+ <org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>
+ <strategyId>1</strategyId>
+ </org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>
+ <org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
+ <strategyId>1</strategyId>
+ <trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>
+ </org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
+ <org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
+ <strategyId>1</strategyId>
+ </org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>
+ </traits>
+ </source>
+ </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>Jenkinsfile</scriptPath>
+ </factory>
+</org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject>