compass-core/project-config/jenkins/jobs/compass-core-coverage/config.xml

113 lines
4.4 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>15</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty plugin="zmq-event-publisher@0.0.3">
<enabled>false</enabled>
</org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>ZUUL_BRANCH</name>
<description></description>
<defaultValue>master</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<assignedNode>precise</assignedNode>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers>
<hudson.triggers.TimerTrigger>
<spec>H 02 * * 2-6</spec>
</hudson.triggers.TimerTrigger>
</triggers>
<concurrentBuild>true</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>#!/bin/bash -x
if [[ -e compass-core ]]; then
rm -rf compass-core
fi
git clone https://git.openstack.org/stackforge/compass-core -b $ZUUL_BRANCH
cd compass-core
if [[ -z $ZUUL_PROJECT ]]; then
echo &quot;ZUUL_PROJECT is not set&quot;
elif [[ -z $ZUUL_BRANCH ]]; then
echo &quot;ZUUL_BRANCH is not set&quot;
elif [[ -z $ZUUL_REF ]]; then
echo &quot;ZUUL_REF is not set&quot;
elif [[ &quot;$ZUUL_PROJECT&quot; != &quot;stackforge/compass-core&quot; ]]; then
echo &quot;$ZUUL_PROJECT is not stackforge/compass-core&quot;
else
git_repo=$ZUUL_URL/stackforge/compass-core
git_ref=$ZUUL_REF
git_branch=$ZUUL_BRANCH
git reset --hard remotes/origin/$git_branch
git fetch $git_repo $git_ref
git merge FETCH_HEAD
git clean -x -f
fi
tox -ecover</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<be.certipost.hudson.plugin.SCPRepositoryPublisher plugin="scp@1.9-SNAPSHOT">
<siteName>local_log_server</siteName>
<entries>
<be.certipost.hudson.plugin.Entry>
<filePath>$JOB_NAME/$BUILD_ID</filePath>
<sourceFile></sourceFile>
<keepHierarchy>false</keepHierarchy>
<copyConsoleLog>false</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
<be.certipost.hudson.plugin.Entry>
<filePath>$JOB_NAME/$BUILD_ID/cover</filePath>
<sourceFile>compass-core/cover/**</sourceFile>
<keepHierarchy>false</keepHierarchy>
<copyConsoleLog>false</copyConsoleLog>
<copyAfterFailure>true</copyAfterFailure>
</be.certipost.hudson.plugin.Entry>
</entries>
</be.certipost.hudson.plugin.SCPRepositoryPublisher>
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.24.1">
<recipientList>dev@syscompass.org</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
<email>
<recipientList></recipientList>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<sendToDevelopers>false</sendToDevelopers>
<sendToRequester>false</sendToRequester>
<includeCulprits>false</includeCulprits>
<sendToRecipientList>true</sendToRecipientList>
</email>
</hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
</configuredTriggers>
<contentType>default</contentType>
<defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
<defaultContent>$DEFAULT_CONTENT
Coverage Reports:
http://12.234.32.44/logs/$PROJECT_NAME/$BUILD_ID/cover</defaultContent>
<attachmentsPattern></attachmentsPattern>
<presendScript></presendScript>
</hudson.plugins.emailext.ExtendedEmailPublisher>
</publishers>
<buildWrappers>
<hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.3.2"/>
</buildWrappers>
</project>