67645a46eb
LegacyVersion class is removed from newer setuptools package. But support for legacy versions is added in python-jenkins 1.8.2. Switch to that implementation. Fix broken plugin version comparison for legacy versions. Assume latest plugin version if no plugin version is found. Story: 2010990 Story: 2009943 Story: 2009819 Story: 2010842 Task: 49236 Task: 44852 Task: 44396 Task: 48448 Change-Id: Id7f0be1c42357454bd9bedcdee3fefb174943d81
168 lines
7.4 KiB
XML
168 lines
7.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<actions/>
|
|
<description>JJB template: complete001_{version}
|
|
<!-- Managed by Jenkins Job Builder --></description>
|
|
<keepDependencies>false</keepDependencies>
|
|
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
|
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
|
<concurrentBuild>false</concurrentBuild>
|
|
<canRoam>true</canRoam>
|
|
<properties/>
|
|
<scm class="hudson.plugins.git.GitSCM">
|
|
<configVersion>2</configVersion>
|
|
<userRemoteConfigs>
|
|
<hudson.plugins.git.UserRemoteConfig>
|
|
<name>origin</name>
|
|
<refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
|
|
<url>ssh://jenkins@review.openstack.org:29418/openstack-infra/jenkins-job-builder.git</url>
|
|
</hudson.plugins.git.UserRemoteConfig>
|
|
</userRemoteConfigs>
|
|
<branches>
|
|
<hudson.plugins.git.BranchSpec>
|
|
<name>origin/**</name>
|
|
</hudson.plugins.git.BranchSpec>
|
|
</branches>
|
|
<disableSubmodules>false</disableSubmodules>
|
|
<recursiveSubmodules>false</recursiveSubmodules>
|
|
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
|
<remotePoll>false</remotePoll>
|
|
<gitTool>Default</gitTool>
|
|
<submoduleCfg class="list"/>
|
|
<reference/>
|
|
<gitConfigName/>
|
|
<gitConfigEmail/>
|
|
<extensions>
|
|
<hudson.plugins.git.extensions.impl.BuildChooserSetting>
|
|
<buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
|
|
</hudson.plugins.git.extensions.impl.BuildChooserSetting>
|
|
<hudson.plugins.git.extensions.impl.CleanCheckout/>
|
|
<hudson.plugins.git.extensions.impl.PruneStaleBranch/>
|
|
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
|
<hudson.plugins.git.extensions.impl.GitLFSPull/>
|
|
</extensions>
|
|
<browser class="hudson.plugins.git.browser.GitWeb">
|
|
<url>http://review.openstack.org/gitweb?p=openstack-infra/jenkins-job-builder.git</url>
|
|
</browser>
|
|
</scm>
|
|
<triggers class="vector">
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
|
|
<spec/>
|
|
<gerritProjects>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
|
|
<compareType>PLAIN</compareType>
|
|
<pattern>openstack-infra/jenkins-job-builder</pattern>
|
|
<branches>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
<compareType>ANT</compareType>
|
|
<pattern>**</pattern>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
|
|
</branches>
|
|
<disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
|
|
</gerritProjects>
|
|
<skipVote>
|
|
<onSuccessful>false</onSuccessful>
|
|
<onFailed>false</onFailed>
|
|
<onUnstable>false</onUnstable>
|
|
<onNotBuilt>false</onNotBuilt>
|
|
<onAborted>false</onAborted>
|
|
</skipVote>
|
|
<silentMode>false</silentMode>
|
|
<silentStartMode>false</silentStartMode>
|
|
<escapeQuotes>true</escapeQuotes>
|
|
<dependencyJobsNames/>
|
|
<commitMessageParameterMode>BASE64</commitMessageParameterMode>
|
|
<nameAndEmailParameterMode>PLAIN</nameAndEmailParameterMode>
|
|
<changeSubjectParameterMode>PLAIN</changeSubjectParameterMode>
|
|
<commentTextParameterMode>BASE64</commentTextParameterMode>
|
|
<notificationLevel/>
|
|
<dynamicTriggerConfiguration>false</dynamicTriggerConfiguration>
|
|
<triggerConfigURL/>
|
|
<dynamicGerritProjects class="empty-list"/>
|
|
<triggerInformationAction/>
|
|
<triggerOnEvents>
|
|
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent/>
|
|
</triggerOnEvents>
|
|
<gerritBuildStartedVerifiedValue>0</gerritBuildStartedVerifiedValue>
|
|
<gerritBuildSuccessfulVerifiedValue>1</gerritBuildSuccessfulVerifiedValue>
|
|
<gerritBuildFailedVerifiedValue>-1</gerritBuildFailedVerifiedValue>
|
|
<gerritBuildUnstableVerifiedValue>-1</gerritBuildUnstableVerifiedValue>
|
|
<gerritBuildNotBuiltVerifiedValue>-1</gerritBuildNotBuiltVerifiedValue>
|
|
<gerritBuildStartedCodeReviewValue>0</gerritBuildStartedCodeReviewValue>
|
|
<gerritBuildSuccessfulCodeReviewValue>1</gerritBuildSuccessfulCodeReviewValue>
|
|
<gerritBuildFailedCodeReviewValue>-1</gerritBuildFailedCodeReviewValue>
|
|
<gerritBuildUnstableCodeReviewValue>-1</gerritBuildUnstableCodeReviewValue>
|
|
<gerritBuildNotBuiltCodeReviewValue>-1</gerritBuildNotBuiltCodeReviewValue>
|
|
<gerritBuildAbortedVerifiedValue>0</gerritBuildAbortedVerifiedValue>
|
|
<gerritBuildAbortedCodeReviewValue>0</gerritBuildAbortedCodeReviewValue>
|
|
<buildStartMessage>Start message.</buildStartMessage>
|
|
<buildFailureMessage>Failed message.</buildFailureMessage>
|
|
<buildSuccessfulMessage>Success message.</buildSuccessfulMessage>
|
|
<buildUnstableMessage>Unstable message.</buildUnstableMessage>
|
|
<buildNotBuiltMessage>Not built message.</buildNotBuiltMessage>
|
|
<buildUnsuccessfulFilepath/>
|
|
<customUrl/>
|
|
<serverName>__ANY__</serverName>
|
|
<buildAbortedMessage>Aborted message.</buildAbortedMessage>
|
|
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
|
|
</triggers>
|
|
<builders>
|
|
<hudson.tasks.Shell>
|
|
<command>echo JJB template: complete001_{version}</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/usr/bin/env python
|
|
#
|
|
print("Doing something cool with python")
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|
|
<publishers/>
|
|
<buildWrappers>
|
|
<hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
|
<strategy class="hudson.plugins.build_timeout.impl.ElasticTimeOutStrategy">
|
|
<timeoutPercentage>150</timeoutPercentage>
|
|
<numberOfBuilds>0</numberOfBuilds>
|
|
<timeoutMinutesElasticDefault>90</timeoutMinutesElasticDefault>
|
|
</strategy>
|
|
<operationList>
|
|
<hudson.plugins.build__timeout.operations.FailOperation/>
|
|
</operationList>
|
|
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
|
|
<org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
echo "Doing somethiung cool"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/zsh
|
|
echo "Doing somethin cool with zsh"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Ant>
|
|
<targets>target1 target2</targets>
|
|
<antName>Standard Ant</antName>
|
|
</hudson.tasks.Ant>
|
|
<EnvInjectBuilder>
|
|
<info>
|
|
<propertiesFilePath>example.prop</propertiesFilePath>
|
|
<propertiesContent>EXAMPLE=foo-bar</propertiesContent>
|
|
</info>
|
|
</EnvInjectBuilder>
|
|
</buildSteps>
|
|
<failOnError>false</failOnError>
|
|
</org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
<com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
|
|
<includes>file1,file2*.txt</includes>
|
|
<excludes>file2bad.txt</excludes>
|
|
<flatten>false</flatten>
|
|
<includeAntExcludes>false</includeAntExcludes>
|
|
<relativeTo>userContent</relativeTo>
|
|
<hudsonHomeRelative>false</hudsonHomeRelative>
|
|
</com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
|
|
</buildWrappers>
|
|
</project>
|