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