2 | <job-template plugin="cloudbees-template@4.28"> | 2 | <job-template plugin="cloudbees-template@4.28"> |
---|
3 | <actions/> | 3 | <actions/> |
---|
4 | <description></description> | 4 | <description></description> |
---|
5 | <displayName>Nuxeo On-Demand test and push</displayName> | 5 | <displayName>Nuxeo On-Demand Test and Push</displayName> |
---|
6 | <attributes> | 6 | <attributes> |
---|
7 | <template-attribute> | 7 | <template-attribute> |
---|
8 | <name>name</name> | 8 | <name>name</name> |
---|
... |
| ... |
|
---|
81 | </ol> | 81 | </ol> |
---|
82 | </description> | 82 | </description> |
---|
83 | <logRotator class="hudson.tasks.LogRotator"> | 83 | <logRotator class="hudson.tasks.LogRotator"> |
---|
84 | <daysToKeep>21</daysToKeep> | 84 | <daysToKeep>60</daysToKeep> |
---|
85 | <numToKeep>100</numToKeep> | 85 | <numToKeep>60</numToKeep> |
---|
86 | <artifactDaysToKeep>-1</artifactDaysToKeep> | 86 | <artifactDaysToKeep>-1</artifactDaysToKeep> |
---|
87 | <artifactNumToKeep>1</artifactNumToKeep> | 87 | <artifactNumToKeep>1</artifactNumToKeep> |
---|
88 | </logRotator> | 88 | </logRotator> |
---|
... |
| ... |
|
---|
138 | <hudson.model.StringParameterDefinition> | 138 | <hudson.model.StringParameterDefinition> |
---|
139 | <name>MVN_ADDITIONAL_OPTS</name> | 139 | <name>MVN_ADDITIONAL_OPTS</name> |
---|
140 | <description>For instance: "-pl nuxeo-common", "-pl -:nuxeo-distribution-dm-webdriver-tests", "-rf somemodule", "-N", "-DskipTests=true", "-DskipITs=true", "-Dskip.surefire.tests=true", "-Dmaven.test.failure.ignore=true"... | 140 | <description>For instance: "-pl nuxeo-common", "-pl -:nuxeo-distribution-dm-webdriver-tests", "-rf somemodule", "-N", "-DskipTests=true", "-DskipITs=true", "-Dskip.surefire.tests=true", "-Dmaven.test.failure.ignore=true"... |
---|
141 | Default includes "-fae" (fail at end): fail after the whole build (though skipping modules which dependencies build have failed) instead of fail at first error.</description> | 141 | Default is "-fae" (fail at end): fail after the whole build (though skipping modules which dependencies build have failed) instead of fail at first error.</description> |
---|
142 | <defaultValue>-fae -nsu -Dnuxeo.tests.random.mode=bypass</defaultValue> | 142 | <defaultValue>-fae -nsu -Dnuxeo.tests.random.mode=bypass</defaultValue> |
---|
143 | </hudson.model.StringParameterDefinition> | 143 | </hudson.model.StringParameterDefinition> |
---|
144 | <hudson.model.StringParameterDefinition> | 144 | <hudson.model.StringParameterDefinition> |
---|
... |
| ... |
|
---|
172 | <builders> | 172 | <builders> |
---|
173 | <hudson.tasks.Shell> | 173 | <hudson.tasks.Shell> |
---|
174 | <command>#!/bin/bash -xe | 174 | <command>#!/bin/bash -xe |
---|
|
| 175 | which -a java mvn |
---|
|
| 176 | java -version |
---|
|
| 177 | mvn -V --version |
---|
|
| 178 |
|
---|
175 | [[ "\$BRANCH" != "\${BRANCH//[^A-Za-z0-9-_.\\/]/}" ]] && echo "[WARNING] BRANCH name with invalid characters: \$(echo \$BRANCH|cat -v)" >&2 || echo "BRANCH name check: OK" | 179 | [[ "\$BRANCH" != "\${BRANCH//[^A-Za-z0-9-_.\\/]/}" ]] && echo "[WARNING] BRANCH name with invalid characters: \$(echo \$BRANCH|cat -v)" >&2 || echo "BRANCH name check: OK" |
---|
176 | BRANCH=\${BRANCH//[^A-Za-z0-9-_.\\/]/} | 180 | BRANCH=\${BRANCH//[^A-Za-z0-9-_.\\/]/} |
---|
177 | START=\$(date +%s) | 181 | START=\$(date +%s) |
---|
... |
| ... |
|
---|
210 | echo "\$(date +%s)" >\$WORKSPACE/.ci-metrics-mavenstart</command> | 214 | echo "\$(date +%s)" >\$WORKSPACE/.ci-metrics-mavenstart</command> |
---|
211 | </hudson.tasks.Shell> | 215 | </hudson.tasks.Shell> |
---|
212 | <hudson.tasks.Maven> | 216 | <hudson.tasks.Maven> |
---|
213 | <targets>\$MVN_TARGETS -Paddons,distrib \$PROFILES \$MVN_ADDITIONAL_OPTS</targets> | 217 | <targets>-V \$MVN_TARGETS -Paddons,distrib \$PROFILES \$MVN_ADDITIONAL_OPTS</targets> |
---|
214 | <mavenName>${maven?.name}</mavenName> | 218 | <mavenName>${maven?.name}</mavenName> |
---|
215 | <jvmOptions>-Xms1024m -Xmx4096m ${(jdk?.name && jdk.name!="java-8-oracle")?"-XX:MaxPermSize=2048m":""}</jvmOptions> | 219 | <jvmOptions>-Xms1024m -Xmx4096m ${jdk?.name?.startsWith("java-7")?"-XX:MaxPermSize=2048m":""}</jvmOptions> |
---|
216 | <usePrivateRepository>true</usePrivateRepository> | 220 | <usePrivateRepository>true</usePrivateRepository> |
---|
217 | <settings class="jenkins.mvn.DefaultSettingsProvider"/> | 221 | <settings class="jenkins.mvn.DefaultSettingsProvider"/> |
---|
218 | <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/> | 222 | <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/> |
---|