46082807fa
Support was previously added for the other multibranch pipeline scms, but not for gerrit. This change makes adds support for available git extensions to the gerrit multibranch pipeline scm. Previous review: https://review.opendev.org/c/jjb/jenkins-job-builder/+/601323 Change-Id: Ie7553ff310e844bbe912b694b09f97450c609491 Signed-off-by: Pat Long <pllong@arista.com>
67 lines
3.5 KiB
XML
67 lines
3.5 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="jenkins.plugins.gerrit.GerritSCMSource" plugin="gerrit-code-review">
|
|
<id>gr-https://review.gerrithub.io/johndoe/foo</id>
|
|
<remote>https://review.gerrithub.io/johndoe/foo</remote>
|
|
<credentialsId/>
|
|
<includes>*</includes>
|
|
<excludes/>
|
|
<ignoreOnPushNotifications>true</ignoreOnPushNotifications>
|
|
<traits>
|
|
<jenkins.plugins.gerrit.traits.ChangeDiscoveryTrait/>
|
|
<jenkins.plugins.git.traits.RefSpecsSCMSourceTrait plugin="git">
|
|
<templates>
|
|
<jenkins.plugins.git.traits.RefSpecsSCMSourceTrait_-RefSpecTemplate>
|
|
<value>+refs/changes/*:refs/remotes/@{remote}/*</value>
|
|
</jenkins.plugins.git.traits.RefSpecsSCMSourceTrait_-RefSpecTemplate>
|
|
<jenkins.plugins.git.traits.RefSpecsSCMSourceTrait_-RefSpecTemplate>
|
|
<value>+refs/heads/*:refs/remotes/@{remote}/*</value>
|
|
</jenkins.plugins.git.traits.RefSpecsSCMSourceTrait_-RefSpecTemplate>
|
|
</templates>
|
|
</jenkins.plugins.git.traits.RefSpecsSCMSourceTrait>
|
|
<jenkins.plugins.git.traits.WipeWorkspaceTrait>
|
|
<extension class="hudson.plugins.git.extensions.impl.WipeWorkspace"/>
|
|
</jenkins.plugins.git.traits.WipeWorkspaceTrait>
|
|
</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>
|