Prioritize MAVEN_PARAMS to override OPTIONS
[releng/global-jjb.git] / .jjb-test / expected-xml / gerrit-maven-maven-clm-master
1 <?xml version="1.0" encoding="utf-8"?>
2 <project>
3   <jdk>openjdk8</jdk>
4   <actions/>
5   <description>&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
6   <keepDependencies>false</keepDependencies>
7   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
8   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
9   <concurrentBuild>false</concurrentBuild>
10   <assignedNode>build-vm</assignedNode>
11   <canRoam>false</canRoam>
12   <properties>
13     <jenkins.model.BuildDiscarderProperty>
14       <strategy class="hudson.tasks.LogRotator">
15         <daysToKeep>30</daysToKeep>
16         <numToKeep>-1</numToKeep>
17         <artifactDaysToKeep>-1</artifactDaysToKeep>
18         <artifactNumToKeep>0</artifactNumToKeep>
19       </strategy>
20     </jenkins.model.BuildDiscarderProperty>
21     <hudson.model.ParametersDefinitionProperty>
22       <parameterDefinitions>
23         <hudson.model.StringParameterDefinition>
24           <name>PROJECT</name>
25           <description>Parameter to identify a Gerrit project. This is typically the
26 project repo path as exists in Gerrit.
27 For example: ofextensions/circuitsw
28 </description>
29           <defaultValue>releng/ciman</defaultValue>
30         </hudson.model.StringParameterDefinition>
31         <hudson.model.StringParameterDefinition>
32           <name>STREAM</name>
33           <description>Stream is often set to the same name as 'branch' but can
34 sometimes be used as a name representing a project's release code
35 name.
36 </description>
37           <defaultValue>master</defaultValue>
38         </hudson.model.StringParameterDefinition>
39         <hudson.model.StringParameterDefinition>
40           <name>GERRIT_PROJECT</name>
41           <description>Parameter to identify Gerrit project. This is typically the
42 project repo path as exists in Gerrit.
43 For example: ofextensions/circuitsw
44
45 Note that Gerrit will override this parameter automatically if a
46 job is triggered by Gerrit.
47 </description>
48           <defaultValue>releng/ciman</defaultValue>
49         </hudson.model.StringParameterDefinition>
50         <hudson.model.StringParameterDefinition>
51           <name>GERRIT_BRANCH</name>
52           <description>Parameter to identify a Gerrit branch.
53
54 Note that Gerrit will override this parameter automatically if a
55 job is triggered by Gerrit.
56 </description>
57           <defaultValue>master</defaultValue>
58         </hudson.model.StringParameterDefinition>
59         <hudson.model.StringParameterDefinition>
60           <name>GERRIT_REFSPEC</name>
61           <description>Parameter to identify a refspec when pulling from Gerrit.
62
63 Note that Gerrit will override this parameter automatically if a
64 job is triggered by Gerrit.
65 </description>
66           <defaultValue>refs/heads/master</defaultValue>
67         </hudson.model.StringParameterDefinition>
68         <hudson.model.StringParameterDefinition>
69           <name>LFTOOLS_VERSION</name>
70           <description>Version of lftools to install. Can be a specific version like
71 '0.6.0' or a PEP-440 definition.
72 https://www.python.org/dev/peps/pep-0440/
73 For example '&lt;1.0.0' or '&gt;=1.0.0,&lt;2.0.0'.
74 </description>
75           <defaultValue>&lt;1.0.0</defaultValue>
76         </hudson.model.StringParameterDefinition>
77         <hudson.model.StringParameterDefinition>
78           <name>M2_HOME</name>
79           <description>Maven selector to be used by shell scripts</description>
80           <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
81         </hudson.model.StringParameterDefinition>
82         <hudson.model.StringParameterDefinition>
83           <name>MAVEN_OPTS</name>
84           <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
85 </description>
86           <defaultValue/>
87         </hudson.model.StringParameterDefinition>
88         <hudson.model.StringParameterDefinition>
89           <name>MAVEN_PARAMS</name>
90           <description>Maven parameters to pass to the mvn command.
91 </description>
92           <defaultValue/>
93         </hudson.model.StringParameterDefinition>
94         <hudson.model.StringParameterDefinition>
95           <name>MVN</name>
96           <description>Maven selector to be used by shell scripts</description>
97           <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn</defaultValue>
98         </hudson.model.StringParameterDefinition>
99         <hudson.model.StringParameterDefinition>
100           <name>STAGING_PROFILE_ID</name>
101           <description>Nexus staging profile ID.
102 </description>
103           <defaultValue>uuddlrlrba</defaultValue>
104         </hudson.model.StringParameterDefinition>
105         <hudson.model.StringParameterDefinition>
106           <name>ARCHIVE_ARTIFACTS</name>
107           <description>Artifacts to archive to the logs server.</description>
108           <defaultValue/>
109         </hudson.model.StringParameterDefinition>
110       </parameterDefinitions>
111     </hudson.model.ParametersDefinitionProperty>
112   </properties>
113   <scm class="hudson.plugins.git.GitSCM">
114     <configVersion>2</configVersion>
115     <userRemoteConfigs>
116       <hudson.plugins.git.UserRemoteConfig>
117         <name>origin</name>
118         <refspec>$GERRIT_REFSPEC</refspec>
119         <url>$GIT_URL/$PROJECT</url>
120         <credentialsId>test-credential</credentialsId>
121       </hudson.plugins.git.UserRemoteConfig>
122     </userRemoteConfigs>
123     <branches>
124       <hudson.plugins.git.BranchSpec>
125         <name>refs/heads/$GERRIT_BRANCH</name>
126       </hudson.plugins.git.BranchSpec>
127     </branches>
128     <excludedUsers/>
129     <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
130     <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
131     <authorOrCommitter>false</authorOrCommitter>
132     <wipeOutWorkspace>true</wipeOutWorkspace>
133     <pruneBranches>false</pruneBranches>
134     <remotePoll>false</remotePoll>
135     <gitTool>Default</gitTool>
136     <submoduleCfg class="list"/>
137     <relativeTargetDir/>
138     <reference/>
139     <gitConfigName/>
140     <gitConfigEmail/>
141     <skipTag>true</skipTag>
142     <scmName/>
143     <useShallowClone>false</useShallowClone>
144     <ignoreNotifyCommit>false</ignoreNotifyCommit>
145     <extensions>
146       <hudson.plugins.git.extensions.impl.SubmoduleOption>
147         <disableSubmodules>false</disableSubmodules>
148         <recursiveSubmodules>true</recursiveSubmodules>
149         <trackingSubmodules>false</trackingSubmodules>
150         <reference/>
151         <timeout>10</timeout>
152       </hudson.plugins.git.extensions.impl.SubmoduleOption>
153       <hudson.plugins.git.extensions.impl.WipeWorkspace/>
154     </extensions>
155   </scm>
156   <triggers class="vector">
157     <hudson.triggers.TimerTrigger>
158       <spec>H H * * 6</spec>
159     </hudson.triggers.TimerTrigger>
160   </triggers>
161   <builders>
162     <hudson.tasks.Shell>
163       <command>echo &quot;quiet=on&quot; &gt; &quot;$HOME/.wgetrc&quot;</command>
164     </hudson.tasks.Shell>
165     <hudson.tasks.Maven>
166       <targets>--version</targets>
167       <properties/>
168       <mavenName>mvn33</mavenName>
169       <usePrivateRepository>false</usePrivateRepository>
170       <settings class="jenkins.mvn.DefaultSettingsProvider"/>
171       <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
172     </hudson.tasks.Maven>
173     <hudson.tasks.Shell>
174       <command>rm &quot;$HOME/.wgetrc&quot;</command>
175     </hudson.tasks.Shell>
176     <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
177       <managedFiles>
178         <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
179           <fileId>global-settings</fileId>
180           <targetLocation/>
181           <variable>GLOBAL_SETTINGS_FILE</variable>
182         </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
183         <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
184           <fileId>gerrit-maven-project-settings</fileId>
185           <targetLocation/>
186           <variable>SETTINGS_FILE</variable>
187         </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
188       </managedFiles>
189     </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
190     <hudson.tasks.Shell>
191       <command>#!/bin/bash
192 # SPDX-License-Identifier: EPL-1.0
193 ##############################################################################
194 # Copyright (c) 2017 The Linux Foundation and others.
195 #
196 # All rights reserved. This program and the accompanying materials
197 # are made available under the terms of the Eclipse Public License v1.0
198 # which accompanies this distribution, and is available at
199 # http://www.eclipse.org/legal/epl-v10.html
200 ##############################################################################
201
202 # This file contains a list of variables that are generally useful in many
203 # scripts. It is meant to be sourced in other scripts so that the variables can
204 # be called.
205
206 MAVEN_OPTIONS=&quot;$(echo --show-version \
207     --batch-mode \
208     -Djenkins \
209     -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
210     -Dmaven.repo.local=/tmp/r \
211     -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)&quot;
212 echo &quot;$MAVEN_OPTIONS&quot;
213
214 #!/bin/bash
215 # SPDX-License-Identifier: EPL-1.0
216 ##############################################################################
217 # Copyright (c) 2017 The Linux Foundation and others.
218 #
219 # All rights reserved. This program and the accompanying materials
220 # are made available under the terms of the Eclipse Public License v1.0
221 # which accompanies this distribution, and is available at
222 # http://www.eclipse.org/legal/epl-v10.html
223 ##############################################################################
224
225 # This script builds a Maven project and deploys it into a staging repo which
226 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
227
228 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
229 # Ensure we fail the job if any steps fail.
230 set -e -o pipefail
231 set +u
232
233 export MAVEN_OPTS
234
235 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
236 # shellcheck disable=SC2086
237 $MVN clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index \
238     --global-settings &quot;$GLOBAL_SETTINGS_FILE&quot; \
239     --settings &quot;$SETTINGS_FILE&quot; \
240     -DaltDeploymentRepository=staging::default::file:&quot;$WORKSPACE&quot;/m2repo \
241     $MAVEN_OPTIONS $MAVEN_PARAMS
242 </command>
243     </hudson.tasks.Shell>
244     <hudson.tasks.Shell>
245       <command>#!/bin/bash
246 set +e  # DO NOT cause build failure if any of the rm calls fail.
247
248 rm &quot;$GLOBAL_SETTINGS_FILE&quot; &quot;$SETTINGS_FILE&quot;
249
250 # In some cases we use the lf-provide-maven-settings macro to produce
251 # a &quot;$HOME/.netrc&quot; file containing credentials. Remove that file here
252 # too if it exists.
253 rm &quot;$HOME/.netrc&quot;
254
255 # DO NOT fail build if any of the above lines fail.
256 exit 0
257 </command>
258     </hudson.tasks.Shell>
259     <hudson.tasks.Shell>
260       <command>find . -regex &quot;.*karaf/target&quot; | xargs rm -rf</command>
261     </hudson.tasks.Shell>
262     <com.sonatype.insight.ci.hudson.PreBuildScan plugin="sonatype-clm-ci">
263       <applicationSelectType>
264         <value>list</value>
265         <applicationId>gerrit-maven</applicationId>
266       </applicationSelectType>
267       <pathConfig>
268         <scanTargets/>
269         <moduleExcludes/>
270         <scanProperties/>
271       </pathConfig>
272       <failOnClmServerFailures>false</failOnClmServerFailures>
273       <stageId>build</stageId>
274       <username/>
275       <password/>
276     </com.sonatype.insight.ci.hudson.PreBuildScan>
277   </builders>
278   <publishers>
279     <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
280       <buildSteps>
281         <hudson.tasks.Shell>
282           <command>#!/bin/bash
283 # SPDX-License-Identifier: EPL-1.0
284 ##############################################################################
285 # Copyright (c) 2017 The Linux Foundation and others.
286 #
287 # All rights reserved. This program and the accompanying materials
288 # are made available under the terms of the Eclipse Public License v1.0
289 # which accompanies this distribution, and is available at
290 # http://www.eclipse.org/legal/epl-v10.html
291 ##############################################################################
292 echo &quot;---&gt; sysstat.sh&quot;
293 set +e  # DON'T fail build if script fails.
294
295 OS=$(facter operatingsystem)
296 case &quot;$OS&quot; in
297     Ubuntu)
298         SYSSTAT_PATH=&quot;/var/log/sysstat&quot;
299
300         # Dont run the script when systat is not enabled by default
301         if ! grep --quiet 'ENABLED=&quot;true&quot;' &quot;/etc/default/sysstat&quot;; then
302             exit 0
303         fi
304     ;;
305     CentOS|RedHat)
306         SYSSTAT_PATH=&quot;/var/log/sa&quot;
307     ;;
308     *)
309         # nothing to do
310         exit 0
311     ;;
312 esac
313
314 SAR_DIR=&quot;$WORKSPACE/archives/sar-reports&quot;
315 mkdir -p &quot;$SAR_DIR&quot;
316 cp &quot;$SYSSTAT_PATH/&quot;* &quot;$_&quot;
317 # convert sar data to ascii format
318 while IFS=&quot;&quot; read -r sarfilenum
319 do
320     [ -f &quot;$sarfilenum&quot; ] &amp;&amp; LC_TIME=POSIX sar -A -f &quot;$sarfilenum&quot; &gt; &quot;$SAR_DIR/sar${sarfilenum//[!0-9]/}&quot;
321 done &lt; &lt;(find &quot;$SYSSTAT_PATH&quot; -name &quot;sa[0-9]*&quot; || true)
322
323 # DON'T fail build if script fails.
324 exit 0
325 </command>
326         </hudson.tasks.Shell>
327         <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
328           <managedFiles>
329             <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
330               <fileId>jenkins-log-archives-settings</fileId>
331               <targetLocation/>
332               <variable>SETTINGS_FILE</variable>
333             </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
334           </managedFiles>
335         </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
336         <EnvInjectBuilder>
337           <info>
338             <propertiesContent>SERVER_ID=logs</propertiesContent>
339           </info>
340         </EnvInjectBuilder>
341         <hudson.tasks.Shell>
342           <command>#!/bin/bash
343 # SPDX-License-Identifier: EPL-1.0
344 ##############################################################################
345 # Copyright (c) 2017 The Linux Foundation and others.
346 #
347 # All rights reserved. This program and the accompanying materials
348 # are made available under the terms of the Eclipse Public License v1.0
349 # which accompanies this distribution, and is available at
350 # http://www.eclipse.org/legal/epl-v10.html
351 ##############################################################################
352 echo &quot;---&gt; create-netrc.sh&quot;
353
354 # Ensure we fail the job if any steps fail.
355 set -eu -o pipefail
356
357 NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
358 CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
359     -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
360     -v x:username -o &quot;:&quot; -v x:password \
361     &quot;$SETTINGS_FILE&quot;)
362
363 machine=$(echo &quot;$NEXUS_URL&quot; | awk -F/ '{print $3}')
364 user=$(echo &quot;$CREDENTIAL&quot; | cut -f1 -d:)
365 pass=$(echo &quot;$CREDENTIAL&quot; | cut -f2 -d:)
366
367 echo &quot;machine ${machine%:*} login $user password $pass&quot; &gt; ~/.netrc
368 </command>
369         </hudson.tasks.Shell>
370         <hudson.tasks.Shell>
371           <command>#!/bin/bash
372 # SPDX-License-Identifier: EPL-1.0
373 ##############################################################################
374 # Copyright (c) 2017 The Linux Foundation and others.
375 #
376 # All rights reserved. This program and the accompanying materials
377 # are made available under the terms of the Eclipse Public License v1.0
378 # which accompanies this distribution, and is available at
379 # http://www.eclipse.org/legal/epl-v10.html
380 ##############################################################################
381 echo &quot;---&gt; lftools-install.sh&quot;
382
383 # Script to install lftools via a version passed in via lf-infra-parameters
384 #
385 # Required parameters:
386 #
387 #     LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
388 #                      set to a strict version number like '1.2.3' or using
389 #                      PEP-440 definitions.
390 #
391 #                      Examples:
392 #                          &lt;1.0.0
393 #                          &gt;=1.0.0,&lt;2.0.0
394 #
395 # By default a released version of lftools should always be used.
396 # The purpose of the 2 variables below is so that lftools devs can test
397 # unreleased versions of lftools. There are 2 methods to install a dev version
398 # of lftools:
399 #
400 #     1) gerrit patch: Used to test a patch that has not yet been merged.
401 #                      To do this set something like this:
402 #                          LFTOOLS_MODE=gerrit
403 #                          LFTOOLS_REFSPEC=refs/changes/96/5296/7
404 #
405 #     2) git branch: Used to install an lftools version from a specific branch.
406 #                    To use this set the variables as follows:
407 #                          LFTOOLS_MODE=git
408 #                          LFTOOLS_REFSPEC=master
409 #
410 #     3) release : The intended use case and default setting.
411 #                  Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
412
413 LFTOOLS_MODE=release  # release | git | gerrit
414 LFTOOLS_REFSPEC=master
415
416 # Ensure we fail the job if any steps fail.
417 # DO NOT set -u as virtualenv's activate script has unbound variables
418 set -e -o pipefail
419
420 virtualenv --quiet &quot;/tmp/v/lftools&quot;
421 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
422 source &quot;/tmp/v/lftools/bin/activate&quot;
423 pip install --quiet --upgrade pip
424
425 case $LFTOOLS_MODE in
426     gerrit)
427         git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
428         pushd /tmp/lftools
429         git fetch origin &quot;$LFTOOLS_REFSPEC&quot;
430         git checkout FETCH_HEAD
431         pip install --quiet --upgrade -r requirements.txt
432         pip install --quiet --upgrade -e .
433         popd
434         ;;
435
436     git)
437         pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@&quot;$BRANCH&quot;
438         ;;
439
440     release)
441         if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
442             LFTOOLS_VERSION=&quot;==$LFTOOLS_VERSION&quot;
443         fi
444
445         pip install --quiet --upgrade &quot;lftools${LFTOOLS_VERSION}&quot;
446         ;;
447 esac
448
449 lftools --version
450
451 # pipdeptree prints out a lot of information because lftools pulls in many
452 # dependencies. Let's only print it if we want to debug.
453 # echo &quot;----&gt; Pip Dependency Tree&quot;
454 # pip install --quiet --upgrade pipdeptree
455 # pipdeptree
456
457 #!/bin/bash
458 # SPDX-License-Identifier: EPL-1.0
459 ##############################################################################
460 # Copyright (c) 2017 The Linux Foundation and others.
461 #
462 # All rights reserved. This program and the accompanying materials
463 # are made available under the terms of the Eclipse Public License v1.0
464 # which accompanies this distribution, and is available at
465 # http://www.eclipse.org/legal/epl-v10.html
466 ##############################################################################
467 echo &quot;---&gt; logs-deploy.sh&quot;
468
469 # Ensure we fail the job if any steps fail.
470 set -eu -o pipefail
471
472 set -x  # Trace commands for this script to make debugging easier.
473
474 ARCHIVE_ARTIFACTS=&quot;${ARCHIVE_ARTIFACTS:-}&quot;
475 LOGS_SERVER=&quot;${LOGS_SERVER:-None}&quot;
476
477 if [ &quot;${LOGS_SERVER}&quot; == 'None' ]
478 then
479     set +x # Disable trace since we no longer need it
480
481     echo &quot;WARNING: Logging server not set&quot;
482 else
483     NEXUS_URL=&quot;${NEXUSPROXY:-$NEXUS_URL}&quot;
484     NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
485     BUILD_URL=&quot;${BUILD_URL}&quot;
486
487     lftools deploy archives -p &quot;$ARCHIVE_ARTIFACTS&quot; &quot;$NEXUS_URL&quot; &quot;$NEXUS_PATH&quot; &quot;$WORKSPACE&quot;
488     lftools deploy logs &quot;$NEXUS_URL&quot; &quot;$NEXUS_PATH&quot; &quot;$BUILD_URL&quot;
489
490     set +x  # Disable trace since we no longer need it.
491
492     echo &quot;Build logs: &lt;a href=\&quot;$LOGS_SERVER/$NEXUS_PATH\&quot;&gt;$LOGS_SERVER/$NEXUS_PATH&lt;/a&gt;&quot;
493 fi
494 </command>
495         </hudson.tasks.Shell>
496         <hudson.tasks.Shell>
497           <command>#!/bin/bash
498 # SPDX-License-Identifier: EPL-1.0
499 ##############################################################################
500 # Copyright (c) 2017 The Linux Foundation and others.
501 #
502 # All rights reserved. This program and the accompanying materials
503 # are made available under the terms of the Eclipse Public License v1.0
504 # which accompanies this distribution, and is available at
505 # http://www.eclipse.org/legal/epl-v10.html
506 ##############################################################################
507
508 # Clear log credential files
509 rm &quot;$SETTINGS_FILE&quot;
510 rm ~/.netrc
511 </command>
512         </hudson.tasks.Shell>
513         <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
514           <regexp>^Build logs: .*</regexp>
515         </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
516       </buildSteps>
517       <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
518       <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
519       <markBuildUnstable>false</markBuildUnstable>
520     </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
521     <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
522       <patterns>
523         <hudson.plugins.ws__cleanup.Pattern>
524           <pattern>**/*.jenkins-trigger</pattern>
525           <type>EXCLUDE</type>
526         </hudson.plugins.ws__cleanup.Pattern>
527       </patterns>
528       <deleteDirs>false</deleteDirs>
529       <cleanupMatrixParent>false</cleanupMatrixParent>
530       <externalDelete/>
531       <cleanWhenSuccess>true</cleanWhenSuccess>
532       <cleanWhenUnstable>true</cleanWhenUnstable>
533       <cleanWhenFailure>true</cleanWhenFailure>
534       <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
535       <cleanWhenAborted>true</cleanWhenAborted>
536       <notFailBuild>true</notFailBuild>
537     </hudson.plugins.ws__cleanup.WsCleanup>
538   </publishers>
539   <buildWrappers>
540     <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
541     <hudson.plugins.build__timeout.BuildTimeoutWrapper>
542       <timeoutMinutes>30</timeoutMinutes>
543       <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
544       <failBuild>true</failBuild>
545       <writingDescription>false</writingDescription>
546       <timeoutPercentage>0</timeoutPercentage>
547       <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
548       <timeoutType>absolute</timeoutType>
549     </hudson.plugins.build__timeout.BuildTimeoutWrapper>
550     <hudson.plugins.timestamper.TimestamperBuildWrapper/>
551     <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
552       <user>test-credential</user>
553     </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
554     <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
555     <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
556       <managedFiles>
557         <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
558           <fileId>npmrc</fileId>
559           <targetLocation>$HOME/.npmrc</targetLocation>
560           <variable/>
561         </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
562       </managedFiles>
563     </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>
564   </buildWrappers>
565 </project>