aboutsummaryrefslogtreecommitdiffstats
path: root/jta-core/jobs/CIAT.test/config.xml
diff options
context:
space:
mode:
Diffstat (limited to 'jta-core/jobs/CIAT.test/config.xml')
-rw-r--r--jta-core/jobs/CIAT.test/config.xml198
1 files changed, 198 insertions, 0 deletions
diff --git a/jta-core/jobs/CIAT.test/config.xml b/jta-core/jobs/CIAT.test/config.xml
new file mode 100644
index 0000000..e7c4a08
--- /dev/null
+++ b/jta-core/jobs/CIAT.test/config.xml
@@ -0,0 +1,198 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<matrix-project>
+ <actions/>
+ <description></description>
+ <logRotator class="hudson.tasks.LogRotator">
+ <daysToKeep>-1</daysToKeep>
+ <numToKeep>300</numToKeep>
+ <artifactDaysToKeep>-1</artifactDaysToKeep>
+ <artifactNumToKeep>-1</artifactNumToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties>
+ <jp.ikedam.jenkins.plugins.groovy__label__assignment.GroovyLabelAssignmentProperty plugin="groovy-label-assignment@1.0.0">
+ <groovyScript>return &quot;master&quot;</groovyScript>
+ </jp.ikedam.jenkins.plugins.groovy__label__assignment.GroovyLabelAssignmentProperty>
+ <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.2">
+ <priority>100</priority>
+ </hudson.queueSorter.PrioritySorterJobProperty>
+ <hudson.model.ParametersDefinitionProperty>
+ <parameterDefinitions>
+ <com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.28">
+ <name>Rebuild_tests</name>
+ <description></description>
+ <quoteValue>false</quoteValue>
+ <visibleItemCount>1</visibleItemCount>
+ <type>PT_CHECKBOX</type>
+ <value></value>
+ <propertyFile>/home/jenkins/test_run.properties</propertyFile>
+ <propertyKey>Rebuild_test_ui</propertyKey>
+ <defaultValue></defaultValue>
+ <defaultPropertyFile>/home/jenkins/test_run.properties</defaultPropertyFile>
+ <defaultPropertyKey>Rebuild_test_default</defaultPropertyKey>
+ </com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
+ <com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.28">
+ <name>Reboot_targets</name>
+ <description></description>
+ <quoteValue>false</quoteValue>
+ <visibleItemCount>1</visibleItemCount>
+ <type>PT_CHECKBOX</type>
+ <value></value>
+ <propertyFile>/home/jenkins/test_run.properties</propertyFile>
+ <propertyKey>Reboot_target_ui</propertyKey>
+ <defaultValue></defaultValue>
+ <defaultPropertyFile>/home/jenkins/test_run.properties</defaultPropertyFile>
+ <defaultPropertyKey>Reboot_target_default</defaultPropertyKey>
+ </com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
+ <com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition plugin="extended-choice-parameter@0.28">
+ <name>Cleanup_targets</name>
+ <description></description>
+ <quoteValue>false</quoteValue>
+ <visibleItemCount>1</visibleItemCount>
+ <type>PT_CHECKBOX</type>
+ <value></value>
+ <propertyFile>/home/jenkins/test_run.properties</propertyFile>
+ <propertyKey>Cleanup_target_ui</propertyKey>
+ <defaultValue></defaultValue>
+ <defaultPropertyFile>/home/jenkins/test_run.properties</defaultPropertyFile>
+ <defaultPropertyKey>Cleanup_target_default</defaultPropertyKey>
+ </com.cwctravel.hudson.plugins.extended__choice__parameter.ExtendedChoiceParameterDefinition>
+ </parameterDefinitions>
+ </hudson.model.ParametersDefinitionProperty>
+ <hudson.plugins.sidebar__link.ProjectLinks plugin="sidebar-link@1.6">
+ <links>
+ <hudson.plugins.sidebar__link.LinkAction>
+ <url>/userContent/docs/jta-docs.pdf</url>
+ <text>Documentation</text>
+ <icon>help.gif</icon>
+ </hudson.plugins.sidebar__link.LinkAction>
+ </links>
+ </hudson.plugins.sidebar__link.ProjectLinks>
+ <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@1.6">
+ <maxConcurrentPerNode>0</maxConcurrentPerNode>
+ <maxConcurrentTotal>0</maxConcurrentTotal>
+ <throttleEnabled>false</throttleEnabled>
+ </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
+ </properties>
+ <scm class="hudson.scm.NullSCM"/>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <triggers class="vector">
+ </triggers>
+ <concurrentBuild>false</concurrentBuild>
+ <customWorkspace>/home/jenkins/buildzone</customWorkspace>
+ <axes>
+ <org.jenkinsci.plugins.GroovyAxis plugin="groovyaxis@0.3">
+ <name>Target</name>
+ <values>
+ <string>porter</string>
+ </values>
+ <groovyString>import jenkins.model.*
+
+def result = []
+
+result += &quot;porter&quot;
+
+return result
+
+</groovyString>
+ <computedValues>
+ <string>porter</string>
+ </computedValues>
+ </org.jenkinsci.plugins.GroovyAxis>
+ <org.jenkinsci.plugins.GroovyAxis plugin="groovyaxis@0.3">
+ <name>Test</name>
+ <values>
+ <string>CIAT.build_deploy</string>
+ <string>CIAT.my1</string>
+ <string>CIAT.my2</string>
+ </values>
+ <groovyString>import jenkins.model.*
+
+def result = []
+
+porter_config = new File(&quot;/userdata/conf/boards/porter.board&quot;)
+porter_config.eachLine { String line -&gt;
+ def matcher = line =~ /(CIAT_.*)=\&quot;(.*)\&quot;/
+
+ /* get deploy task */
+ if (matcher.matches() &amp;&amp; matcher[0][1] == &quot;CIAT_DEPLOY&quot;) {
+ if (matcher[0][2] == &quot;CIAT.build_deploy&quot; || matcher[0][2] == &quot;CIAT.download_deploy&quot;)
+ result += matcher[0][2]
+ else
+ result += &quot;CIAT.build_deploy&quot;
+ }
+
+ /* get testcases */
+ if (matcher.matches() &amp;&amp; matcher[0][1] == &quot;CIAT_TEST&quot;) {
+ matcher[0][2].tokenize().each { String testcase-&gt;
+ result += testcase
+ }
+ }
+}
+
+return result</groovyString>
+ <computedValues>
+ <string>CIAT.build_deploy</string>
+ <string>CIAT.my1</string>
+ <string>CIAT.my2</string>
+ </computedValues>
+ </org.jenkinsci.plugins.GroovyAxis>
+ </axes>
+ <builders>
+ <hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.9-SNAPSHOT">
+ <configs>
+ <hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
+ <configs>
+ <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
+ <properties>Device=${Target}
+Rebuild=${Rebuild_tests}
+Target_Cleanup=${Cleanup_targets}
+Reboot=${Reboot_targets}
+GERRIT_PROJECT=${GERRIT_PROJECT}
+GERRIT_BRANCH=${GERRIT_BRANCH}
+GERRIT_REFSPEC=${GERRIT_REFSPEC}</properties>
+ </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
+ </configs>
+ <projects>${Test}</projects>
+ <condition>ALWAYS</condition>
+ <triggerWithNoParameters>false</triggerWithNoParameters>
+ <block>
+ <unstableThreshold>
+ <name>UNSTABLE</name>
+ <ordinal>1</ordinal>
+ <color>YELLOW</color>
+ </unstableThreshold>
+ <failureThreshold>
+ <name>FAILURE</name>
+ <ordinal>2</ordinal>
+ <color>RED</color>
+ </failureThreshold>
+ </block>
+ </hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
+ </configs>
+ </hudson.plugins.parameterizedtrigger.TriggerBuilder>
+ </builders>
+ <publishers>
+ <hudson.tasks.test.AggregatedTestResultPublisher>
+ <includeFailedBuilds>true</includeFailedBuilds>
+ </hudson.tasks.test.AggregatedTestResultPublisher>
+ </publishers>
+ <buildWrappers>
+ <hudson.plugins.envfile.EnvFileBuildWrapper plugin="envfile@1.2-SNAPSHOT">
+ <filePath>/home/jenkins/scripts/environment.sh</filePath>
+ </hudson.plugins.envfile.EnvFileBuildWrapper>
+ </buildWrappers>
+ <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
+ <runSequentially>true</runSequentially>
+ <touchStoneCombinationFilter>Test==&quot;CIAT.build_deploy&quot; || Test==&quot;CIAT.download_deploy&quot;</touchStoneCombinationFilter>
+ <touchStoneResultCondition>
+ <name>SUCCESS</name>
+ <ordinal>0</ordinal>
+ <color>BLUE</color>
+ </touchStoneResultCondition>
+ </executionStrategy>
+ <childCustomWorkspace>/home/jenkins/buildzone</childCustomWorkspace>
+</matrix-project>