118266cfe5987f109df3ac110d7a4958a4b52081
[releng/global-jjb.git] / jjb-test / expected-xml / gerrit-maven-maven-verify-master-mvn33-openjdk8
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>7</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/>
67         </hudson.model.StringParameterDefinition>
68         <hudson.model.StringParameterDefinition>
69           <name>MAVEN_OPTS</name>
70           <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
71 </description>
72           <defaultValue/>
73         </hudson.model.StringParameterDefinition>
74         <hudson.model.StringParameterDefinition>
75           <name>MAVEN_PARAMS</name>
76           <description>Maven parameters to pass to the mvn command.
77 </description>
78           <defaultValue>-Dstream=$STREAM</defaultValue>
79         </hudson.model.StringParameterDefinition>
80         <hudson.model.StringParameterDefinition>
81           <name>MVN</name>
82           <description>Maven selector to be used by shell scripts</description>
83           <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn</defaultValue>
84         </hudson.model.StringParameterDefinition>
85         <hudson.model.StringParameterDefinition>
86           <name>STAGING_PROFILE_ID</name>
87           <description>Nexus staging profile ID.
88 </description>
89           <defaultValue>uuddlrlrba</defaultValue>
90         </hudson.model.StringParameterDefinition>
91       </parameterDefinitions>
92     </hudson.model.ParametersDefinitionProperty>
93   </properties>
94   <scm class="hudson.plugins.git.GitSCM">
95     <configVersion>2</configVersion>
96     <userRemoteConfigs>
97       <hudson.plugins.git.UserRemoteConfig>
98         <name>origin</name>
99         <refspec>$GERRIT_REFSPEC</refspec>
100         <url>$GIT_URL/$PROJECT</url>
101         <credentialsId>test-credential</credentialsId>
102       </hudson.plugins.git.UserRemoteConfig>
103     </userRemoteConfigs>
104     <branches>
105       <hudson.plugins.git.BranchSpec>
106         <name>refs/heads/$GERRIT_BRANCH</name>
107       </hudson.plugins.git.BranchSpec>
108     </branches>
109     <excludedUsers/>
110     <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
111     <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
112     <authorOrCommitter>false</authorOrCommitter>
113     <wipeOutWorkspace>true</wipeOutWorkspace>
114     <pruneBranches>false</pruneBranches>
115     <remotePoll>false</remotePoll>
116     <gitTool>Default</gitTool>
117     <submoduleCfg class="list"/>
118     <relativeTargetDir/>
119     <reference/>
120     <gitConfigName/>
121     <gitConfigEmail/>
122     <skipTag>true</skipTag>
123     <scmName/>
124     <useShallowClone>false</useShallowClone>
125     <ignoreNotifyCommit>false</ignoreNotifyCommit>
126     <extensions>
127       <hudson.plugins.git.extensions.impl.SubmoduleOption>
128         <disableSubmodules>false</disableSubmodules>
129         <recursiveSubmodules>true</recursiveSubmodules>
130         <trackingSubmodules>false</trackingSubmodules>
131         <reference/>
132         <timeout>10</timeout>
133       </hudson.plugins.git.extensions.impl.SubmoduleOption>
134       <hudson.plugins.git.extensions.impl.WipeWorkspace/>
135     </extensions>
136   </scm>
137   <triggers class="vector">
138     <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
139       <spec/>
140       <gerritProjects>
141         <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
142           <compareType>ANT</compareType>
143           <pattern>releng/ciman</pattern>
144           <branches>
145             <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
146               <compareType>ANT</compareType>
147               <pattern>**/master</pattern>
148             </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
149           </branches>
150           <filePaths>
151             <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
152               <compareType>ANT</compareType>
153               <pattern>**</pattern>
154             </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
155           </filePaths>
156           <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
157         </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
158       </gerritProjects>
159       <skipVote>
160         <onSuccessful>false</onSuccessful>
161         <onFailed>false</onFailed>
162         <onUnstable>false</onUnstable>
163         <onNotBuilt>false</onNotBuilt>
164       </skipVote>
165       <silentMode>false</silentMode>
166       <silentStartMode>false</silentStartMode>
167       <escapeQuotes>true</escapeQuotes>
168       <noNameAndEmailParameters>false</noNameAndEmailParameters>
169       <readableMessage>false</readableMessage>
170       <dependencyJobsNames/>
171       <notificationLevel/>
172       <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
173       <triggerConfigURL/>
174       <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
175       <triggerOnEvents>
176         <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
177           <excludeDrafts>false</excludeDrafts>
178           <excludeTrivialRebase>false</excludeTrivialRebase>
179           <excludeNoCodeChange>false</excludeNoCodeChange>
180         </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
181         <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
182         <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
183           <commentAddedCommentContains>recheck$</commentAddedCommentContains>
184         </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
185       </triggerOnEvents>
186       <buildStartMessage/>
187       <buildFailureMessage/>
188       <buildSuccessfulMessage/>
189       <buildUnstableMessage/>
190       <buildNotBuiltMessage/>
191       <buildUnsuccessfulFilepath/>
192       <customUrl/>
193       <serverName>test-server</serverName>
194     </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
195   </triggers>
196   <builders>
197     <hudson.tasks.Shell>
198       <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
199     </hudson.tasks.Shell>
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 echo &quot;---&gt; lftools-install.sh&quot;
240
241 # Ensure we fail the job if any steps fail.
242 # DO NOT set -u as virtualenv's activate script has unbound variables
243 set -e -o pipefail
244
245 virtualenv --quiet &quot;/tmp/v/lftools&quot;
246 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
247 source &quot;/tmp/v/lftools/bin/activate&quot;
248 pip install --quiet --upgrade pip
249 pip install --quiet --upgrade &quot;lftools&lt;1.0.0&quot;
250
251 # pipdeptree prints out a lot of information because lftools pulls in many
252 # dependencies. Let's only print it if we want to debug.
253 # echo &quot;----&gt; Pip Dependency Tree&quot;
254 # pip install --quiet --upgrade pipdeptree
255 # pipdeptree
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 # This file contains a list of variables that are generally useful in many
269 # scripts. It is meant to be sourced in other scripts so that the variables can
270 # be called.
271
272 MAVEN_OPTIONS=&quot;$(echo --show-version \
273     --batch-mode \
274     -Djenkins \
275     -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
276     -Dmaven.repo.local=/tmp/r \
277     -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)&quot;
278 echo &quot;$MAVEN_OPTIONS&quot;
279
280 #!/bin/bash
281 # SPDX-License-Identifier: EPL-1.0
282 ##############################################################################
283 # Copyright (c) 2017 The Linux Foundation and others.
284 #
285 # All rights reserved. This program and the accompanying materials
286 # are made available under the terms of the Eclipse Public License v1.0
287 # which accompanies this distribution, and is available at
288 # http://www.eclipse.org/legal/epl-v10.html
289 ##############################################################################
290
291 # This script builds a Maven project and deploys it into a staging repo which
292 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
293
294 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
295 # Ensure we fail the job if any steps fail.
296 set -e -o pipefail
297 set +u
298
299 export MAVEN_OPTS
300
301 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
302 # shellcheck disable=SC2086
303 $MVN clean deploy \
304     --global-settings &quot;$GLOBAL_SETTINGS_FILE&quot; \
305     --settings &quot;$SETTINGS_FILE&quot; \
306     -DaltDeploymentRepository=staging::default::file:&quot;$WORKSPACE&quot;/m2repo \
307     $MAVEN_PARAMS $MAVEN_OPTIONS
308 </command>
309     </hudson.tasks.Shell>
310     <hudson.tasks.Shell>
311       <command>#!/bin/bash
312 set +e  # DO NOT cause build failure if any of the rm calls fail.
313
314 rm &quot;$GLOBAL_SETTINGS_FILE&quot; &quot;$SETTINGS_FILE&quot;
315
316 # In some cases we use the lf-provide-maven-settings macro to produce
317 # a &quot;$HOME/.netrc&quot; file containing credentials. Remove that file here
318 # too if it exists.
319 rm &quot;$HOME/.netrc&quot;
320
321 # DO NOT fail build if any of the above lines fail.
322 exit 0
323 </command>
324     </hudson.tasks.Shell>
325   </builders>
326   <publishers>
327     <hudson.plugins.findbugs.FindBugsPublisher plugin="findbugs">
328       <isRankActivated>false</isRankActivated>
329       <includePattern/>
330       <excludePattern/>
331       <healthy/>
332       <unHealthy/>
333       <thresholdLimit>low</thresholdLimit>
334       <pluginName>[FINDBUGS] </pluginName>
335       <defaultEncoding/>
336       <canRunOnFailed>false</canRunOnFailed>
337       <useStableBuildAsReference>false</useStableBuildAsReference>
338       <usePreviousBuildAsReference>false</usePreviousBuildAsReference>
339       <useDeltaValues>false</useDeltaValues>
340       <thresholds>
341         <unstableTotalAll/>
342         <unstableTotalHigh/>
343         <unstableTotalNormal/>
344         <unstableTotalLow/>
345         <failedTotalAll/>
346         <failedTotalHigh/>
347         <failedTotalNormal/>
348         <failedTotalLow/>
349       </thresholds>
350       <shouldDetectModules>false</shouldDetectModules>
351       <dontComputeNew>true</dontComputeNew>
352       <doNotResolveRelativePaths>false</doNotResolveRelativePaths>
353       <pattern/>
354     </hudson.plugins.findbugs.FindBugsPublisher>
355     <hudson.plugins.jacoco.JacocoPublisher>
356       <execPattern>**/**.exec</execPattern>
357       <classPattern>**/classes</classPattern>
358       <sourcePattern>**/src/main/java</sourcePattern>
359       <changeBuildStatus/>
360       <inclusionPattern/>
361       <exclusionPattern>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</exclusionPattern>
362       <maximumBranchCoverage>10</maximumBranchCoverage>
363       <minimumBranchCoverage>20</minimumBranchCoverage>
364       <maximumMethodCoverage>50</maximumMethodCoverage>
365       <minimumMethodCoverage>40</minimumMethodCoverage>
366     </hudson.plugins.jacoco.JacocoPublisher>
367     <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
368       <buildSteps>
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; sysstat.sh&quot;
381 set +e  # DON'T fail build if script fails.
382
383 OS=$(facter operatingsystem)
384 case &quot;$OS&quot; in
385     Ubuntu)
386         SYSSTAT_PATH=&quot;/var/log/sysstat&quot;
387
388         # Dont run the script when systat is not enabled by default
389         if ! grep --quiet 'ENABLED=&quot;true&quot;' &quot;/etc/default/sysstat&quot;; then
390             exit 0
391         fi
392     ;;
393     CentOS|RedHat)
394         SYSSTAT_PATH=&quot;/var/log/sa&quot;
395     ;;
396     *)
397         # nothing to do
398         exit 0
399     ;;
400 esac
401
402 SAR_DIR=&quot;$WORKSPACE/archives/sar-reports&quot;
403 mkdir -p &quot;$SAR_DIR&quot;
404 cp &quot;$SYSSTAT_PATH/&quot;* &quot;$_&quot;
405 # convert sar data to ascii format
406 while IFS=&quot;&quot; read -r s
407 do
408     [ -f &quot;$s&quot; ] &amp;&amp; LC_TIME=POSIX sar -A -f &quot;$s&quot; &gt; &quot;$SAR_DIR/sar${s//[!0-9]/}&quot;
409 done &lt; &lt;(find &quot;$SYSSTAT_PATH&quot; -name &quot;sa[0-9]*&quot; || true)
410
411 # DON'T fail build if script fails.
412 exit 0
413 </command>
414         </hudson.tasks.Shell>
415         <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
416           <managedFiles>
417             <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
418               <fileId>jenkins-log-archives-settings</fileId>
419               <targetLocation/>
420               <variable>SETTINGS_FILE</variable>
421             </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
422           </managedFiles>
423         </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
424         <EnvInjectBuilder>
425           <info>
426             <propertiesContent>SERVER_ID=logs</propertiesContent>
427           </info>
428         </EnvInjectBuilder>
429         <hudson.tasks.Shell>
430           <command>#!/bin/bash
431 # SPDX-License-Identifier: EPL-1.0
432 ##############################################################################
433 # Copyright (c) 2017 The Linux Foundation and others.
434 #
435 # All rights reserved. This program and the accompanying materials
436 # are made available under the terms of the Eclipse Public License v1.0
437 # which accompanies this distribution, and is available at
438 # http://www.eclipse.org/legal/epl-v10.html
439 ##############################################################################
440 echo &quot;---&gt; create-netrc.sh&quot;
441
442 # Ensure we fail the job if any steps fail.
443 set -eu -o pipefail
444
445 NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
446 CREDENTIAL=$(xmlstarlet sel -N &quot;x=http://maven.apache.org/SETTINGS/1.0.0&quot; \
447     -t -m &quot;/x:settings/x:servers/x:server[x:id='${SERVER_ID}']&quot; \
448     -v x:username -o &quot;:&quot; -v x:password \
449     &quot;$SETTINGS_FILE&quot;)
450
451 machine=$(echo &quot;$NEXUS_URL&quot; | awk -F/ '{print $3}')
452 user=$(echo &quot;$CREDENTIAL&quot; | cut -f1 -d:)
453 pass=$(echo &quot;$CREDENTIAL&quot; | cut -f2 -d:)
454
455 echo &quot;machine $machine login $user password $pass&quot; &gt; ~/.netrc
456 </command>
457         </hudson.tasks.Shell>
458         <hudson.tasks.Shell>
459           <command>#!/bin/bash
460 # SPDX-License-Identifier: EPL-1.0
461 ##############################################################################
462 # Copyright (c) 2017 The Linux Foundation and others.
463 #
464 # All rights reserved. This program and the accompanying materials
465 # are made available under the terms of the Eclipse Public License v1.0
466 # which accompanies this distribution, and is available at
467 # http://www.eclipse.org/legal/epl-v10.html
468 ##############################################################################
469 echo &quot;---&gt; lftools-install.sh&quot;
470
471 # Ensure we fail the job if any steps fail.
472 # DO NOT set -u as virtualenv's activate script has unbound variables
473 set -e -o pipefail
474
475 virtualenv --quiet &quot;/tmp/v/lftools&quot;
476 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
477 source &quot;/tmp/v/lftools/bin/activate&quot;
478 pip install --quiet --upgrade pip
479 pip install --quiet --upgrade &quot;lftools&lt;1.0.0&quot;
480
481 # pipdeptree prints out a lot of information because lftools pulls in many
482 # dependencies. Let's only print it if we want to debug.
483 # echo &quot;----&gt; Pip Dependency Tree&quot;
484 # pip install --quiet --upgrade pipdeptree
485 # pipdeptree
486
487 #!/bin/bash
488 # SPDX-License-Identifier: EPL-1.0
489 ##############################################################################
490 # Copyright (c) 2017 The Linux Foundation and others.
491 #
492 # All rights reserved. This program and the accompanying materials
493 # are made available under the terms of the Eclipse Public License v1.0
494 # which accompanies this distribution, and is available at
495 # http://www.eclipse.org/legal/epl-v10.html
496 ##############################################################################
497 echo &quot;---&gt; logs-deploy.sh&quot;
498
499 # Ensure we fail the job if any steps fail.
500 set -eu -o pipefail
501
502 set -x  # Trace commands for this script to make debugging easier.
503
504 ARCHIVE_ARTIFACTS=&quot;${ARCHIVE_ARTIFACTS:-}&quot;
505 LOGS_SERVER=&quot;${LOGS_SERVER:-None}&quot;
506
507 if [ &quot;${LOGS_SERVER}&quot; == 'None' ]
508 then
509     set +x # Disable trace since we no longer need it
510
511     echo &quot;WARNING: Logging server not set&quot;
512 else
513     NEXUS_URL=&quot;${NEXUS_URL:-$NEXUSPROXY}&quot;
514     NEXUS_PATH=&quot;${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}&quot;
515     BUILD_URL=&quot;${BUILD_URL}&quot;
516
517     lftools deploy archives -p &quot;$ARCHIVE_ARTIFACTS&quot; &quot;$NEXUS_URL&quot; &quot;$NEXUS_PATH&quot; &quot;$WORKSPACE&quot;
518     lftools deploy logs &quot;$NEXUS_URL&quot; &quot;$NEXUS_PATH&quot; &quot;$BUILD_URL&quot;
519
520     set +x  # Disable trace since we no longer need it.
521
522     echo &quot;Build logs: &lt;a href=\&quot;$LOGS_SERVER/$NEXUS_PATH\&quot;&gt;$LOGS_SERVER/$NEXUS_PATH&lt;/a&gt;&quot;
523 fi
524 </command>
525         </hudson.tasks.Shell>
526         <hudson.tasks.Shell>
527           <command>#!/bin/bash
528 # SPDX-License-Identifier: EPL-1.0
529 ##############################################################################
530 # Copyright (c) 2017 The Linux Foundation and others.
531 #
532 # All rights reserved. This program and the accompanying materials
533 # are made available under the terms of the Eclipse Public License v1.0
534 # which accompanies this distribution, and is available at
535 # http://www.eclipse.org/legal/epl-v10.html
536 ##############################################################################
537
538 # Clear log credential files
539 rm &quot;$SETTINGS_FILE&quot;
540 rm ~/.netrc
541 </command>
542         </hudson.tasks.Shell>
543         <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
544           <regexp>^Build logs: .*</regexp>
545         </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
546       </buildSteps>
547       <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
548       <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
549       <markBuildUnstable>false</markBuildUnstable>
550     </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
551     <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
552       <patterns>
553         <hudson.plugins.ws__cleanup.Pattern>
554           <pattern>**/*.jenkins-trigger</pattern>
555           <type>EXCLUDE</type>
556         </hudson.plugins.ws__cleanup.Pattern>
557       </patterns>
558       <deleteDirs>false</deleteDirs>
559       <cleanupMatrixParent>false</cleanupMatrixParent>
560       <externalDelete/>
561       <cleanWhenSuccess>true</cleanWhenSuccess>
562       <cleanWhenUnstable>true</cleanWhenUnstable>
563       <cleanWhenFailure>true</cleanWhenFailure>
564       <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
565       <cleanWhenAborted>true</cleanWhenAborted>
566       <notFailBuild>true</notFailBuild>
567     </hudson.plugins.ws__cleanup.WsCleanup>
568   </publishers>
569   <buildWrappers>
570     <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
571     <hudson.plugins.build__timeout.BuildTimeoutWrapper>
572       <timeoutMinutes>60</timeoutMinutes>
573       <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
574       <failBuild>true</failBuild>
575       <writingDescription>false</writingDescription>
576       <timeoutPercentage>0</timeoutPercentage>
577       <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
578       <timeoutType>absolute</timeoutType>
579     </hudson.plugins.build__timeout.BuildTimeoutWrapper>
580     <hudson.plugins.timestamper.TimestamperBuildWrapper/>
581     <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
582       <user>test-credential</user>
583     </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
584     <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
585   </buildWrappers>
586 </project>