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 plugin="github">
14 <projectUrl>$GIT_URL/$PROJECT/example-org/releng/ciman</projectUrl>
16 </com.coravy.hudson.plugins.github.GithubProjectProperty>
17 <hudson.model.ParametersDefinitionProperty>
18 <parameterDefinitions>
19 <hudson.model.StringParameterDefinition>
21 <description>Parameter to identify a Gerrit project. This is typically the
22 project repo path as exists in Gerrit.
23 For example: ofextensions/circuitsw
25 <defaultValue>releng/ciman</defaultValue>
26 </hudson.model.StringParameterDefinition>
27 <hudson.model.StringParameterDefinition>
29 <description>Stream is often set to the same name as 'branch' but can
30 sometimes be used as a name representing a project's release code
33 <defaultValue>master</defaultValue>
34 </hudson.model.StringParameterDefinition>
35 <hudson.model.StringParameterDefinition>
36 <name>GERRIT_PROJECT</name>
37 <description>Parameter to identify Gerrit project. This is typically the
38 project repo path as exists in Gerrit.
39 For example: ofextensions/circuitsw
41 Note that Gerrit will override this parameter automatically if a
42 job is triggered by Gerrit.
44 <defaultValue>releng/ciman</defaultValue>
45 </hudson.model.StringParameterDefinition>
46 <hudson.model.StringParameterDefinition>
47 <name>GERRIT_BRANCH</name>
48 <description>Parameter to identify a Gerrit branch.
50 Note that Gerrit will override this parameter automatically if a
51 job is triggered by Gerrit.
53 <defaultValue>master</defaultValue>
54 </hudson.model.StringParameterDefinition>
55 <hudson.model.StringParameterDefinition>
56 <name>GERRIT_REFSPEC</name>
57 <description>Parameter to identify a refspec when pulling from Gerrit.
59 Note that Gerrit will override this parameter automatically if a
60 job is triggered by Gerrit.
62 <defaultValue>refs/heads/master</defaultValue>
63 </hudson.model.StringParameterDefinition>
64 <hudson.model.StringParameterDefinition>
65 <name>LFTOOLS_VERSION</name>
66 <description>Version of lftools to install. Can be a specific version like
67 '0.6.0' or a PEP-440 definition.
68 https://www.python.org/dev/peps/pep-0440/
69 For example '<1.0.0' or '>=1.0.0,<2.0.0'.
71 <defaultValue><1.0.0</defaultValue>
72 </hudson.model.StringParameterDefinition>
73 <hudson.model.StringParameterDefinition>
75 <description>Maven selector to be used by shell scripts</description>
76 <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33</defaultValue>
77 </hudson.model.StringParameterDefinition>
78 <hudson.model.StringParameterDefinition>
79 <name>MAVEN_OPTS</name>
80 <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
83 </hudson.model.StringParameterDefinition>
84 <hudson.model.StringParameterDefinition>
85 <name>MAVEN_PARAMS</name>
86 <description>Maven parameters to pass to the mvn command.
89 </hudson.model.StringParameterDefinition>
90 <hudson.model.StringParameterDefinition>
92 <description>Maven selector to be used by shell scripts</description>
93 <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn</defaultValue>
94 </hudson.model.StringParameterDefinition>
95 <hudson.model.StringParameterDefinition>
96 <name>STAGING_PROFILE_ID</name>
97 <description>Nexus staging profile ID.
99 <defaultValue>uuddlrlrba</defaultValue>
100 </hudson.model.StringParameterDefinition>
101 <hudson.model.StringParameterDefinition>
102 <name>ARCHIVE_ARTIFACTS</name>
103 <description>Artifacts to archive to the logs server.</description>
105 </hudson.model.StringParameterDefinition>
106 </parameterDefinitions>
107 </hudson.model.ParametersDefinitionProperty>
109 <scm class="hudson.plugins.git.GitSCM">
110 <configVersion>2</configVersion>
112 <hudson.plugins.git.UserRemoteConfig>
114 <refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
115 <url>git@github.com:example-org/releng/ciman</url>
116 <credentialsId>test-credential</credentialsId>
117 </hudson.plugins.git.UserRemoteConfig>
120 <hudson.plugins.git.BranchSpec>
122 </hudson.plugins.git.BranchSpec>
124 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
125 <remotePoll>false</remotePoll>
126 <gitTool>Default</gitTool>
127 <submoduleCfg class="list"/>
132 <hudson.plugins.git.extensions.impl.BuildChooserSetting>
133 <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
134 </hudson.plugins.git.extensions.impl.BuildChooserSetting>
135 <hudson.plugins.git.extensions.impl.SubmoduleOption>
136 <disableSubmodules>false</disableSubmodules>
137 <recursiveSubmodules>true</recursiveSubmodules>
138 <trackingSubmodules>false</trackingSubmodules>
139 <parentCredentials>false</parentCredentials>
141 <timeout>10</timeout>
142 </hudson.plugins.git.extensions.impl.SubmoduleOption>
143 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
146 <triggers class="vector">
147 <hudson.triggers.TimerTrigger>
149 </hudson.triggers.TimerTrigger>
150 <org.jenkinsci.plugins.ghprb.GhprbTrigger>
153 <allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
159 <triggerPhrase>^build release$</triggerPhrase>
161 <onlyTriggerPhrase>true</onlyTriggerPhrase>
162 <useGitHubHooks>true</useGitHubHooks>
163 <permitAll>true</permitAll>
164 <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
166 <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
167 <commitStatusContext>Maven Release</commitStatusContext>
168 </org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
170 </org.jenkinsci.plugins.ghprb.GhprbTrigger>
174 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
175 </hudson.tasks.Shell>
177 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
178 </hudson.tasks.Shell>
180 <targets>--version</targets>
182 <mavenName>mvn33</mavenName>
183 <usePrivateRepository>false</usePrivateRepository>
184 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
185 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
186 </hudson.tasks.Maven>
188 <command>rm "$HOME/.wgetrc"</command>
189 </hudson.tasks.Shell>
190 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
192 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
193 <fileId>global-settings</fileId>
195 <variable>GLOBAL_SETTINGS_FILE</variable>
196 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
197 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
198 <fileId>aproject-settings</fileId>
200 <variable>SETTINGS_FILE</variable>
201 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
203 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
206 <propertiesContent>SERVER_ID=project-staging</propertiesContent>
211 # SPDX-License-Identifier: EPL-1.0
212 ##############################################################################
213 # Copyright (c) 2017 The Linux Foundation and others.
215 # All rights reserved. This program and the accompanying materials
216 # are made available under the terms of the Eclipse Public License v1.0
217 # which accompanies this distribution, and is available at
218 # http://www.eclipse.org/legal/epl-v10.html
219 ##############################################################################
220 echo "---> create-netrc.sh"
222 # Ensure we fail the job if any steps fail.
225 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
226 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
227 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
228 -v x:username -o ":" -v x:password \
229 "$SETTINGS_FILE")
231 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
232 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
233 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
235 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
237 </hudson.tasks.Shell>
240 # SPDX-License-Identifier: EPL-1.0
241 ##############################################################################
242 # Copyright (c) 2017 The Linux Foundation and others.
244 # All rights reserved. This program and the accompanying materials
245 # are made available under the terms of the Eclipse Public License v1.0
246 # which accompanies this distribution, and is available at
247 # http://www.eclipse.org/legal/epl-v10.html
248 ##############################################################################
249 echo "---> lftools-install.sh"
251 # Script to install lftools via a version passed in via lf-infra-parameters
253 # Required parameters:
255 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
256 # set to a strict version number like '1.2.3' or using
257 # PEP-440 definitions.
261 # >=1.0.0,<2.0.0
263 # By default a released version of lftools should always be used.
264 # The purpose of the 2 variables below is so that lftools devs can test
265 # unreleased versions of lftools. There are 2 methods to install a dev version
268 # 1) gerrit patch: Used to test a patch that has not yet been merged.
269 # To do this set something like this:
270 # LFTOOLS_MODE=gerrit
271 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
273 # 2) git branch: Used to install an lftools version from a specific branch.
274 # To use this set the variables as follows:
276 # LFTOOLS_REFSPEC=master
278 # 3) release : The intended use case and default setting.
279 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
281 LFTOOLS_MODE=release # release | git | gerrit
282 LFTOOLS_REFSPEC=master
284 # Ensure we fail the job if any steps fail.
285 # DO NOT set -u as virtualenv's activate script has unbound variables
288 virtualenv --quiet "/tmp/v/lftools"
289 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
290 source "/tmp/v/lftools/bin/activate"
291 pip install --quiet --upgrade pip
293 case $LFTOOLS_MODE in
295 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
297 git fetch origin "$LFTOOLS_REFSPEC"
298 git checkout FETCH_HEAD
299 pip install --quiet --upgrade -r requirements.txt
300 pip install --quiet --upgrade -e .
305 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
309 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
310 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
313 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
319 # pipdeptree prints out a lot of information because lftools pulls in many
320 # dependencies. Let's only print it if we want to debug.
321 # echo "----> Pip Dependency Tree"
322 # pip install --quiet --upgrade pipdeptree
326 # SPDX-License-Identifier: EPL-1.0
327 ##############################################################################
328 # Copyright (c) 2017 The Linux Foundation and others.
330 # All rights reserved. This program and the accompanying materials
331 # are made available under the terms of the Eclipse Public License v1.0
332 # which accompanies this distribution, and is available at
333 # http://www.eclipse.org/legal/epl-v10.html
334 ##############################################################################
336 # This file contains a list of variables that are generally useful in many
337 # scripts. It is meant to be sourced in other scripts so that the variables can
340 MAVEN_OPTIONS="$(echo --show-version \
343 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
344 -Dmaven.repo.local=/tmp/r \
345 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
346 echo "$MAVEN_OPTIONS"
349 # SPDX-License-Identifier: EPL-1.0
350 ##############################################################################
351 # Copyright (c) 2017 The Linux Foundation and others.
353 # All rights reserved. This program and the accompanying materials
354 # are made available under the terms of the Eclipse Public License v1.0
355 # which accompanies this distribution, and is available at
356 # http://www.eclipse.org/legal/epl-v10.html
357 ##############################################################################
359 # This script removes the -SNAPSHOT from a project to prepare it for release.
361 PATCH_DIR="$WORKSPACE/archives/patches"
362 mkdir -p "$PATCH_DIR"
364 # Ensure we fail the job if any steps fail.
367 echo "$PROJECT" "$(git rev-parse --verify HEAD)" | tee -a "$PATCH_DIR/taglist.log"
369 # Strip -SNAPSHOT from version to prepare release.
370 find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//g'
372 git commit -am "Release $PROJECT"
373 git format-patch --stdout "origin/$GERRIT_BRANCH" > "$PATCH_DIR/${PROJECT//\//-}.patch"
374 git bundle create "$PATCH_DIR/${PROJECT//\//-}.bundle" "origin/${GERRIT_BRANCH}..HEAD"
377 # SPDX-License-Identifier: EPL-1.0
378 ##############################################################################
379 # Copyright (c) 2017 The Linux Foundation and others.
381 # All rights reserved. This program and the accompanying materials
382 # are made available under the terms of the Eclipse Public License v1.0
383 # which accompanies this distribution, and is available at
384 # http://www.eclipse.org/legal/epl-v10.html
385 ##############################################################################
387 # This script builds a Maven project and deploys it into a staging repo which
388 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
390 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
391 # Ensure we fail the job if any steps fail.
397 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
398 # shellcheck disable=SC2086
400 --global-settings "$GLOBAL_SETTINGS_FILE" \
401 --settings "$SETTINGS_FILE" \
402 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
403 $MAVEN_OPTIONS $MAVEN_PARAMS
406 # SPDX-License-Identifier: EPL-1.0
407 ##############################################################################
408 # Copyright (c) 2017 The Linux Foundation and others.
410 # All rights reserved. This program and the accompanying materials
411 # are made available under the terms of the Eclipse Public License v1.0
412 # which accompanies this distribution, and is available at
413 # http://www.eclipse.org/legal/epl-v10.html
414 ##############################################################################
416 # This script publishes artifacts to a staging repo in Nexus.
418 # $WORKSPACE/m2repo : Exists and used to deploy the staging repository.
419 # $NEXUS_URL : Jenkins global variable should be defined.
420 # $STAGING_PROFILE_ID : Provided by a job parameter.
422 # Ensure we fail the job if any steps fail.
425 TMP_FILE="$(mktemp)"
426 lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
427 staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")
429 # Store repo info to a file in archives
430 mkdir -p "$WORKSPACE/archives"
431 echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt"
434 rm "$TMP_FILE"
436 </hudson.tasks.Shell>
439 set +e # DO NOT cause build failure if any of the rm calls fail.
441 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
443 # In some cases we use the lf-provide-maven-settings macro to produce
444 # a "$HOME/.netrc" file containing credentials. Remove that file here
446 rm "$HOME/.netrc"
448 # DO NOT fail build if any of the above lines fail.
451 </hudson.tasks.Shell>
454 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
458 # SPDX-License-Identifier: EPL-1.0
459 ##############################################################################
460 # Copyright (c) 2017 The Linux Foundation and others.
462 # All rights reserved. This program and the accompanying materials
463 # are made available under the terms of the Eclipse Public License v1.0
464 # which accompanies this distribution, and is available at
465 # http://www.eclipse.org/legal/epl-v10.html
466 ##############################################################################
467 echo "---> sysstat.sh"
468 set +e # DON'T fail build if script fails.
470 OS=$(facter operatingsystem)
471 case "$OS" in
473 SYSSTAT_PATH="/var/log/sysstat"
475 # Dont run the script when systat is not enabled by default
476 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
481 SYSSTAT_PATH="/var/log/sa"
489 SAR_DIR="$WORKSPACE/archives/sar-reports"
490 mkdir -p "$SAR_DIR"
491 cp "$SYSSTAT_PATH/"* "$_"
492 # convert sar data to ascii format
493 while IFS="" read -r sarfilenum
495 [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!0-9]/}"
496 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
498 # DON'T fail build if script fails.
501 </hudson.tasks.Shell>
502 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
504 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
505 <fileId>jenkins-log-archives-settings</fileId>
507 <variable>SETTINGS_FILE</variable>
508 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
510 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
513 <propertiesContent>SERVER_ID=logs</propertiesContent>
518 # SPDX-License-Identifier: EPL-1.0
519 ##############################################################################
520 # Copyright (c) 2017 The Linux Foundation and others.
522 # All rights reserved. This program and the accompanying materials
523 # are made available under the terms of the Eclipse Public License v1.0
524 # which accompanies this distribution, and is available at
525 # http://www.eclipse.org/legal/epl-v10.html
526 ##############################################################################
527 echo "---> create-netrc.sh"
529 # Ensure we fail the job if any steps fail.
532 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
533 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
534 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
535 -v x:username -o ":" -v x:password \
536 "$SETTINGS_FILE")
538 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
539 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
540 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
542 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
544 </hudson.tasks.Shell>
547 # SPDX-License-Identifier: EPL-1.0
548 ##############################################################################
549 # Copyright (c) 2017 The Linux Foundation and others.
551 # All rights reserved. This program and the accompanying materials
552 # are made available under the terms of the Eclipse Public License v1.0
553 # which accompanies this distribution, and is available at
554 # http://www.eclipse.org/legal/epl-v10.html
555 ##############################################################################
556 echo "---> lftools-install.sh"
558 # Script to install lftools via a version passed in via lf-infra-parameters
560 # Required parameters:
562 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
563 # set to a strict version number like '1.2.3' or using
564 # PEP-440 definitions.
568 # >=1.0.0,<2.0.0
570 # By default a released version of lftools should always be used.
571 # The purpose of the 2 variables below is so that lftools devs can test
572 # unreleased versions of lftools. There are 2 methods to install a dev version
575 # 1) gerrit patch: Used to test a patch that has not yet been merged.
576 # To do this set something like this:
577 # LFTOOLS_MODE=gerrit
578 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
580 # 2) git branch: Used to install an lftools version from a specific branch.
581 # To use this set the variables as follows:
583 # LFTOOLS_REFSPEC=master
585 # 3) release : The intended use case and default setting.
586 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
588 LFTOOLS_MODE=release # release | git | gerrit
589 LFTOOLS_REFSPEC=master
591 # Ensure we fail the job if any steps fail.
592 # DO NOT set -u as virtualenv's activate script has unbound variables
595 virtualenv --quiet "/tmp/v/lftools"
596 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
597 source "/tmp/v/lftools/bin/activate"
598 pip install --quiet --upgrade pip
600 case $LFTOOLS_MODE in
602 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
604 git fetch origin "$LFTOOLS_REFSPEC"
605 git checkout FETCH_HEAD
606 pip install --quiet --upgrade -r requirements.txt
607 pip install --quiet --upgrade -e .
612 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
616 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
617 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
620 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
626 # pipdeptree prints out a lot of information because lftools pulls in many
627 # dependencies. Let's only print it if we want to debug.
628 # echo "----> Pip Dependency Tree"
629 # pip install --quiet --upgrade pipdeptree
633 # SPDX-License-Identifier: EPL-1.0
634 ##############################################################################
635 # Copyright (c) 2017 The Linux Foundation and others.
637 # All rights reserved. This program and the accompanying materials
638 # are made available under the terms of the Eclipse Public License v1.0
639 # which accompanies this distribution, and is available at
640 # http://www.eclipse.org/legal/epl-v10.html
641 ##############################################################################
642 echo "---> logs-deploy.sh"
644 # Ensure we fail the job if any steps fail.
647 set -x # Trace commands for this script to make debugging easier.
649 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
650 LOGS_SERVER="${LOGS_SERVER:-None}"
652 if [ "${LOGS_SERVER}" == 'None' ]
654 set +x # Disable trace since we no longer need it
656 echo "WARNING: Logging server not set"
658 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
659 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
660 BUILD_URL="${BUILD_URL}"
662 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
663 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
665 set +x # Disable trace since we no longer need it.
667 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
670 </hudson.tasks.Shell>
673 # SPDX-License-Identifier: EPL-1.0
674 ##############################################################################
675 # Copyright (c) 2017 The Linux Foundation and others.
677 # All rights reserved. This program and the accompanying materials
678 # are made available under the terms of the Eclipse Public License v1.0
679 # which accompanies this distribution, and is available at
680 # http://www.eclipse.org/legal/epl-v10.html
681 ##############################################################################
683 # Clear log credential files
684 rm "$SETTINGS_FILE"
687 </hudson.tasks.Shell>
688 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
689 <regexp>^Build logs: .*</regexp>
690 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
692 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
693 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
694 <markBuildUnstable>false</markBuildUnstable>
695 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
696 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
698 <hudson.plugins.ws__cleanup.Pattern>
699 <pattern>**/*.jenkins-trigger</pattern>
701 </hudson.plugins.ws__cleanup.Pattern>
703 <deleteDirs>false</deleteDirs>
704 <cleanupMatrixParent>false</cleanupMatrixParent>
706 <cleanWhenSuccess>true</cleanWhenSuccess>
707 <cleanWhenUnstable>true</cleanWhenUnstable>
708 <cleanWhenFailure>true</cleanWhenFailure>
709 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
710 <cleanWhenAborted>true</cleanWhenAborted>
711 <notFailBuild>true</notFailBuild>
712 </hudson.plugins.ws__cleanup.WsCleanup>
715 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
716 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
717 <timeoutMinutes>30</timeoutMinutes>
718 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
719 <failBuild>true</failBuild>
720 <writingDescription>false</writingDescription>
721 <timeoutPercentage>0</timeoutPercentage>
722 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
723 <timeoutType>absolute</timeoutType>
724 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
725 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
726 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
727 <user>test-credential</user>
728 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
729 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
730 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
732 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
733 <fileId>npmrc</fileId>
734 <targetLocation>$HOME/.npmrc</targetLocation>
736 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
738 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>