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 <jenkins.model.BuildDiscarderProperty>
14 <strategy class="hudson.tasks.LogRotator">
15 <daysToKeep>30</daysToKeep>
16 <numToKeep>-1</numToKeep>
17 <artifactDaysToKeep>-1</artifactDaysToKeep>
18 <artifactNumToKeep>0</artifactNumToKeep>
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.
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>
119 <url>$GIT_URL/$GERRIT_PROJECT</url>
120 <credentialsId>test-credential</credentialsId>
121 </hudson.plugins.git.UserRemoteConfig>
124 <hudson.plugins.git.BranchSpec>
125 <name>refs/heads/master</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="hudson.plugins.git.util.DefaultBuildChooser"/>
138 </hudson.plugins.git.extensions.impl.BuildChooserSetting>
139 <hudson.plugins.git.extensions.impl.SubmoduleOption>
140 <disableSubmodules>false</disableSubmodules>
141 <recursiveSubmodules>true</recursiveSubmodules>
142 <trackingSubmodules>false</trackingSubmodules>
143 <parentCredentials>false</parentCredentials>
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>
163 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
164 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
167 <onSuccessful>false</onSuccessful>
168 <onFailed>false</onFailed>
169 <onUnstable>false</onUnstable>
170 <onNotBuilt>false</onNotBuilt>
172 <silentMode>false</silentMode>
173 <silentStartMode>false</silentStartMode>
174 <escapeQuotes>true</escapeQuotes>
175 <noNameAndEmailParameters>false</noNameAndEmailParameters>
176 <readableMessage>false</readableMessage>
177 <dependencyJobsNames/>
179 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
181 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
183 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginChangeMergedEvent/>
184 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
185 <commentAddedCommentContains>remerge$</commentAddedCommentContains>
186 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
189 <buildFailureMessage/>
190 <buildSuccessfulMessage/>
191 <buildUnstableMessage/>
192 <buildNotBuiltMessage/>
193 <buildUnsuccessfulFilepath/>
195 <serverName>test-server</serverName>
196 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
200 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
201 </hudson.tasks.Shell>
203 <targets>--version</targets>
205 <mavenName>mvn33</mavenName>
206 <usePrivateRepository>false</usePrivateRepository>
207 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
208 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
209 </hudson.tasks.Maven>
211 <command>rm "$HOME/.wgetrc"</command>
212 </hudson.tasks.Shell>
213 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
215 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
216 <fileId>global-settings</fileId>
218 <variable>GLOBAL_SETTINGS_FILE</variable>
219 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
220 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
221 <fileId>gerrit-maven-project-settings</fileId>
223 <variable>SETTINGS_FILE</variable>
224 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
226 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
229 <propertiesContent>SERVER_ID=project-site</propertiesContent>
234 # SPDX-License-Identifier: EPL-1.0
235 ##############################################################################
236 # Copyright (c) 2017 The Linux Foundation and others.
238 # All rights reserved. This program and the accompanying materials
239 # are made available under the terms of the Eclipse Public License v1.0
240 # which accompanies this distribution, and is available at
241 # http://www.eclipse.org/legal/epl-v10.html
242 ##############################################################################
243 echo "---> create-netrc.sh"
245 # Ensure we fail the job if any steps fail.
248 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
249 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
250 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
251 -v x:username -o ":" -v x:password \
252 "$SETTINGS_FILE")
254 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
255 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
256 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
258 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
260 </hudson.tasks.Shell>
263 <propertiesContent>DEPLOY_PATH=org.example.project/$STREAM</propertiesContent>
268 # SPDX-License-Identifier: EPL-1.0
269 ##############################################################################
270 # Copyright (c) 2017 The Linux Foundation and others.
272 # All rights reserved. This program and the accompanying materials
273 # are made available under the terms of the Eclipse Public License v1.0
274 # which accompanies this distribution, and is available at
275 # http://www.eclipse.org/legal/epl-v10.html
276 ##############################################################################
278 # This file contains a list of variables that are generally useful in many
279 # scripts. It is meant to be sourced in other scripts so that the variables can
282 MAVEN_OPTIONS="$(echo --show-version \
285 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
286 -Dmaven.repo.local=/tmp/r \
287 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
288 echo "$MAVEN_OPTIONS"
291 # SPDX-License-Identifier: EPL-1.0
292 ##############################################################################
293 # Copyright (c) 2017 The Linux Foundation and others.
295 # All rights reserved. This program and the accompanying materials
296 # are made available under the terms of the Eclipse Public License v1.0
297 # which accompanies this distribution, and is available at
298 # http://www.eclipse.org/legal/epl-v10.html
299 ##############################################################################
301 # Generates javadoc in a Maven project.
303 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
304 # Ensure we fail the job if any steps fail.
308 JAVADOC_DIR="$WORKSPACE/archives/javadoc"
309 mkdir -p "$WORKSPACE/archives"
313 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
314 # shellcheck disable=SC2086
315 $MVN clean install javadoc:aggregate \
316 -Pq -Dmaven.javadoc.skip=false \
318 -Dcheckstyle.skip=true \
319 -Dfindbugs.skip=true \
320 --global-settings "$GLOBAL_SETTINGS_FILE" \
321 --settings "$SETTINGS_FILE" \
322 $MAVEN_OPTIONS $MAVEN_PARAMS
324 mv "$WORKSPACE/target/site/apidocs" "$JAVADOC_DIR"
327 # SPDX-License-Identifier: EPL-1.0
328 ##############################################################################
329 # Copyright (c) 2017 The Linux Foundation and others.
331 # All rights reserved. This program and the accompanying materials
332 # are made available under the terms of the Eclipse Public License v1.0
333 # which accompanies this distribution, and is available at
334 # http://www.eclipse.org/legal/epl-v10.html
335 ##############################################################################
336 echo "---> lftools-install.sh"
338 # Script to install lftools via a version passed in via lf-infra-parameters
340 # Required parameters:
342 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
343 # set to a strict version number like '1.2.3' or using
344 # PEP-440 definitions.
348 # >=1.0.0,<2.0.0
350 # By default a released version of lftools should always be used.
351 # The purpose of the 2 variables below is so that lftools devs can test
352 # unreleased versions of lftools. There are 2 methods to install a dev version
355 # 1) gerrit patch: Used to test a patch that has not yet been merged.
356 # To do this set something like this:
357 # LFTOOLS_MODE=gerrit
358 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
360 # 2) git branch: Used to install an lftools version from a specific branch.
361 # To use this set the variables as follows:
363 # LFTOOLS_REFSPEC=master
365 # 3) release : The intended use case and default setting.
366 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
368 LFTOOLS_MODE=release # release | git | gerrit
369 LFTOOLS_REFSPEC=master
371 # Ensure we fail the job if any steps fail.
372 # DO NOT set -u as virtualenv's activate script has unbound variables
375 virtualenv --quiet "/tmp/v/lftools"
376 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
377 source "/tmp/v/lftools/bin/activate"
378 pip install --quiet --upgrade pip
380 case $LFTOOLS_MODE in
382 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
384 git fetch origin "$LFTOOLS_REFSPEC"
385 git checkout FETCH_HEAD
386 pip install --quiet --upgrade -r requirements.txt
387 pip install --quiet --upgrade -e .
392 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
396 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
397 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
400 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
406 # pipdeptree prints out a lot of information because lftools pulls in many
407 # dependencies. Let's only print it if we want to debug.
408 # echo "----> Pip Dependency Tree"
409 # pip install --quiet --upgrade pipdeptree
413 # SPDX-License-Identifier: EPL-1.0
414 ##############################################################################
415 # Copyright (c) 2017 The Linux Foundation and others.
417 # All rights reserved. This program and the accompanying materials
418 # are made available under the terms of the Eclipse Public License v1.0
419 # which accompanies this distribution, and is available at
420 # http://www.eclipse.org/legal/epl-v10.html
421 ##############################################################################
423 # Publishes javadoc to a Maven project.
425 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
426 # Ensure we fail the job if any steps fail.
430 JAVADOC_DIR="$WORKSPACE/archives/javadoc"
432 pushd "$JAVADOC_DIR"
433 zip -r "$WORKSPACE/javadoc.zip" .
436 lftools deploy nexus-zip "$NEXUS_URL" "javadoc" "$DEPLOY_PATH" "$WORKSPACE/javadoc.zip"
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 sarfilenum
497 [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!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>