Skip to content

Instantly share code, notes, and snippets.

@txag1995
Last active July 21, 2017 19:48
Show Gist options
  • Save txag1995/8b56ec9c166857a3ad8c to your computer and use it in GitHub Desktop.
Save txag1995/8b56ec9c166857a3ad8c to your computer and use it in GitHub Desktop.
Verify Job
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="[email protected]">
<projectUrl>https://github.com/txag1995/sample-cookbook/</projectUrl>
</com.coravy.hudson.plugins.github.GithubProjectProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>origin</name>
<refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
<url>https://github.com/txag1995/sample-cookbook.git</url>
<credentialsId>6fd7c85d-bd78-4795-8ab3-3f226aaa782c</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>${sha1}</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<browser class="hudson.plugins.git.browser.GithubWeb">
<url>https://github.com/txag1995/sample-cookbook</url>
</browser>
<submoduleCfg class="list"/>
<extensions>
<hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
<relativeTargetDir>cookbooks/${JOB_NAME}</relativeTargetDir>
</hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
</extensions>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers>
<org.jenkinsci.plugins.ghprb.GhprbTrigger plugin="[email protected]">
<spec>* * * * *</spec>
<adminlist>txag1995</adminlist>
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
<orgslist></orgslist>
<cron>* * * * *</cron>
<triggerPhrase></triggerPhrase>
<onlyTriggerPhrase>false</onlyTriggerPhrase>
<useGitHubHooks>false</useGitHubHooks>
<permitAll>false</permitAll>
<commentFilePath></commentFilePath>
<whitelist></whitelist>
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
<whiteListTargetBranches>
<org.jenkinsci.plugins.ghprb.GhprbBranch>
<branch></branch>
</org.jenkinsci.plugins.ghprb.GhprbBranch>
</whiteListTargetBranches>
<msgSuccess></msgSuccess>
<msgFailure></msgFailure>
<commitStatusContext></commitStatusContext>
<project>sample-cookbook-verify</project>
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>knife cookbook test -o cookbooks/${JOB_NAME} -a</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>foodcritic -f any cookbooks/${JOB_NAME}</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>rubocop cookbooks/${JOB_NAME}</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>rspec -fd --color --default-path cookbooks/${JOB_NAME}/spec</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="[email protected]">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
</buildWrappers>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment