Created
December 23, 2015 17:26
-
-
Save mlyle/c1ba8eefacdb03b89746 to your computer and use it in GitHub Desktop.
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="[email protected]"> | |
<actions/> | |
<description>dRonin Branch Builds</description> | |
<logRotator class="hudson.tasks.LogRotator"> | |
<daysToKeep>120</daysToKeep> | |
<numToKeep>-1</numToKeep> | |
<artifactDaysToKeep>30</artifactDaysToKeep> | |
<artifactNumToKeep>-1</artifactNumToKeep> | |
</logRotator> | |
<keepDependencies>false</keepDependencies> | |
<properties> | |
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="[email protected]"> | |
<projectUrl>http://github.com/d-ronin/dronin/</projectUrl> | |
</com.coravy.hudson.plugins.github.GithubProjectProperty> | |
<hudson.model.ParametersDefinitionProperty> | |
<parameterDefinitions> | |
<hudson.model.StringParameterDefinition> | |
<name>userbranch</name> | |
<description>Branch name to build on.</description> | |
<defaultValue>next</defaultValue> | |
</hudson.model.StringParameterDefinition> | |
</parameterDefinitions> | |
</hudson.model.ParametersDefinitionProperty> | |
</properties> | |
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> | |
<refspec>+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*</refspec> | |
<url>http://github.com/d-ronin/dronin/</url> | |
</hudson.plugins.git.UserRemoteConfig> | |
</userRemoteConfigs> | |
<branches> | |
<hudson.plugins.git.BranchSpec> | |
<name>${sha1}</name> | |
</hudson.plugins.git.BranchSpec> | |
<hudson.plugins.git.BranchSpec> | |
<name>*/${userbranch}</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.TimerTrigger> | |
<spec># 3:03 every day | |
3 3 * * *</spec> | |
</hudson.triggers.TimerTrigger> | |
<com.cloudbees.jenkins.GitHubPushTrigger plugin="[email protected]"> | |
<spec></spec> | |
</com.cloudbees.jenkins.GitHubPushTrigger> | |
</triggers> | |
<concurrentBuild>true</concurrentBuild> | |
<axes> | |
<hudson.matrix.LabelAxis> | |
<name>Nodes</name> | |
<values> | |
<string>master</string> | |
<string>winx86</string> | |
</values> | |
</hudson.matrix.LabelAxis> | |
</axes> | |
<builders> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
git clean -f -d -x -e tools</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
rm -f tools | |
if [ "$NODE_NAME" = "winx86" ] ; then | |
cmd //c mklink //j tools /dronin-tools | |
else | |
ln -s /dronin-tools tools | |
fi</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
git reset --hard</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
GCS_BUILD_CONF=release FLIGHT_BUILD_CONF=release make -j2 all package_flight</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
if [ "$NODE_NAME" = "master" ] ; then | |
make all_ut_run | |
fi</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
make package_all_compress</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
make package_installer</command> | |
</hudson.tasks.Shell> | |
<hudson.tasks.Shell> | |
<command>. ~/.bash_profile | |
mkdir -p build/artifacts | |
mv build/dronin*.zip build/artifacts || true | |
mv build/dronin*.xz build/artifacts || true | |
mv build/dRonin*.exe build/artifacts || true | |
mv build/dronin*.dmg build/artifacts || true | |
mv build/dronin*.deb build/artifacts || true</command> | |
</hudson.tasks.Shell> | |
</builders> | |
<publishers> | |
<hudson.tasks.ArtifactArchiver> | |
<artifacts>build/artifacts/*</artifacts> | |
<allowEmptyArchive>false</allowEmptyArchive> | |
<onlyIfSuccessful>true</onlyIfSuccessful> | |
<fingerprint>true</fingerprint> | |
<defaultExcludes>true</defaultExcludes> | |
</hudson.tasks.ArtifactArchiver> | |
<hudson.plugins.ircbot.IrcPublisher plugin="[email protected]"> | |
<targets class="empty-list"/> | |
<strategy>FAILURE_AND_FIXED</strategy> | |
<notifyOnBuildStart>false</notifyOnBuildStart> | |
<notifySuspects>false</notifySuspects> | |
<notifyCulprits>false</notifyCulprits> | |
<notifyFixers>false</notifyFixers> | |
<notifyUpstreamCommitters>false</notifyUpstreamCommitters> | |
<buildToChatNotifier class="hudson.plugins.im.build_notify.DefaultBuildToChatNotifier" plugin="[email protected]"/> | |
<matrixMultiplier>ONLY_CONFIGURATIONS</matrixMultiplier> | |
<channels/> | |
</hudson.plugins.ircbot.IrcPublisher> | |
</publishers> | |
<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