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>false</concurrentBuild>
10 <assignedNode>build-vm</assignedNode>
11 <canRoam>false</canRoam>
13 <com.coravy.hudson.plugins.github.GithubProjectProperty>
14 <projectUrl>$GIT_URL/$PROJECT/example-org/releng/ciman</projectUrl>
15 </com.coravy.hudson.plugins.github.GithubProjectProperty>
16 <hudson.model.ParametersDefinitionProperty>
17 <parameterDefinitions>
18 <hudson.model.StringParameterDefinition>
20 <description>Parameter to identify a Gerrit project. This is typically the
21 project repo path as exists in Gerrit.
22 For example: ofextensions/circuitsw
24 <defaultValue>releng/ciman</defaultValue>
25 </hudson.model.StringParameterDefinition>
26 <hudson.model.StringParameterDefinition>
28 <description>Stream is often set to the same name as 'branch' but can
29 sometimes be used as a name representing a project's release code
32 <defaultValue>master</defaultValue>
33 </hudson.model.StringParameterDefinition>
34 <hudson.model.StringParameterDefinition>
35 <name>GERRIT_PROJECT</name>
36 <description>Parameter to identify Gerrit project. This is typically the
37 project repo path as exists in Gerrit.
38 For example: ofextensions/circuitsw
40 Note that Gerrit will override this parameter automatically if a
41 job is triggered by Gerrit.
43 <defaultValue>releng/ciman</defaultValue>
44 </hudson.model.StringParameterDefinition>
45 <hudson.model.StringParameterDefinition>
46 <name>GERRIT_BRANCH</name>
47 <description>Parameter to identify a Gerrit branch.
49 Note that Gerrit will override this parameter automatically if a
50 job is triggered by Gerrit.
52 <defaultValue>master</defaultValue>
53 </hudson.model.StringParameterDefinition>
54 <hudson.model.StringParameterDefinition>
55 <name>GERRIT_REFSPEC</name>
56 <description>Parameter to identify a refspec when pulling from Gerrit.
58 Note that Gerrit will override this parameter automatically if a
59 job is triggered by Gerrit.
61 <defaultValue>refs/heads/master</defaultValue>
62 </hudson.model.StringParameterDefinition>
63 <hudson.model.StringParameterDefinition>
64 <name>LFTOOLS_VERSION</name>
65 <description>Version of lftools to install. Can be a specific version like
66 '0.6.0' or a PEP-440 definition.
67 https://www.python.org/dev/peps/pep-0440/
68 For example '<1.0.0' or '>=1.0.0,<2.0.0'.
70 <defaultValue><1.0.0</defaultValue>
71 </hudson.model.StringParameterDefinition>
72 <hudson.model.StringParameterDefinition>
74 <description>Maven selector to be used by shell scripts</description>
75 <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
76 </hudson.model.StringParameterDefinition>
77 <hudson.model.StringParameterDefinition>
78 <name>MAVEN_OPTS</name>
79 <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
82 </hudson.model.StringParameterDefinition>
83 <hudson.model.StringParameterDefinition>
84 <name>MAVEN_PARAMS</name>
85 <description>Maven parameters to pass to the mvn command.
88 </hudson.model.StringParameterDefinition>
89 <hudson.model.StringParameterDefinition>
91 <description>Maven selector to be used by shell scripts</description>
92 <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn</defaultValue>
93 </hudson.model.StringParameterDefinition>
94 <hudson.model.StringParameterDefinition>
95 <name>STAGING_PROFILE_ID</name>
96 <description>Nexus staging profile ID.
98 <defaultValue>uuddlrlrba</defaultValue>
99 </hudson.model.StringParameterDefinition>
100 <hudson.model.StringParameterDefinition>
101 <name>ARCHIVE_ARTIFACTS</name>
102 <description>Artifacts to archive to the logs server.</description>
104 </hudson.model.StringParameterDefinition>
105 </parameterDefinitions>
106 </hudson.model.ParametersDefinitionProperty>
108 <scm class="hudson.plugins.git.GitSCM">
109 <configVersion>2</configVersion>
111 <hudson.plugins.git.UserRemoteConfig>
113 <refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
114 <url>git@github.com:example-org/releng/ciman</url>
115 <credentialsId>test-credential</credentialsId>
116 </hudson.plugins.git.UserRemoteConfig>
119 <hudson.plugins.git.BranchSpec>
121 </hudson.plugins.git.BranchSpec>
124 <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
125 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
126 <authorOrCommitter>false</authorOrCommitter>
127 <wipeOutWorkspace>true</wipeOutWorkspace>
128 <pruneBranches>false</pruneBranches>
129 <remotePoll>false</remotePoll>
130 <gitTool>Default</gitTool>
131 <submoduleCfg class="list"/>
136 <skipTag>true</skipTag>
138 <useShallowClone>false</useShallowClone>
139 <ignoreNotifyCommit>false</ignoreNotifyCommit>
141 <hudson.plugins.git.extensions.impl.SubmoduleOption>
142 <disableSubmodules>false</disableSubmodules>
143 <recursiveSubmodules>true</recursiveSubmodules>
144 <trackingSubmodules>false</trackingSubmodules>
146 <timeout>10</timeout>
147 </hudson.plugins.git.extensions.impl.SubmoduleOption>
148 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
151 <triggers class="vector">
152 <hudson.triggers.TimerTrigger>
154 </hudson.triggers.TimerTrigger>
155 <org.jenkinsci.plugins.ghprb.GhprbTrigger>
158 <allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
162 <triggerPhrase>^build release$</triggerPhrase>
163 <onlyTriggerPhrase>true</onlyTriggerPhrase>
164 <useGitHubHooks>true</useGitHubHooks>
165 <permitAll>true</permitAll>
166 <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
168 <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
169 <commitStatusContext>Maven Release</commitStatusContext>
170 </org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
172 </org.jenkinsci.plugins.ghprb.GhprbTrigger>
176 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
177 </hudson.tasks.Shell>
179 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
180 </hudson.tasks.Shell>
182 <targets>--version</targets>
184 <mavenName>mvn33</mavenName>
185 <usePrivateRepository>false</usePrivateRepository>
186 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
187 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
188 </hudson.tasks.Maven>
190 <command>rm "$HOME/.wgetrc"</command>
191 </hudson.tasks.Shell>
192 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
194 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
195 <fileId>global-settings</fileId>
197 <variable>GLOBAL_SETTINGS_FILE</variable>
198 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
199 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
200 <fileId>aproject-settings</fileId>
202 <variable>SETTINGS_FILE</variable>
203 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
205 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
208 <propertiesContent>SERVER_ID=project-staging</propertiesContent>
213 # SPDX-License-Identifier: EPL-1.0
214 ##############################################################################
215 # Copyright (c) 2017 The Linux Foundation and others.
217 # All rights reserved. This program and the accompanying materials
218 # are made available under the terms of the Eclipse Public License v1.0
219 # which accompanies this distribution, and is available at
220 # http://www.eclipse.org/legal/epl-v10.html
221 ##############################################################################
222 echo "---> create-netrc.sh"
224 # Ensure we fail the job if any steps fail.
227 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
228 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
229 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
230 -v x:username -o ":" -v x:password \
231 "$SETTINGS_FILE")
233 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
234 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
235 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
237 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
239 </hudson.tasks.Shell>
242 # SPDX-License-Identifier: EPL-1.0
243 ##############################################################################
244 # Copyright (c) 2017 The Linux Foundation and others.
246 # All rights reserved. This program and the accompanying materials
247 # are made available under the terms of the Eclipse Public License v1.0
248 # which accompanies this distribution, and is available at
249 # http://www.eclipse.org/legal/epl-v10.html
250 ##############################################################################
251 echo "---> lftools-install.sh"
253 # Script to install lftools via a version passed in via lf-infra-parameters
255 # Required parameters:
257 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
258 # set to a strict version number like '1.2.3' or using
259 # PEP-440 definitions.
263 # >=1.0.0,<2.0.0
265 # By default a released version of lftools should always be used.
266 # The purpose of the 2 variables below is so that lftools devs can test
267 # unreleased versions of lftools. There are 2 methods to install a dev version
270 # 1) gerrit patch: Used to test a patch that has not yet been merged.
271 # To do this set something like this:
272 # LFTOOLS_MODE=gerrit
273 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
275 # 2) git branch: Used to install an lftools version from a specific branch.
276 # To use this set the variables as follows:
278 # LFTOOLS_REFSPEC=master
280 # 3) release : The intended use case and default setting.
281 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
283 LFTOOLS_MODE=release # release | git | gerrit
284 LFTOOLS_REFSPEC=master
286 # Ensure we fail the job if any steps fail.
287 # DO NOT set -u as virtualenv's activate script has unbound variables
290 virtualenv --quiet "/tmp/v/lftools"
291 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
292 source "/tmp/v/lftools/bin/activate"
293 pip install --quiet --upgrade pip
295 case $LFTOOLS_MODE in
297 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
299 git fetch origin "$LFTOOLS_REFSPEC"
300 git checkout FETCH_HEAD
301 pip install --quiet --upgrade -r requirements.txt
302 pip install --quiet --upgrade -e .
307 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
311 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
312 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
315 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
321 # pipdeptree prints out a lot of information because lftools pulls in many
322 # dependencies. Let's only print it if we want to debug.
323 # echo "----> Pip Dependency Tree"
324 # pip install --quiet --upgrade pipdeptree
328 # SPDX-License-Identifier: EPL-1.0
329 ##############################################################################
330 # Copyright (c) 2017 The Linux Foundation and others.
332 # All rights reserved. This program and the accompanying materials
333 # are made available under the terms of the Eclipse Public License v1.0
334 # which accompanies this distribution, and is available at
335 # http://www.eclipse.org/legal/epl-v10.html
336 ##############################################################################
338 # This file contains a list of variables that are generally useful in many
339 # scripts. It is meant to be sourced in other scripts so that the variables can
342 MAVEN_OPTIONS="$(echo --show-version \
345 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
346 -Dmaven.repo.local=/tmp/r \
347 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
348 echo "$MAVEN_OPTIONS"
351 # SPDX-License-Identifier: EPL-1.0
352 ##############################################################################
353 # Copyright (c) 2017 The Linux Foundation and others.
355 # All rights reserved. This program and the accompanying materials
356 # are made available under the terms of the Eclipse Public License v1.0
357 # which accompanies this distribution, and is available at
358 # http://www.eclipse.org/legal/epl-v10.html
359 ##############################################################################
361 # This script removes the -SNAPSHOT from a project to prepare it for release.
363 PATCH_DIR="$WORKSPACE/archives/patches"
364 mkdir -p "$PATCH_DIR"
366 # Ensure we fail the job if any steps fail.
369 echo "$PROJECT" "$(git rev-parse --verify HEAD)" | tee -a "$PATCH_DIR/taglist.log"
371 # Strip -SNAPSHOT from version to prepare release.
372 find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//g'
374 git commit -am "Release $PROJECT"
375 git format-patch --stdout "origin/$GERRIT_BRANCH" > "$PATCH_DIR/${PROJECT//\//-}.patch"
376 git bundle create "$PATCH_DIR/${PROJECT//\//-}.bundle" "origin/${GERRIT_BRANCH}..HEAD"
379 # SPDX-License-Identifier: EPL-1.0
380 ##############################################################################
381 # Copyright (c) 2017 The Linux Foundation and others.
383 # All rights reserved. This program and the accompanying materials
384 # are made available under the terms of the Eclipse Public License v1.0
385 # which accompanies this distribution, and is available at
386 # http://www.eclipse.org/legal/epl-v10.html
387 ##############################################################################
389 # This script builds a Maven project and deploys it into a staging repo which
390 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
392 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
393 # Ensure we fail the job if any steps fail.
399 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
400 # shellcheck disable=SC2086
402 --global-settings "$GLOBAL_SETTINGS_FILE" \
403 --settings "$SETTINGS_FILE" \
404 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
405 $MAVEN_PARAMS $MAVEN_OPTIONS
408 # SPDX-License-Identifier: EPL-1.0
409 ##############################################################################
410 # Copyright (c) 2017 The Linux Foundation and others.
412 # All rights reserved. This program and the accompanying materials
413 # are made available under the terms of the Eclipse Public License v1.0
414 # which accompanies this distribution, and is available at
415 # http://www.eclipse.org/legal/epl-v10.html
416 ##############################################################################
418 # This script publishes artifacts to a staging repo in Nexus.
420 # $WORKSPACE/m2repo : Exists and used to deploy the staging repository.
421 # $NEXUS_URL : Jenkins global variable should be defined.
422 # $STAGING_PROFILE_ID : Provided by a job parameter.
424 # Ensure we fail the job if any steps fail.
427 TMP_FILE="$(mktemp)"
428 lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
429 staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")
431 # Store repo info to a file in archives
432 mkdir -p "$WORKSPACE/archives"
433 echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt"
436 rm "$TMP_FILE"
438 </hudson.tasks.Shell>
441 set +e # DO NOT cause build failure if any of the rm calls fail.
443 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
445 # In some cases we use the lf-provide-maven-settings macro to produce
446 # a "$HOME/.netrc" file containing credentials. Remove that file here
448 rm "$HOME/.netrc"
450 # DO NOT fail build if any of the above lines fail.
453 </hudson.tasks.Shell>
456 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
460 # SPDX-License-Identifier: EPL-1.0
461 ##############################################################################
462 # Copyright (c) 2017 The Linux Foundation and others.
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 "---> sysstat.sh"
470 set +e # DON'T fail build if script fails.
472 OS=$(facter operatingsystem)
473 case "$OS" in
475 SYSSTAT_PATH="/var/log/sysstat"
477 # Dont run the script when systat is not enabled by default
478 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
483 SYSSTAT_PATH="/var/log/sa"
491 SAR_DIR="$WORKSPACE/archives/sar-reports"
492 mkdir -p "$SAR_DIR"
493 cp "$SYSSTAT_PATH/"* "$_"
494 # convert sar data to ascii format
495 while IFS="" read -r s
497 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
498 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
500 # DON'T fail build if script fails.
503 </hudson.tasks.Shell>
504 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
506 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
507 <fileId>jenkins-log-archives-settings</fileId>
509 <variable>SETTINGS_FILE</variable>
510 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
512 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
515 <propertiesContent>SERVER_ID=logs</propertiesContent>
520 # SPDX-License-Identifier: EPL-1.0
521 ##############################################################################
522 # Copyright (c) 2017 The Linux Foundation and others.
524 # All rights reserved. This program and the accompanying materials
525 # are made available under the terms of the Eclipse Public License v1.0
526 # which accompanies this distribution, and is available at
527 # http://www.eclipse.org/legal/epl-v10.html
528 ##############################################################################
529 echo "---> create-netrc.sh"
531 # Ensure we fail the job if any steps fail.
534 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
535 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
536 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
537 -v x:username -o ":" -v x:password \
538 "$SETTINGS_FILE")
540 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
541 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
542 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
544 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
546 </hudson.tasks.Shell>
549 # SPDX-License-Identifier: EPL-1.0
550 ##############################################################################
551 # Copyright (c) 2017 The Linux Foundation and others.
553 # All rights reserved. This program and the accompanying materials
554 # are made available under the terms of the Eclipse Public License v1.0
555 # which accompanies this distribution, and is available at
556 # http://www.eclipse.org/legal/epl-v10.html
557 ##############################################################################
558 echo "---> lftools-install.sh"
560 # Script to install lftools via a version passed in via lf-infra-parameters
562 # Required parameters:
564 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
565 # set to a strict version number like '1.2.3' or using
566 # PEP-440 definitions.
570 # >=1.0.0,<2.0.0
572 # By default a released version of lftools should always be used.
573 # The purpose of the 2 variables below is so that lftools devs can test
574 # unreleased versions of lftools. There are 2 methods to install a dev version
577 # 1) gerrit patch: Used to test a patch that has not yet been merged.
578 # To do this set something like this:
579 # LFTOOLS_MODE=gerrit
580 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
582 # 2) git branch: Used to install an lftools version from a specific branch.
583 # To use this set the variables as follows:
585 # LFTOOLS_REFSPEC=master
587 # 3) release : The intended use case and default setting.
588 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
590 LFTOOLS_MODE=release # release | git | gerrit
591 LFTOOLS_REFSPEC=master
593 # Ensure we fail the job if any steps fail.
594 # DO NOT set -u as virtualenv's activate script has unbound variables
597 virtualenv --quiet "/tmp/v/lftools"
598 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
599 source "/tmp/v/lftools/bin/activate"
600 pip install --quiet --upgrade pip
602 case $LFTOOLS_MODE in
604 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
606 git fetch origin "$LFTOOLS_REFSPEC"
607 git checkout FETCH_HEAD
608 pip install --quiet --upgrade -r requirements.txt
609 pip install --quiet --upgrade -e .
614 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
618 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
619 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
622 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
628 # pipdeptree prints out a lot of information because lftools pulls in many
629 # dependencies. Let's only print it if we want to debug.
630 # echo "----> Pip Dependency Tree"
631 # pip install --quiet --upgrade pipdeptree
635 # SPDX-License-Identifier: EPL-1.0
636 ##############################################################################
637 # Copyright (c) 2017 The Linux Foundation and others.
639 # All rights reserved. This program and the accompanying materials
640 # are made available under the terms of the Eclipse Public License v1.0
641 # which accompanies this distribution, and is available at
642 # http://www.eclipse.org/legal/epl-v10.html
643 ##############################################################################
644 echo "---> logs-deploy.sh"
646 # Ensure we fail the job if any steps fail.
649 set -x # Trace commands for this script to make debugging easier.
651 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
652 LOGS_SERVER="${LOGS_SERVER:-None}"
654 if [ "${LOGS_SERVER}" == 'None' ]
656 set +x # Disable trace since we no longer need it
658 echo "WARNING: Logging server not set"
660 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
661 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
662 BUILD_URL="${BUILD_URL}"
664 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
665 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
667 set +x # Disable trace since we no longer need it.
669 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
672 </hudson.tasks.Shell>
675 # SPDX-License-Identifier: EPL-1.0
676 ##############################################################################
677 # Copyright (c) 2017 The Linux Foundation and others.
679 # All rights reserved. This program and the accompanying materials
680 # are made available under the terms of the Eclipse Public License v1.0
681 # which accompanies this distribution, and is available at
682 # http://www.eclipse.org/legal/epl-v10.html
683 ##############################################################################
685 # Clear log credential files
686 rm "$SETTINGS_FILE"
689 </hudson.tasks.Shell>
690 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
691 <regexp>^Build logs: .*</regexp>
692 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
694 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
695 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
696 <markBuildUnstable>false</markBuildUnstable>
697 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
698 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
700 <hudson.plugins.ws__cleanup.Pattern>
701 <pattern>**/*.jenkins-trigger</pattern>
703 </hudson.plugins.ws__cleanup.Pattern>
705 <deleteDirs>false</deleteDirs>
706 <cleanupMatrixParent>false</cleanupMatrixParent>
708 <cleanWhenSuccess>true</cleanWhenSuccess>
709 <cleanWhenUnstable>true</cleanWhenUnstable>
710 <cleanWhenFailure>true</cleanWhenFailure>
711 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
712 <cleanWhenAborted>true</cleanWhenAborted>
713 <notFailBuild>true</notFailBuild>
714 </hudson.plugins.ws__cleanup.WsCleanup>
717 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
718 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
719 <timeoutMinutes>30</timeoutMinutes>
720 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
721 <failBuild>true</failBuild>
722 <writingDescription>false</writingDescription>
723 <timeoutPercentage>0</timeoutPercentage>
724 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
725 <timeoutType>absolute</timeoutType>
726 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
727 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
728 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
729 <user>test-credential</user>
730 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
731 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
732 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
734 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
735 <fileId>npmrc</fileId>
736 <targetLocation>$HOME/.npmrc</targetLocation>
738 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
740 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>