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>
128 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
129 <remotePoll>false</remotePoll>
130 <gitTool>Default</gitTool>
131 <submoduleCfg class="list"/>
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>
145 <timeout>10</timeout>
146 </hudson.plugins.git.extensions.impl.SubmoduleOption>
147 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
150 <triggers class="vector">
151 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
154 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
155 <compareType>ANT</compareType>
156 <pattern>releng/ciman</pattern>
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>
164 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
165 <compareType>ANT</compareType>
166 <pattern>**</pattern>
167 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
169 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
170 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
173 <onSuccessful>false</onSuccessful>
174 <onFailed>false</onFailed>
175 <onUnstable>false</onUnstable>
176 <onNotBuilt>false</onNotBuilt>
178 <silentMode>false</silentMode>
179 <silentStartMode>false</silentStartMode>
180 <escapeQuotes>true</escapeQuotes>
181 <noNameAndEmailParameters>false</noNameAndEmailParameters>
182 <readableMessage>false</readableMessage>
183 <dependencyJobsNames/>
185 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
187 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
189 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
190 <excludeDrafts>true</excludeDrafts>
191 <excludeTrivialRebase>false</excludeTrivialRebase>
192 <excludeNoCodeChange>false</excludeNoCodeChange>
193 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
194 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
195 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
196 <commentAddedCommentContains>recheck$</commentAddedCommentContains>
197 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
200 <buildFailureMessage/>
201 <buildSuccessfulMessage/>
202 <buildUnstableMessage/>
203 <buildNotBuiltMessage/>
204 <buildUnsuccessfulFilepath/>
206 <serverName>test-server</serverName>
207 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
211 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
212 </hudson.tasks.Shell>
214 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
215 </hudson.tasks.Shell>
217 <targets>--version</targets>
219 <mavenName>mvn33</mavenName>
220 <usePrivateRepository>false</usePrivateRepository>
221 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
222 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
223 </hudson.tasks.Maven>
225 <command>rm "$HOME/.wgetrc"</command>
226 </hudson.tasks.Shell>
227 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
229 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
230 <fileId>global-settings</fileId>
232 <variable>GLOBAL_SETTINGS_FILE</variable>
233 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
234 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
235 <fileId>gerrit-maven-project-settings</fileId>
237 <variable>SETTINGS_FILE</variable>
238 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
240 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
243 # SPDX-License-Identifier: EPL-1.0
244 ##############################################################################
245 # Copyright (c) 2017 The Linux Foundation and others.
247 # All rights reserved. This program and the accompanying materials
248 # are made available under the terms of the Eclipse Public License v1.0
249 # which accompanies this distribution, and is available at
250 # http://www.eclipse.org/legal/epl-v10.html
251 ##############################################################################
252 echo "---> lftools-install.sh"
254 # Script to install lftools via a version passed in via lf-infra-parameters
256 # Required parameters:
258 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
259 # set to a strict version number like '1.2.3' or using
260 # PEP-440 definitions.
264 # >=1.0.0,<2.0.0
266 # By default a released version of lftools should always be used.
267 # The purpose of the 2 variables below is so that lftools devs can test
268 # unreleased versions of lftools. There are 2 methods to install a dev version
271 # 1) gerrit patch: Used to test a patch that has not yet been merged.
272 # To do this set something like this:
273 # LFTOOLS_MODE=gerrit
274 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
276 # 2) git branch: Used to install an lftools version from a specific branch.
277 # To use this set the variables as follows:
279 # LFTOOLS_REFSPEC=master
281 # 3) release : The intended use case and default setting.
282 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
284 LFTOOLS_MODE=release # release | git | gerrit
285 LFTOOLS_REFSPEC=master
287 # Ensure we fail the job if any steps fail.
288 # DO NOT set -u as virtualenv's activate script has unbound variables
291 virtualenv --quiet "/tmp/v/lftools"
292 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
293 source "/tmp/v/lftools/bin/activate"
294 pip install --quiet --upgrade pip
296 case $LFTOOLS_MODE in
298 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
300 git fetch origin "$LFTOOLS_REFSPEC"
301 git checkout FETCH_HEAD
302 pip install --quiet --upgrade -r requirements.txt
303 pip install --quiet --upgrade -e .
308 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
312 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
313 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
316 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
322 # pipdeptree prints out a lot of information because lftools pulls in many
323 # dependencies. Let's only print it if we want to debug.
324 # echo "----> Pip Dependency Tree"
325 # pip install --quiet --upgrade pipdeptree
329 # SPDX-License-Identifier: EPL-1.0
330 ##############################################################################
331 # Copyright (c) 2017 The Linux Foundation and others.
333 # All rights reserved. This program and the accompanying materials
334 # are made available under the terms of the Eclipse Public License v1.0
335 # which accompanies this distribution, and is available at
336 # http://www.eclipse.org/legal/epl-v10.html
337 ##############################################################################
339 # This file contains a list of variables that are generally useful in many
340 # scripts. It is meant to be sourced in other scripts so that the variables can
343 MAVEN_OPTIONS="$(echo --show-version \
346 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
347 -Dmaven.repo.local=/tmp/r \
348 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
349 echo "$MAVEN_OPTIONS"
352 # SPDX-License-Identifier: EPL-1.0
353 ##############################################################################
354 # Copyright (c) 2017 The Linux Foundation and others.
356 # All rights reserved. This program and the accompanying materials
357 # are made available under the terms of the Eclipse Public License v1.0
358 # which accompanies this distribution, and is available at
359 # http://www.eclipse.org/legal/epl-v10.html
360 ##############################################################################
362 # This script builds a Maven project and deploys it into a staging repo which
363 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
365 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
366 # Ensure we fail the job if any steps fail.
372 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
373 # shellcheck disable=SC2086
375 --global-settings "$GLOBAL_SETTINGS_FILE" \
376 --settings "$SETTINGS_FILE" \
377 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
378 $MAVEN_OPTIONS $MAVEN_PARAMS
380 </hudson.tasks.Shell>
383 set +e # DO NOT cause build failure if any of the rm calls fail.
385 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
387 # In some cases we use the lf-provide-maven-settings macro to produce
388 # a "$HOME/.netrc" file containing credentials. Remove that file here
390 rm "$HOME/.netrc"
392 # DO NOT fail build if any of the above lines fail.
395 </hudson.tasks.Shell>
398 <hudson.plugins.findbugs.FindBugsPublisher plugin="findbugs">
399 <isRankActivated>false</isRankActivated>
404 <thresholdLimit>low</thresholdLimit>
405 <pluginName>[FINDBUGS] </pluginName>
407 <canRunOnFailed>false</canRunOnFailed>
408 <useStableBuildAsReference>false</useStableBuildAsReference>
409 <usePreviousBuildAsReference>false</usePreviousBuildAsReference>
410 <useDeltaValues>false</useDeltaValues>
414 <unstableTotalNormal/>
421 <shouldDetectModules>false</shouldDetectModules>
422 <dontComputeNew>true</dontComputeNew>
423 <doNotResolveRelativePaths>false</doNotResolveRelativePaths>
425 </hudson.plugins.findbugs.FindBugsPublisher>
426 <hudson.plugins.jacoco.JacocoPublisher plugin="jacoco">
427 <execPattern>**/**.exec</execPattern>
428 <classPattern>**/classes</classPattern>
429 <sourcePattern>**/src/main/java</sourcePattern>
430 <changeBuildStatus>false</changeBuildStatus>
432 <exclusionPattern>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</exclusionPattern>
433 <maximumBranchCoverage>10</maximumBranchCoverage>
434 <minimumBranchCoverage>20</minimumBranchCoverage>
435 <maximumMethodCoverage>50</maximumMethodCoverage>
436 <minimumMethodCoverage>40</minimumMethodCoverage>
437 </hudson.plugins.jacoco.JacocoPublisher>
438 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
442 # SPDX-License-Identifier: EPL-1.0
443 ##############################################################################
444 # Copyright (c) 2017 The Linux Foundation and others.
446 # All rights reserved. This program and the accompanying materials
447 # are made available under the terms of the Eclipse Public License v1.0
448 # which accompanies this distribution, and is available at
449 # http://www.eclipse.org/legal/epl-v10.html
450 ##############################################################################
451 echo "---> sysstat.sh"
452 set +e # DON'T fail build if script fails.
454 OS=$(facter operatingsystem)
455 case "$OS" in
457 SYSSTAT_PATH="/var/log/sysstat"
459 # Dont run the script when systat is not enabled by default
460 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
465 SYSSTAT_PATH="/var/log/sa"
473 SAR_DIR="$WORKSPACE/archives/sar-reports"
474 mkdir -p "$SAR_DIR"
475 cp "$SYSSTAT_PATH/"* "$_"
476 # convert sar data to ascii format
477 while IFS="" read -r sarfilenum
479 [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!0-9]/}"
480 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
482 # DON'T fail build if script fails.
485 </hudson.tasks.Shell>
486 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
488 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
489 <fileId>jenkins-log-archives-settings</fileId>
491 <variable>SETTINGS_FILE</variable>
492 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
494 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
497 <propertiesContent>SERVER_ID=logs</propertiesContent>
502 # SPDX-License-Identifier: EPL-1.0
503 ##############################################################################
504 # Copyright (c) 2017 The Linux Foundation and others.
506 # All rights reserved. This program and the accompanying materials
507 # are made available under the terms of the Eclipse Public License v1.0
508 # which accompanies this distribution, and is available at
509 # http://www.eclipse.org/legal/epl-v10.html
510 ##############################################################################
511 echo "---> create-netrc.sh"
513 # Ensure we fail the job if any steps fail.
516 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
517 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
518 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
519 -v x:username -o ":" -v x:password \
520 "$SETTINGS_FILE")
522 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
523 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
524 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
526 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
528 </hudson.tasks.Shell>
531 # SPDX-License-Identifier: EPL-1.0
532 ##############################################################################
533 # Copyright (c) 2017 The Linux Foundation and others.
535 # All rights reserved. This program and the accompanying materials
536 # are made available under the terms of the Eclipse Public License v1.0
537 # which accompanies this distribution, and is available at
538 # http://www.eclipse.org/legal/epl-v10.html
539 ##############################################################################
540 echo "---> lftools-install.sh"
542 # Script to install lftools via a version passed in via lf-infra-parameters
544 # Required parameters:
546 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
547 # set to a strict version number like '1.2.3' or using
548 # PEP-440 definitions.
552 # >=1.0.0,<2.0.0
554 # By default a released version of lftools should always be used.
555 # The purpose of the 2 variables below is so that lftools devs can test
556 # unreleased versions of lftools. There are 2 methods to install a dev version
559 # 1) gerrit patch: Used to test a patch that has not yet been merged.
560 # To do this set something like this:
561 # LFTOOLS_MODE=gerrit
562 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
564 # 2) git branch: Used to install an lftools version from a specific branch.
565 # To use this set the variables as follows:
567 # LFTOOLS_REFSPEC=master
569 # 3) release : The intended use case and default setting.
570 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
572 LFTOOLS_MODE=release # release | git | gerrit
573 LFTOOLS_REFSPEC=master
575 # Ensure we fail the job if any steps fail.
576 # DO NOT set -u as virtualenv's activate script has unbound variables
579 virtualenv --quiet "/tmp/v/lftools"
580 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
581 source "/tmp/v/lftools/bin/activate"
582 pip install --quiet --upgrade pip
584 case $LFTOOLS_MODE in
586 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
588 git fetch origin "$LFTOOLS_REFSPEC"
589 git checkout FETCH_HEAD
590 pip install --quiet --upgrade -r requirements.txt
591 pip install --quiet --upgrade -e .
596 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
600 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
601 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
604 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
610 # pipdeptree prints out a lot of information because lftools pulls in many
611 # dependencies. Let's only print it if we want to debug.
612 # echo "----> Pip Dependency Tree"
613 # pip install --quiet --upgrade pipdeptree
617 # SPDX-License-Identifier: EPL-1.0
618 ##############################################################################
619 # Copyright (c) 2017 The Linux Foundation and others.
621 # All rights reserved. This program and the accompanying materials
622 # are made available under the terms of the Eclipse Public License v1.0
623 # which accompanies this distribution, and is available at
624 # http://www.eclipse.org/legal/epl-v10.html
625 ##############################################################################
626 echo "---> logs-deploy.sh"
628 # Ensure we fail the job if any steps fail.
631 set -x # Trace commands for this script to make debugging easier.
633 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
634 LOGS_SERVER="${LOGS_SERVER:-None}"
636 if [ "${LOGS_SERVER}" == 'None' ]
638 set +x # Disable trace since we no longer need it
640 echo "WARNING: Logging server not set"
642 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
643 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
644 BUILD_URL="${BUILD_URL}"
646 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
647 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
649 set +x # Disable trace since we no longer need it.
651 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
654 </hudson.tasks.Shell>
657 # SPDX-License-Identifier: EPL-1.0
658 ##############################################################################
659 # Copyright (c) 2017 The Linux Foundation and others.
661 # All rights reserved. This program and the accompanying materials
662 # are made available under the terms of the Eclipse Public License v1.0
663 # which accompanies this distribution, and is available at
664 # http://www.eclipse.org/legal/epl-v10.html
665 ##############################################################################
667 # Clear log credential files
668 rm "$SETTINGS_FILE"
671 </hudson.tasks.Shell>
672 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
673 <regexp>^Build logs: .*</regexp>
674 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
676 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
677 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
678 <markBuildUnstable>false</markBuildUnstable>
679 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
680 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
682 <hudson.plugins.ws__cleanup.Pattern>
683 <pattern>**/*.jenkins-trigger</pattern>
685 </hudson.plugins.ws__cleanup.Pattern>
687 <deleteDirs>false</deleteDirs>
688 <cleanupMatrixParent>false</cleanupMatrixParent>
690 <cleanWhenSuccess>true</cleanWhenSuccess>
691 <cleanWhenUnstable>true</cleanWhenUnstable>
692 <cleanWhenFailure>true</cleanWhenFailure>
693 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
694 <cleanWhenAborted>true</cleanWhenAborted>
695 <notFailBuild>true</notFailBuild>
696 </hudson.plugins.ws__cleanup.WsCleanup>
699 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
700 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
701 <timeoutMinutes>60</timeoutMinutes>
702 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
703 <failBuild>true</failBuild>
704 <writingDescription>false</writingDescription>
705 <timeoutPercentage>0</timeoutPercentage>
706 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
707 <timeoutType>absolute</timeoutType>
708 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
709 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
710 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
711 <user>test-credential</user>
712 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
713 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
714 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
716 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
717 <fileId>npmrc</fileId>
718 <targetLocation>$HOME/.npmrc</targetLocation>
720 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
722 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>