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