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