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