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