1 <?xml version="1.0" encoding="utf-8"?>
5 <description><!-- Managed by Jenkins Job Builder --></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>
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>
20 </jenkins.model.BuildDiscarderProperty>
21 <hudson.model.ParametersDefinitionProperty>
22 <parameterDefinitions>
23 <hudson.model.StringParameterDefinition>
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
29 <defaultValue>releng/ciman</defaultValue>
30 </hudson.model.StringParameterDefinition>
31 <hudson.model.StringParameterDefinition>
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
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
45 Note that Gerrit will override this parameter automatically if a
46 job is triggered by Gerrit.
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.
54 Note that Gerrit will override this parameter automatically if a
55 job is triggered by Gerrit.
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.
63 Note that Gerrit will override this parameter automatically if a
64 job is triggered by Gerrit.
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 '<1.0.0' or '>=1.0.0,<2.0.0'.
75 <defaultValue><1.0.0</defaultValue>
76 </hudson.model.StringParameterDefinition>
77 <hudson.model.StringParameterDefinition>
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
87 </hudson.model.StringParameterDefinition>
88 <hudson.model.StringParameterDefinition>
89 <name>MAVEN_PARAMS</name>
90 <description>Maven parameters to pass to the mvn command.
92 <defaultValue>-Dstream=$STREAM</defaultValue>
93 </hudson.model.StringParameterDefinition>
94 <hudson.model.StringParameterDefinition>
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.
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>
109 </hudson.model.StringParameterDefinition>
110 </parameterDefinitions>
111 </hudson.model.ParametersDefinitionProperty>
113 <scm class="hudson.plugins.git.GitSCM">
114 <configVersion>2</configVersion>
116 <hudson.plugins.git.UserRemoteConfig>
118 <refspec>$GERRIT_REFSPEC</refspec>
119 <url>$GIT_URL/$PROJECT</url>
120 <credentialsId>test-credential</credentialsId>
121 </hudson.plugins.git.UserRemoteConfig>
124 <hudson.plugins.git.BranchSpec>
125 <name>refs/heads/$GERRIT_BRANCH</name>
126 </hudson.plugins.git.BranchSpec>
129 <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
130 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
131 <authorOrCommitter>false</authorOrCommitter>
132 <wipeOutWorkspace>true</wipeOutWorkspace>
133 <pruneBranches>false</pruneBranches>
134 <remotePoll>false</remotePoll>
135 <gitTool>Default</gitTool>
136 <submoduleCfg class="list"/>
141 <skipTag>true</skipTag>
143 <useShallowClone>false</useShallowClone>
144 <ignoreNotifyCommit>false</ignoreNotifyCommit>
146 <hudson.plugins.git.extensions.impl.SubmoduleOption>
147 <disableSubmodules>false</disableSubmodules>
148 <recursiveSubmodules>true</recursiveSubmodules>
149 <trackingSubmodules>false</trackingSubmodules>
151 <timeout>10</timeout>
152 </hudson.plugins.git.extensions.impl.SubmoduleOption>
153 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
156 <triggers class="vector">
157 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
160 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
161 <compareType>ANT</compareType>
162 <pattern>releng/ciman</pattern>
164 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
165 <compareType>ANT</compareType>
166 <pattern>**/master</pattern>
167 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
170 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
171 <compareType>ANT</compareType>
172 <pattern>**</pattern>
173 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
175 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
176 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
179 <onSuccessful>false</onSuccessful>
180 <onFailed>false</onFailed>
181 <onUnstable>false</onUnstable>
182 <onNotBuilt>false</onNotBuilt>
184 <silentMode>false</silentMode>
185 <silentStartMode>false</silentStartMode>
186 <escapeQuotes>true</escapeQuotes>
187 <noNameAndEmailParameters>false</noNameAndEmailParameters>
188 <readableMessage>false</readableMessage>
189 <dependencyJobsNames/>
191 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
193 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
195 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
196 <excludeDrafts>true</excludeDrafts>
197 <excludeTrivialRebase>false</excludeTrivialRebase>
198 <excludeNoCodeChange>false</excludeNoCodeChange>
199 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
200 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
201 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
202 <commentAddedCommentContains>recheck$</commentAddedCommentContains>
203 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
206 <buildFailureMessage/>
207 <buildSuccessfulMessage/>
208 <buildUnstableMessage/>
209 <buildNotBuiltMessage/>
210 <buildUnsuccessfulFilepath/>
212 <serverName>test-server</serverName>
213 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
217 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
218 </hudson.tasks.Shell>
220 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
221 </hudson.tasks.Shell>
223 <targets>--version</targets>
225 <mavenName>mvn33</mavenName>
226 <usePrivateRepository>false</usePrivateRepository>
227 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
228 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
229 </hudson.tasks.Maven>
231 <command>rm "$HOME/.wgetrc"</command>
232 </hudson.tasks.Shell>
233 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
235 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
236 <fileId>global-settings</fileId>
238 <variable>GLOBAL_SETTINGS_FILE</variable>
239 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
240 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
241 <fileId>gerrit-maven-project-settings</fileId>
243 <variable>SETTINGS_FILE</variable>
244 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
246 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
249 # SPDX-License-Identifier: EPL-1.0
250 ##############################################################################
251 # Copyright (c) 2017 The Linux Foundation and others.
253 # All rights reserved. This program and the accompanying materials
254 # are made available under the terms of the Eclipse Public License v1.0
255 # which accompanies this distribution, and is available at
256 # http://www.eclipse.org/legal/epl-v10.html
257 ##############################################################################
258 echo "---> lftools-install.sh"
260 # Script to install lftools via a version passed in via lf-infra-parameters
262 # Required parameters:
264 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
265 # set to a strict version number like '1.2.3' or using
266 # PEP-440 definitions.
270 # >=1.0.0,<2.0.0
272 # By default a released version of lftools should always be used.
273 # The purpose of the 2 variables below is so that lftools devs can test
274 # unreleased versions of lftools. There are 2 methods to install a dev version
277 # 1) gerrit patch: Used to test a patch that has not yet been merged.
278 # To do this set something like this:
279 # LFTOOLS_MODE=gerrit
280 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
282 # 2) git branch: Used to install an lftools version from a specific branch.
283 # To use this set the variables as follows:
285 # LFTOOLS_REFSPEC=master
287 # 3) release : The intended use case and default setting.
288 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
290 LFTOOLS_MODE=release # release | git | gerrit
291 LFTOOLS_REFSPEC=master
293 # Ensure we fail the job if any steps fail.
294 # DO NOT set -u as virtualenv's activate script has unbound variables
297 virtualenv --quiet "/tmp/v/lftools"
298 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
299 source "/tmp/v/lftools/bin/activate"
300 pip install --quiet --upgrade pip
302 case $LFTOOLS_MODE in
304 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
306 git fetch origin "$LFTOOLS_REFSPEC"
307 git checkout FETCH_HEAD
308 pip install --quiet --upgrade -r requirements.txt
309 pip install --quiet --upgrade -e .
314 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
318 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
319 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
322 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
328 # pipdeptree prints out a lot of information because lftools pulls in many
329 # dependencies. Let's only print it if we want to debug.
330 # echo "----> Pip Dependency Tree"
331 # pip install --quiet --upgrade pipdeptree
335 # SPDX-License-Identifier: EPL-1.0
336 ##############################################################################
337 # Copyright (c) 2017 The Linux Foundation and others.
339 # All rights reserved. This program and the accompanying materials
340 # are made available under the terms of the Eclipse Public License v1.0
341 # which accompanies this distribution, and is available at
342 # http://www.eclipse.org/legal/epl-v10.html
343 ##############################################################################
345 # This file contains a list of variables that are generally useful in many
346 # scripts. It is meant to be sourced in other scripts so that the variables can
349 MAVEN_OPTIONS="$(echo --show-version \
352 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
353 -Dmaven.repo.local=/tmp/r \
354 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
355 echo "$MAVEN_OPTIONS"
358 # SPDX-License-Identifier: EPL-1.0
359 ##############################################################################
360 # Copyright (c) 2017 The Linux Foundation and others.
362 # All rights reserved. This program and the accompanying materials
363 # are made available under the terms of the Eclipse Public License v1.0
364 # which accompanies this distribution, and is available at
365 # http://www.eclipse.org/legal/epl-v10.html
366 ##############################################################################
368 # This script builds a Maven project and deploys it into a staging repo which
369 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
371 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
372 # Ensure we fail the job if any steps fail.
378 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
379 # shellcheck disable=SC2086
381 --global-settings "$GLOBAL_SETTINGS_FILE" \
382 --settings "$SETTINGS_FILE" \
383 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
384 $MAVEN_OPTIONS $MAVEN_PARAMS
386 </hudson.tasks.Shell>
389 set +e # DO NOT cause build failure if any of the rm calls fail.
391 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
393 # In some cases we use the lf-provide-maven-settings macro to produce
394 # a "$HOME/.netrc" file containing credentials. Remove that file here
396 rm "$HOME/.netrc"
398 # DO NOT fail build if any of the above lines fail.
401 </hudson.tasks.Shell>
404 <hudson.plugins.findbugs.FindBugsPublisher plugin="findbugs">
405 <isRankActivated>false</isRankActivated>
410 <thresholdLimit>low</thresholdLimit>
411 <pluginName>[FINDBUGS] </pluginName>
413 <canRunOnFailed>false</canRunOnFailed>
414 <useStableBuildAsReference>false</useStableBuildAsReference>
415 <usePreviousBuildAsReference>false</usePreviousBuildAsReference>
416 <useDeltaValues>false</useDeltaValues>
420 <unstableTotalNormal/>
427 <shouldDetectModules>false</shouldDetectModules>
428 <dontComputeNew>true</dontComputeNew>
429 <doNotResolveRelativePaths>false</doNotResolveRelativePaths>
431 </hudson.plugins.findbugs.FindBugsPublisher>
432 <hudson.plugins.jacoco.JacocoPublisher>
433 <execPattern>**/**.exec</execPattern>
434 <classPattern>**/classes</classPattern>
435 <sourcePattern>**/src/main/java</sourcePattern>
438 <exclusionPattern>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</exclusionPattern>
439 <maximumBranchCoverage>10</maximumBranchCoverage>
440 <minimumBranchCoverage>20</minimumBranchCoverage>
441 <maximumMethodCoverage>50</maximumMethodCoverage>
442 <minimumMethodCoverage>40</minimumMethodCoverage>
443 </hudson.plugins.jacoco.JacocoPublisher>
444 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
448 # SPDX-License-Identifier: EPL-1.0
449 ##############################################################################
450 # Copyright (c) 2017 The Linux Foundation and others.
452 # All rights reserved. This program and the accompanying materials
453 # are made available under the terms of the Eclipse Public License v1.0
454 # which accompanies this distribution, and is available at
455 # http://www.eclipse.org/legal/epl-v10.html
456 ##############################################################################
457 echo "---> sysstat.sh"
458 set +e # DON'T fail build if script fails.
460 OS=$(facter operatingsystem)
461 case "$OS" in
463 SYSSTAT_PATH="/var/log/sysstat"
465 # Dont run the script when systat is not enabled by default
466 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
471 SYSSTAT_PATH="/var/log/sa"
479 SAR_DIR="$WORKSPACE/archives/sar-reports"
480 mkdir -p "$SAR_DIR"
481 cp "$SYSSTAT_PATH/"* "$_"
482 # convert sar data to ascii format
483 while IFS="" read -r sarfilenum
485 [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!0-9]/}"
486 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
488 # DON'T fail build if script fails.
491 </hudson.tasks.Shell>
492 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
494 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
495 <fileId>jenkins-log-archives-settings</fileId>
497 <variable>SETTINGS_FILE</variable>
498 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
500 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
503 <propertiesContent>SERVER_ID=logs</propertiesContent>
508 # SPDX-License-Identifier: EPL-1.0
509 ##############################################################################
510 # Copyright (c) 2017 The Linux Foundation and others.
512 # All rights reserved. This program and the accompanying materials
513 # are made available under the terms of the Eclipse Public License v1.0
514 # which accompanies this distribution, and is available at
515 # http://www.eclipse.org/legal/epl-v10.html
516 ##############################################################################
517 echo "---> create-netrc.sh"
519 # Ensure we fail the job if any steps fail.
522 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
523 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
524 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
525 -v x:username -o ":" -v x:password \
526 "$SETTINGS_FILE")
528 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
529 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
530 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
532 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
534 </hudson.tasks.Shell>
537 # SPDX-License-Identifier: EPL-1.0
538 ##############################################################################
539 # Copyright (c) 2017 The Linux Foundation and others.
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 echo "---> lftools-install.sh"
548 # Script to install lftools via a version passed in via lf-infra-parameters
550 # Required parameters:
552 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
553 # set to a strict version number like '1.2.3' or using
554 # PEP-440 definitions.
558 # >=1.0.0,<2.0.0
560 # By default a released version of lftools should always be used.
561 # The purpose of the 2 variables below is so that lftools devs can test
562 # unreleased versions of lftools. There are 2 methods to install a dev version
565 # 1) gerrit patch: Used to test a patch that has not yet been merged.
566 # To do this set something like this:
567 # LFTOOLS_MODE=gerrit
568 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
570 # 2) git branch: Used to install an lftools version from a specific branch.
571 # To use this set the variables as follows:
573 # LFTOOLS_REFSPEC=master
575 # 3) release : The intended use case and default setting.
576 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
578 LFTOOLS_MODE=release # release | git | gerrit
579 LFTOOLS_REFSPEC=master
581 # Ensure we fail the job if any steps fail.
582 # DO NOT set -u as virtualenv's activate script has unbound variables
585 virtualenv --quiet "/tmp/v/lftools"
586 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
587 source "/tmp/v/lftools/bin/activate"
588 pip install --quiet --upgrade pip
590 case $LFTOOLS_MODE in
592 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
594 git fetch origin "$LFTOOLS_REFSPEC"
595 git checkout FETCH_HEAD
596 pip install --quiet --upgrade -r requirements.txt
597 pip install --quiet --upgrade -e .
602 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
606 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
607 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
610 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
616 # pipdeptree prints out a lot of information because lftools pulls in many
617 # dependencies. Let's only print it if we want to debug.
618 # echo "----> Pip Dependency Tree"
619 # pip install --quiet --upgrade pipdeptree
623 # SPDX-License-Identifier: EPL-1.0
624 ##############################################################################
625 # Copyright (c) 2017 The Linux Foundation and others.
627 # All rights reserved. This program and the accompanying materials
628 # are made available under the terms of the Eclipse Public License v1.0
629 # which accompanies this distribution, and is available at
630 # http://www.eclipse.org/legal/epl-v10.html
631 ##############################################################################
632 echo "---> logs-deploy.sh"
634 # Ensure we fail the job if any steps fail.
637 set -x # Trace commands for this script to make debugging easier.
639 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
640 LOGS_SERVER="${LOGS_SERVER:-None}"
642 if [ "${LOGS_SERVER}" == 'None' ]
644 set +x # Disable trace since we no longer need it
646 echo "WARNING: Logging server not set"
648 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
649 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
650 BUILD_URL="${BUILD_URL}"
652 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
653 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
655 set +x # Disable trace since we no longer need it.
657 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
660 </hudson.tasks.Shell>
663 # SPDX-License-Identifier: EPL-1.0
664 ##############################################################################
665 # Copyright (c) 2017 The Linux Foundation and others.
667 # All rights reserved. This program and the accompanying materials
668 # are made available under the terms of the Eclipse Public License v1.0
669 # which accompanies this distribution, and is available at
670 # http://www.eclipse.org/legal/epl-v10.html
671 ##############################################################################
673 # Clear log credential files
674 rm "$SETTINGS_FILE"
677 </hudson.tasks.Shell>
678 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
679 <regexp>^Build logs: .*</regexp>
680 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
682 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
683 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
684 <markBuildUnstable>false</markBuildUnstable>
685 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
686 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
688 <hudson.plugins.ws__cleanup.Pattern>
689 <pattern>**/*.jenkins-trigger</pattern>
691 </hudson.plugins.ws__cleanup.Pattern>
693 <deleteDirs>false</deleteDirs>
694 <cleanupMatrixParent>false</cleanupMatrixParent>
696 <cleanWhenSuccess>true</cleanWhenSuccess>
697 <cleanWhenUnstable>true</cleanWhenUnstable>
698 <cleanWhenFailure>true</cleanWhenFailure>
699 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
700 <cleanWhenAborted>true</cleanWhenAborted>
701 <notFailBuild>true</notFailBuild>
702 </hudson.plugins.ws__cleanup.WsCleanup>
705 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
706 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
707 <timeoutMinutes>60</timeoutMinutes>
708 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
709 <failBuild>true</failBuild>
710 <writingDescription>false</writingDescription>
711 <timeoutPercentage>0</timeoutPercentage>
712 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
713 <timeoutType>absolute</timeoutType>
714 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
715 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
716 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
717 <user>test-credential</user>
718 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
719 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
720 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
722 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
723 <fileId>npmrc</fileId>
724 <targetLocation>$HOME/.npmrc</targetLocation>
726 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
728 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>