-
-
Save fatmcgav/19660174fed68f9df6c70797f079bc72 to your computer and use it in GitHub Desktop.
Jenkins example build config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description>Unit Test - Puppet 4</description> | |
<keepDependencies>false</keepDependencies> | |
<properties> | |
<jenkins.model.BuildDiscarderProperty> | |
<strategy class="hudson.tasks.LogRotator"> | |
<daysToKeep>-1</daysToKeep> | |
<numToKeep>14</numToKeep> | |
<artifactDaysToKeep>-1</artifactDaysToKeep> | |
<artifactNumToKeep>-1</artifactNumToKeep> | |
</strategy> | |
</jenkins.model.BuildDiscarderProperty> | |
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.21.1"> | |
<projectUrl>https://github.com/company/project/</projectUrl> | |
<displayName></displayName> | |
</com.coravy.hudson.plugins.github.GithubProjectProperty> | |
<hudson.model.ParametersDefinitionProperty> | |
<parameterDefinitions> | |
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.6.2"> | |
<name>branch</name> | |
<description>Git branch to build</description> | |
<uuid>de2ab4be-cce2-4510-bb68-9945bc9dd7cc</uuid> | |
<type>PT_BRANCH</type> | |
<branch></branch> | |
<tagFilter>*</tagFilter> | |
<branchFilter>.*</branchFilter> | |
<sortMode>ASCENDING_SMART</sortMode> | |
<defaultValue>origin/develop</defaultValue> | |
<selectedValue>DEFAULT</selectedValue> | |
<quickFilterEnabled>true</quickFilterEnabled> | |
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition> | |
</parameterDefinitions> | |
</hudson.model.ParametersDefinitionProperty> | |
</properties> | |
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.3"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> | |
<url>git@github.com:company/project.git</url> | |
<credentialsId>d18fe92a-62fe-4b75-b81f-520e74e257a5</credentialsId> | |
</hudson.plugins.git.UserRemoteConfig> | |
</userRemoteConfigs> | |
<branches> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/$branch</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/develop</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/master</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/feature/*</name> | |
</hudson.plugins.git.BranchSpec> | |
</branches> | |
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | |
<submoduleCfg class="list"/> | |
<extensions> | |
<hudson.plugins.git.extensions.impl.PruneStaleBranch/> | |
<hudson.plugins.git.extensions.impl.MessageExclusion> | |
<excludedMessage>.*\[skip-ci\].*</excludedMessage> | |
</hudson.plugins.git.extensions.impl.MessageExclusion> | |
</extensions> | |
</scm> | |
<canRoam>true</canRoam> | |
<disabled>false</disabled> | |
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | |
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | |
<triggers> | |
<hudson.triggers.SCMTrigger> | |
<spec>H/5 * * * *</spec> | |
<ignorePostCommitHooks>false</ignorePostCommitHooks> | |
</hudson.triggers.SCMTrigger> | |
</triggers> | |
<concurrentBuild>true</concurrentBuild> | |
<builders> | |
<hudson.tasks.Shell> | |
<command>rm Gemfile.lock ||true</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>gem install bundler --no-ri --no-rdoc</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle install --without development --without system_tests</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake lint</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake syntax</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>rm Puppetfile.lock || true</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake ci:setup:rspec spec</command> | |
</hudson.tasks.Shell> | |
</builders> | |
<publishers> | |
<hudson.plugins.warnings.WarningsPublisher plugin="warnings@4.56"> | |
<healthy></healthy> | |
<unHealthy></unHealthy> | |
<thresholdLimit>low</thresholdLimit> | |
<pluginName>[WARNINGS] </pluginName> | |
<defaultEncoding></defaultEncoding> | |
<canRunOnFailed>false</canRunOnFailed> | |
<usePreviousBuildAsReference>false</usePreviousBuildAsReference> | |
<useStableBuildAsReference>false</useStableBuildAsReference> | |
<useDeltaValues>false</useDeltaValues> | |
<thresholds plugin="analysis-core@1.79"> | |
<unstableTotalAll></unstableTotalAll> | |
<unstableTotalHigh></unstableTotalHigh> | |
<unstableTotalNormal></unstableTotalNormal> | |
<unstableTotalLow></unstableTotalLow> | |
<unstableNewAll></unstableNewAll> | |
<unstableNewHigh></unstableNewHigh> | |
<unstableNewNormal></unstableNewNormal> | |
<unstableNewLow></unstableNewLow> | |
<failedTotalAll></failedTotalAll> | |
<failedTotalHigh></failedTotalHigh> | |
<failedTotalNormal></failedTotalNormal> | |
<failedTotalLow></failedTotalLow> | |
<failedNewAll></failedNewAll> | |
<failedNewHigh></failedNewHigh> | |
<failedNewNormal></failedNewNormal> | |
<failedNewLow></failedNewLow> | |
</thresholds> | |
<shouldDetectModules>false</shouldDetectModules> | |
<dontComputeNew>true</dontComputeNew> | |
<doNotResolveRelativePaths>true</doNotResolveRelativePaths> | |
<includePattern></includePattern> | |
<excludePattern></excludePattern> | |
<messagesPattern></messagesPattern> | |
<parserConfigurations/> | |
<consoleParsers> | |
<hudson.plugins.warnings.ConsoleParser> | |
<parserName>Puppet-Lint</parserName> | |
</hudson.plugins.warnings.ConsoleParser> | |
</consoleParsers> | |
</hudson.plugins.warnings.WarningsPublisher> | |
<hudson.tasks.junit.JUnitResultArchiver plugin="junit@1.18"> | |
<testResults>spec/reports/*.xml, reports/*.xml</testResults> | |
<keepLongStdio>false</keepLongStdio> | |
<healthScaleFactor>1.0</healthScaleFactor> | |
<allowEmptyResults>false</allowEmptyResults> | |
</hudson.tasks.junit.JUnitResultArchiver> | |
</publishers> | |
<buildWrappers> | |
<EnvInjectBuildWrapper plugin="envinject@1.92.1"> | |
<info> | |
<propertiesContent>PUPPET_VERSION=~>4.0</propertiesContent> | |
<loadFilesFromMaster>false</loadFilesFromMaster> | |
</info> | |
</EnvInjectBuildWrapper> | |
<ruby-proxy-object> | |
<ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="rvm"> | |
<object ruby-class="RvmWrapper" pluginid="rvm"> | |
<impl pluginid="rvm" ruby-class="String">1.9.3@puppet-microservice-4</impl> | |
</object> | |
<pluginid pluginid="rvm" ruby-class="String">rvm</pluginid> | |
</ruby-object> | |
</ruby-proxy-object> | |
<org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="build-name-setter@1.6.5"> | |
<template>#${BUILD_NUMBER}: ${GIT_BRANCH}</template> | |
<runAtStart>true</runAtStart> | |
<runAtEnd>true</runAtEnd> | |
</org.jenkinsci.plugins.buildnamesetter.BuildNameSetter> | |
</buildWrappers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<matrix-project plugin="matrix-project@1.7.1"> | |
<description>Puppet module Matrix unit test</description> | |
<keepDependencies>false</keepDependencies> | |
<properties> | |
<jenkins.model.BuildDiscarderProperty> | |
<strategy class="hudson.tasks.LogRotator"> | |
<daysToKeep>-1</daysToKeep> | |
<numToKeep>14</numToKeep> | |
<artifactDaysToKeep>-1</artifactDaysToKeep> | |
<artifactNumToKeep>-1</artifactNumToKeep> | |
</strategy> | |
</jenkins.model.BuildDiscarderProperty> | |
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.21.1"> | |
<projectUrl>https://github.com/company/project/</projectUrl> | |
<displayName></displayName> | |
</com.coravy.hudson.plugins.github.GithubProjectProperty> | |
<hudson.model.ParametersDefinitionProperty> | |
<parameterDefinitions> | |
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.6.2"> | |
<name>branch</name> | |
<description>Git branch to build</description> | |
<uuid>fca81d62-e461-4cdf-9208-3cab655d8e56</uuid> | |
<type>PT_BRANCH</type> | |
<branch></branch> | |
<tagFilter>*</tagFilter> | |
<branchFilter>.*</branchFilter> | |
<sortMode>ASCENDING_SMART</sortMode> | |
<defaultValue>origin/develop</defaultValue> | |
<selectedValue>DEFAULT</selectedValue> | |
<quickFilterEnabled>false</quickFilterEnabled> | |
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition> | |
</parameterDefinitions> | |
</hudson.model.ParametersDefinitionProperty> | |
</properties> | |
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.3"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> | |
<url>git@github.com:company/project.git</url> | |
<credentialsId>d18fe92a-62fe-4b75-b81f-520e74e257a5</credentialsId> | |
</hudson.plugins.git.UserRemoteConfig> | |
</userRemoteConfigs> | |
<branches> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/$branch</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/develop</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/master</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/feature/*</name> | |
</hudson.plugins.git.BranchSpec> | |
</branches> | |
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | |
<submoduleCfg class="list"/> | |
<extensions/> | |
</scm> | |
<canRoam>true</canRoam> | |
<disabled>false</disabled> | |
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | |
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | |
<triggers> | |
<hudson.triggers.SCMTrigger> | |
<spec>H/5 * * * *</spec> | |
<ignorePostCommitHooks>false</ignorePostCommitHooks> | |
</hudson.triggers.SCMTrigger> | |
</triggers> | |
<concurrentBuild>false</concurrentBuild> | |
<axes> | |
<hudson.matrix.TextAxis> | |
<name>PUPPET_VERSION</name> | |
<values> | |
<string>~>3.0</string> | |
<string>~>4.0</string> | |
</values> | |
</hudson.matrix.TextAxis> | |
<hudson.matrix.TextAxis> | |
<name>PARSER</name> | |
<values> | |
<string>current</string> | |
<string>future</string> | |
</values> | |
</hudson.matrix.TextAxis> | |
</axes> | |
<builders> | |
<hudson.tasks.Shell> | |
<command>rm Gemfile.lock || true</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>gem install bundler --no-ri --no-rdoc</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle install --without system_tests --without development</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake lint</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake syntax</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>rm Puppetfile.lock || true</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>bundle exec rake ci:setup:rspec spec</command> | |
</hudson.tasks.Shell> | |
</builders> | |
<publishers> | |
<hudson.plugins.warnings.WarningsPublisher plugin="warnings@4.56"> | |
<healthy></healthy> | |
<unHealthy></unHealthy> | |
<thresholdLimit>low</thresholdLimit> | |
<pluginName>[WARNINGS] </pluginName> | |
<defaultEncoding></defaultEncoding> | |
<canRunOnFailed>false</canRunOnFailed> | |
<usePreviousBuildAsReference>false</usePreviousBuildAsReference> | |
<useStableBuildAsReference>false</useStableBuildAsReference> | |
<useDeltaValues>false</useDeltaValues> | |
<thresholds plugin="analysis-core@1.79"> | |
<unstableTotalAll></unstableTotalAll> | |
<unstableTotalHigh></unstableTotalHigh> | |
<unstableTotalNormal></unstableTotalNormal> | |
<unstableTotalLow></unstableTotalLow> | |
<unstableNewAll></unstableNewAll> | |
<unstableNewHigh></unstableNewHigh> | |
<unstableNewNormal></unstableNewNormal> | |
<unstableNewLow></unstableNewLow> | |
<failedTotalAll></failedTotalAll> | |
<failedTotalHigh></failedTotalHigh> | |
<failedTotalNormal></failedTotalNormal> | |
<failedTotalLow></failedTotalLow> | |
<failedNewAll></failedNewAll> | |
<failedNewHigh></failedNewHigh> | |
<failedNewNormal></failedNewNormal> | |
<failedNewLow></failedNewLow> | |
</thresholds> | |
<shouldDetectModules>false</shouldDetectModules> | |
<dontComputeNew>true</dontComputeNew> | |
<doNotResolveRelativePaths>true</doNotResolveRelativePaths> | |
<includePattern></includePattern> | |
<excludePattern></excludePattern> | |
<messagesPattern></messagesPattern> | |
<parserConfigurations/> | |
<consoleParsers> | |
<hudson.plugins.warnings.ConsoleParser> | |
<parserName>Puppet-Lint</parserName> | |
</hudson.plugins.warnings.ConsoleParser> | |
</consoleParsers> | |
</hudson.plugins.warnings.WarningsPublisher> | |
<hudson.tasks.junit.JUnitResultArchiver plugin="junit@1.18"> | |
<testResults>spec/reports/*.xml, reports/*.xml</testResults> | |
<keepLongStdio>false</keepLongStdio> | |
<healthScaleFactor>1.0</healthScaleFactor> | |
<allowEmptyResults>false</allowEmptyResults> | |
</hudson.tasks.junit.JUnitResultArchiver> | |
</publishers> | |
<buildWrappers> | |
<ruby-proxy-object> | |
<ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="rvm"> | |
<object ruby-class="RvmWrapper" pluginid="rvm"> | |
<impl pluginid="rvm" ruby-class="String">1.9.3@puppet-microservice</impl> | |
</object> | |
<pluginid pluginid="rvm" ruby-class="String">rvm</pluginid> | |
</ruby-object> | |
</ruby-proxy-object> | |
<org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="build-name-setter@1.6.5"> | |
<template>#${BUILD_NUMBER}: ${GIT_BRANCH}</template> | |
<runAtStart>true</runAtStart> | |
<runAtEnd>true</runAtEnd> | |
</org.jenkinsci.plugins.buildnamesetter.BuildNameSetter> | |
</buildWrappers> | |
<executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl"> | |
<runSequentially>false</runSequentially> | |
</executionStrategy> | |
</matrix-project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment