org.kuali.jenkins.jobs.properties.common.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-maven-plugin Show documentation
Show all versions of jenkins-maven-plugin Show documentation
Automated management of Jenkins jobs via Maven. Much of the information needed by Jenkins when creating a job is already in the Maven pom.
The SCM information and CI url are present. Jenkins jobs also typically have names that reflect the groupId, artifactId, and version in some manner.
This plugin automates the process of creating Jenkins jobs by harvesting information from the POM to create XML config files in the format Jenkins needs. The
Jenkins CLI API is then used to create, update, read, and delete Jenkins jobs on the CI server. If your Jenkins instance requires authentication, add
your public key to your user account on the Jenkins server.
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2011-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>Properties common to all Jenkins jobs</comment> <entry key="jenkins.job.rootModule.groupId">${jenkins.project.groupId}</entry> <entry key="jenkins.job.rootModule.artifactId">${jenkins.project.artifactId}</entry> <entry key="jenkins.job.actions"></entry> <entry key="jenkins.job.logRotator.daysToKeep">-1</entry> <entry key="jenkins.job.logRotator.numToKeep">3</entry> <entry key="jenkins.job.logRotator.artifactDaysToKeep">-1</entry> <entry key="jenkins.job.logRotator.artifactNumToKeep">-1</entry> <entry key="jenkins.job.properties"></entry> <entry key="jenkins.job.triggers.class">vector</entry> <entry key="jenkins.job.triggers"></entry> <entry key="jenkins.job.keepDependencies">false</entry> <entry key="jenkins.job.canRoam">true</entry> <entry key="jenkins.job.disabled">false</entry> <entry key="jenkins.job.blockBuildWhenDownstreamBuilding">false</entry> <entry key="jenkins.job.blockBuildWhenUpstreamBuilding">false</entry> <entry key="jenkins.job.concurrentBuild">false</entry> <entry key="jenkins.job.aggregatorStyleBuild">true</entry> <entry key="jenkins.job.incrementalBuild">false</entry> <entry key="jenkins.job.usePrivateRepository">false</entry> <entry key="jenkins.job.ignoreUpstremChanges">true</entry> <entry key="jenkins.job.archivingDisabled">false</entry> <entry key="jenkins.job.resolveDependencies">false</entry> <entry key="jenkins.job.processPlugins">false</entry> <entry key="jenkins.job.mavenValidationLevel">-1</entry> <entry key="jenkins.job.runHeadless">false</entry> <entry key="jenkins.job.settingConfigId"></entry> <entry key="jenkins.job.globalSettingConfigId"></entry> <entry key="jenkins.job.reporters"></entry> <entry key="jenkins.job.publishers"></entry> <entry key="jenkins.job.buildWrappers"></entry> <entry key="jenkins.job.prebuilders"></entry> <entry key="jenkins.job.postbuilders"></entry> <entry key="jenkins.job.runPostStepsIfResult.name">FAILURE</entry> <entry key="jenkins.job.runPostStepsIfResult.ordinal">2</entry> <entry key="jenkins.job.runPostStepsIfResult.color">RED</entry> <entry key="jenkins.job.runPostStepsIfResult"><![CDATA[ <name>${jenkins.job.runPostStepsIfResult.name}</name> <ordinal>${jenkins.job.runPostStepsIfResult.ordinal}</ordinal> <color>${jenkins.job.runPostStepsIfResult.color}</color> ]]></entry> <entry key="jenkins.job.cron.everyMinute">* * * * *</entry> <entry key="jenkins.job.cron.midnight">0 0 * * *</entry> <!-- 7am UTC is midnight in Arizona --> <entry key="jenkins.job.cron.7am">0 7 * * *</entry> <entry key="jenkins.job.cron.at.hourly">@hourly</entry> <entry key="jenkins.job.cron.at.daily">@daily</entry> <entry key="jenkins.job.cron.at.weekly">@weekly</entry> <entry key="jenkins.job.cron.at.monthly">@monthly</entry> <entry key="jenkins.job.cron.at.yearly">@yearly</entry> <entry key="jenkins.job.cron.at.midnight">@midnight</entry> <entry key="jenkins.job.cron.at.annually">@annually</entry> <entry key="jenkins.job.builders">${jenkins.job.builders.shell}</entry> <entry key="jenkins.job.builders.shell"><![CDATA[ <hudson.tasks.Shell> <command>${jenkins.job.builders.shell.command}</command> </hudson.tasks.Shell> ]]></entry> <!-- shell script for verifying ECL 2.0 license header compliance on a Maven project --> <entry key="jenkins.job.builders.shell.command.license"><![CDATA[mvn clean install -Plicense -N -DskipTests ]]></entry> <!-- shell script for unit testing a Maven project --> <entry key="jenkins.job.builders.shell.command.unit"><![CDATA[mvn clean install ]]></entry> <!-- shell script for publishing a Maven project --> <entry key="jenkins.job.builders.shell.command.publish"><![CDATA[mvn validate -Pscm -N mvn clean deploy site-deploy -Pkuali-release -e ]]></entry> <!-- shell script for releasing a Maven project --> <entry key="jenkins.job.builders.shell.command.release"><![CDATA[mvn validate -Pscm -N mvn clean release:prepare release:perform -B cd $WORKSPACE/target/checkout mvn clean deploy -Pkuali-release,sonatype-oss-release # The || true at the end here is ridiculous and insanely evil # Remove it when Sonatype resolves https://issues.sonatype.org/browse/OSSRH-5976 # Maven always reports a bogus BUILD FAILURE, even though the binaries got released correctly mvn nexus-staging:release -Pkuali-release,sonatype-oss-release -N || true mvn site-deploy -Pkuali-release -Dkuali.site.latest=true ]]></entry> <entry key="jenkins.job.trigger.scm"><![CDATA[ <hudson.triggers.SCMTrigger> <spec>${jenkins.job.trigger.scm.spec}</spec> </hudson.triggers.SCMTrigger> ]]></entry> <entry key="jenkins.job.trigger.timer"><![CDATA[ <hudson.triggers.TimerTrigger> <spec>${jenkins.job.trigger.timer.spec}</spec> </hudson.triggers.TimerTrigger> ]]></entry> <entry key="jenkins.job.description"><![CDATA[ <style type="text/css"> #jenkins-job-description { padding:20px; } #jenkins-job-brief { padding-bottom:10px; } #jenkins-job-brief-title { list-style-type:square; padding-bottom:15px; font-size:larger; font-weight:bolder; } ol.jenkins-job-brief-sublist { list-style-type: lower-alpha; margin-top:0px; margin-bottom:0px; } #jenkins-project-metadata { list-style-type:circle; padding-top:10px; color:gray; } #jenkins-cli-wrapper-metadata { list-style-type:circle; padding-top:10px; color:gray; } </style> <div id="jenkins-job-description"> <div id="jenkins-job-brief">${jenkins.job.description.brief}</div> <div id="jenkins-project-metadata"> <li>${jenkins.project.groupId}:${jenkins.project.artifactId}:${jenkins.project.majorVersion}</li> <li>${jenkins.project.scmUrl}</li> </div> <div id="jenkins-cli-wrapper-metadata"> <li>Job created by Jenkins Maven Plugin ${project.version} (Jenkins CLI Version ${jenkins.cli.version})</li> <li>Last config update via CLI - ${jenkins.build.timestamp}</li> </div> </div> ]]></entry> <entry key="jenkins.job.description.kualiRelease"><![CDATA[ <ol class="jenkins-job-brief-sublist"> <li>Attach sources</li> <li>Attach javadocs</li> <li>Attach the Maven site descriptor</li> <li>Attach test code</li> <li>Sign all artifacts with GPG</li> <li>Embed SCM info into jars/wars</li> </ol> ]]></entry> </properties>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy