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 </parameterDefinitions>
106 </hudson.model.ParametersDefinitionProperty>
108 <scm class="hudson.plugins.git.GitSCM">
109 <configVersion>2</configVersion>
111 <hudson.plugins.git.UserRemoteConfig>
113 <refspec>$GERRIT_REFSPEC</refspec>
114 <url>$GIT_URL/$PROJECT</url>
115 <credentialsId>test-credential</credentialsId>
116 </hudson.plugins.git.UserRemoteConfig>
119 <hudson.plugins.git.BranchSpec>
120 <name>refs/heads/$GERRIT_BRANCH</name>
121 </hudson.plugins.git.BranchSpec>
124 <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
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 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
155 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
156 <compareType>ANT</compareType>
157 <pattern>releng/ciman</pattern>
159 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
160 <compareType>ANT</compareType>
161 <pattern>**/master</pattern>
162 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
165 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
166 <compareType>ANT</compareType>
167 <pattern>**</pattern>
168 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
170 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
171 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
174 <onSuccessful>false</onSuccessful>
175 <onFailed>false</onFailed>
176 <onUnstable>false</onUnstable>
177 <onNotBuilt>false</onNotBuilt>
179 <silentMode>false</silentMode>
180 <silentStartMode>false</silentStartMode>
181 <escapeQuotes>true</escapeQuotes>
182 <noNameAndEmailParameters>false</noNameAndEmailParameters>
183 <readableMessage>false</readableMessage>
184 <dependencyJobsNames/>
186 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
188 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
190 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
191 <excludeDrafts>true</excludeDrafts>
192 <excludeTrivialRebase>false</excludeTrivialRebase>
193 <excludeNoCodeChange>false</excludeNoCodeChange>
194 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
195 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
196 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
197 <commentAddedCommentContains>recheck$</commentAddedCommentContains>
198 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
201 <buildFailureMessage/>
202 <buildSuccessfulMessage/>
203 <buildUnstableMessage/>
204 <buildNotBuiltMessage/>
205 <buildUnsuccessfulFilepath/>
207 <serverName>test-server</serverName>
208 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
212 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
213 </hudson.tasks.Shell>
215 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
216 </hudson.tasks.Shell>
218 <targets>--version</targets>
220 <mavenName>mvn33</mavenName>
221 <usePrivateRepository>false</usePrivateRepository>
222 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
223 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
224 </hudson.tasks.Maven>
226 <command>rm "$HOME/.wgetrc"</command>
227 </hudson.tasks.Shell>
228 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
230 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
231 <fileId>global-settings</fileId>
233 <variable>GLOBAL_SETTINGS_FILE</variable>
234 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
235 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
236 <fileId>gerrit-maven-project-settings</fileId>
238 <variable>SETTINGS_FILE</variable>
239 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
241 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
244 # SPDX-License-Identifier: EPL-1.0
245 ##############################################################################
246 # Copyright (c) 2017 The Linux Foundation and others.
248 # All rights reserved. This program and the accompanying materials
249 # are made available under the terms of the Eclipse Public License v1.0
250 # which accompanies this distribution, and is available at
251 # http://www.eclipse.org/legal/epl-v10.html
252 ##############################################################################
253 echo "---> lftools-install.sh"
255 # Script to install lftools via a version passed in via lf-infra-parameters
257 # Required parameters:
259 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
260 # set to a strict version number like '1.2.3' or using
261 # PEP-440 definitions.
265 # >=1.0.0,<2.0.0
267 # By default a released version of lftools should always be used.
268 # The purpose of the 2 variables below is so that lftools devs can test
269 # unreleased versions of lftools. There are 2 methods to install a dev version
272 # 1) gerrit patch: Used to test a patch that has not yet been merged.
273 # To do this set something like this:
274 # LFTOOLS_MODE=gerrit
275 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
277 # 2) git branch: Used to install an lftools version from a specific branch.
278 # To use this set the variables as follows:
280 # LFTOOLS_REFSPEC=master
282 # 3) release : The intended use case and default setting.
283 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
285 LFTOOLS_MODE=release # release | git | gerrit
286 LFTOOLS_REFSPEC=master
288 # Ensure we fail the job if any steps fail.
289 # DO NOT set -u as virtualenv's activate script has unbound variables
292 virtualenv --quiet "/tmp/v/lftools"
293 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
294 source "/tmp/v/lftools/bin/activate"
295 pip install --quiet --upgrade pip
297 case $LFTOOLS_MODE in
299 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
301 git fetch origin "$LFTOOLS_REFSPEC"
302 git checkout FETCH_HEAD
303 pip install --quiet --upgrade -r requirements.txt
304 pip install --quiet --upgrade -e .
309 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
313 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
314 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
317 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
323 # pipdeptree prints out a lot of information because lftools pulls in many
324 # dependencies. Let's only print it if we want to debug.
325 # echo "----> Pip Dependency Tree"
326 # pip install --quiet --upgrade pipdeptree
330 # SPDX-License-Identifier: EPL-1.0
331 ##############################################################################
332 # Copyright (c) 2017 The Linux Foundation and others.
334 # All rights reserved. This program and the accompanying materials
335 # are made available under the terms of the Eclipse Public License v1.0
336 # which accompanies this distribution, and is available at
337 # http://www.eclipse.org/legal/epl-v10.html
338 ##############################################################################
340 # This file contains a list of variables that are generally useful in many
341 # scripts. It is meant to be sourced in other scripts so that the variables can
344 MAVEN_OPTIONS="$(echo --show-version \
347 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
348 -Dmaven.repo.local=/tmp/r \
349 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
350 echo "$MAVEN_OPTIONS"
353 # SPDX-License-Identifier: EPL-1.0
354 ##############################################################################
355 # Copyright (c) 2017 The Linux Foundation and others.
357 # All rights reserved. This program and the accompanying materials
358 # are made available under the terms of the Eclipse Public License v1.0
359 # which accompanies this distribution, and is available at
360 # http://www.eclipse.org/legal/epl-v10.html
361 ##############################################################################
363 # This script builds a Maven project and deploys it into a staging repo which
364 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
366 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
367 # Ensure we fail the job if any steps fail.
373 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
374 # shellcheck disable=SC2086
376 --global-settings "$GLOBAL_SETTINGS_FILE" \
377 --settings "$SETTINGS_FILE" \
378 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
379 $MAVEN_PARAMS $MAVEN_OPTIONS
381 </hudson.tasks.Shell>
384 set +e # DO NOT cause build failure if any of the rm calls fail.
386 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
388 # In some cases we use the lf-provide-maven-settings macro to produce
389 # a "$HOME/.netrc" file containing credentials. Remove that file here
391 rm "$HOME/.netrc"
393 # DO NOT fail build if any of the above lines fail.
396 </hudson.tasks.Shell>
399 <hudson.plugins.findbugs.FindBugsPublisher plugin="findbugs">
400 <isRankActivated>false</isRankActivated>
405 <thresholdLimit>low</thresholdLimit>
406 <pluginName>[FINDBUGS] </pluginName>
408 <canRunOnFailed>false</canRunOnFailed>
409 <useStableBuildAsReference>false</useStableBuildAsReference>
410 <usePreviousBuildAsReference>false</usePreviousBuildAsReference>
411 <useDeltaValues>false</useDeltaValues>
415 <unstableTotalNormal/>
422 <shouldDetectModules>false</shouldDetectModules>
423 <dontComputeNew>true</dontComputeNew>
424 <doNotResolveRelativePaths>false</doNotResolveRelativePaths>
426 </hudson.plugins.findbugs.FindBugsPublisher>
427 <hudson.plugins.jacoco.JacocoPublisher>
428 <execPattern>**/**.exec</execPattern>
429 <classPattern>**/classes</classPattern>
430 <sourcePattern>**/src/main/java</sourcePattern>
433 <exclusionPattern>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</exclusionPattern>
434 <maximumBranchCoverage>10</maximumBranchCoverage>
435 <minimumBranchCoverage>20</minimumBranchCoverage>
436 <maximumMethodCoverage>50</maximumMethodCoverage>
437 <minimumMethodCoverage>40</minimumMethodCoverage>
438 </hudson.plugins.jacoco.JacocoPublisher>
439 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
443 # SPDX-License-Identifier: EPL-1.0
444 ##############################################################################
445 # Copyright (c) 2017 The Linux Foundation and others.
447 # All rights reserved. This program and the accompanying materials
448 # are made available under the terms of the Eclipse Public License v1.0
449 # which accompanies this distribution, and is available at
450 # http://www.eclipse.org/legal/epl-v10.html
451 ##############################################################################
452 echo "---> sysstat.sh"
453 set +e # DON'T fail build if script fails.
455 OS=$(facter operatingsystem)
456 case "$OS" in
458 SYSSTAT_PATH="/var/log/sysstat"
460 # Dont run the script when systat is not enabled by default
461 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
466 SYSSTAT_PATH="/var/log/sa"
474 SAR_DIR="$WORKSPACE/archives/sar-reports"
475 mkdir -p "$SAR_DIR"
476 cp "$SYSSTAT_PATH/"* "$_"
477 # convert sar data to ascii format
478 while IFS="" read -r s
480 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
481 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
483 # DON'T fail build if script fails.
486 </hudson.tasks.Shell>
487 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
489 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
490 <fileId>jenkins-log-archives-settings</fileId>
492 <variable>SETTINGS_FILE</variable>
493 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
495 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
498 <propertiesContent>SERVER_ID=logs</propertiesContent>
503 # SPDX-License-Identifier: EPL-1.0
504 ##############################################################################
505 # Copyright (c) 2017 The Linux Foundation and others.
507 # All rights reserved. This program and the accompanying materials
508 # are made available under the terms of the Eclipse Public License v1.0
509 # which accompanies this distribution, and is available at
510 # http://www.eclipse.org/legal/epl-v10.html
511 ##############################################################################
512 echo "---> create-netrc.sh"
514 # Ensure we fail the job if any steps fail.
517 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
518 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
519 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
520 -v x:username -o ":" -v x:password \
521 "$SETTINGS_FILE")
523 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
524 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
525 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
527 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
529 </hudson.tasks.Shell>
532 # SPDX-License-Identifier: EPL-1.0
533 ##############################################################################
534 # Copyright (c) 2017 The Linux Foundation and others.
536 # All rights reserved. This program and the accompanying materials
537 # are made available under the terms of the Eclipse Public License v1.0
538 # which accompanies this distribution, and is available at
539 # http://www.eclipse.org/legal/epl-v10.html
540 ##############################################################################
541 echo "---> lftools-install.sh"
543 # Script to install lftools via a version passed in via lf-infra-parameters
545 # Required parameters:
547 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
548 # set to a strict version number like '1.2.3' or using
549 # PEP-440 definitions.
553 # >=1.0.0,<2.0.0
555 # By default a released version of lftools should always be used.
556 # The purpose of the 2 variables below is so that lftools devs can test
557 # unreleased versions of lftools. There are 2 methods to install a dev version
560 # 1) gerrit patch: Used to test a patch that has not yet been merged.
561 # To do this set something like this:
562 # LFTOOLS_MODE=gerrit
563 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
565 # 2) git branch: Used to install an lftools version from a specific branch.
566 # To use this set the variables as follows:
568 # LFTOOLS_REFSPEC=master
570 # 3) release : The intended use case and default setting.
571 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
573 LFTOOLS_MODE=release # release | git | gerrit
574 LFTOOLS_REFSPEC=master
576 # Ensure we fail the job if any steps fail.
577 # DO NOT set -u as virtualenv's activate script has unbound variables
580 virtualenv --quiet "/tmp/v/lftools"
581 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
582 source "/tmp/v/lftools/bin/activate"
583 pip install --quiet --upgrade pip
585 case $LFTOOLS_MODE in
587 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
589 git fetch origin "$LFTOOLS_REFSPEC"
590 git checkout FETCH_HEAD
591 pip install --quiet --upgrade -r requirements.txt
592 pip install --quiet --upgrade -e .
597 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
601 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
602 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
605 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
611 # pipdeptree prints out a lot of information because lftools pulls in many
612 # dependencies. Let's only print it if we want to debug.
613 # echo "----> Pip Dependency Tree"
614 # pip install --quiet --upgrade pipdeptree
618 # SPDX-License-Identifier: EPL-1.0
619 ##############################################################################
620 # Copyright (c) 2017 The Linux Foundation and others.
622 # All rights reserved. This program and the accompanying materials
623 # are made available under the terms of the Eclipse Public License v1.0
624 # which accompanies this distribution, and is available at
625 # http://www.eclipse.org/legal/epl-v10.html
626 ##############################################################################
627 echo "---> logs-deploy.sh"
629 # Ensure we fail the job if any steps fail.
632 set -x # Trace commands for this script to make debugging easier.
634 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
635 LOGS_SERVER="${LOGS_SERVER:-None}"
637 if [ "${LOGS_SERVER}" == 'None' ]
639 set +x # Disable trace since we no longer need it
641 echo "WARNING: Logging server not set"
643 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
644 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
645 BUILD_URL="${BUILD_URL}"
647 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
648 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
650 set +x # Disable trace since we no longer need it.
652 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
655 </hudson.tasks.Shell>
658 # SPDX-License-Identifier: EPL-1.0
659 ##############################################################################
660 # Copyright (c) 2017 The Linux Foundation and others.
662 # All rights reserved. This program and the accompanying materials
663 # are made available under the terms of the Eclipse Public License v1.0
664 # which accompanies this distribution, and is available at
665 # http://www.eclipse.org/legal/epl-v10.html
666 ##############################################################################
668 # Clear log credential files
669 rm "$SETTINGS_FILE"
672 </hudson.tasks.Shell>
673 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
674 <regexp>^Build logs: .*</regexp>
675 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
677 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
678 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
679 <markBuildUnstable>false</markBuildUnstable>
680 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
681 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
683 <hudson.plugins.ws__cleanup.Pattern>
684 <pattern>**/*.jenkins-trigger</pattern>
686 </hudson.plugins.ws__cleanup.Pattern>
688 <deleteDirs>false</deleteDirs>
689 <cleanupMatrixParent>false</cleanupMatrixParent>
691 <cleanWhenSuccess>true</cleanWhenSuccess>
692 <cleanWhenUnstable>true</cleanWhenUnstable>
693 <cleanWhenFailure>true</cleanWhenFailure>
694 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
695 <cleanWhenAborted>true</cleanWhenAborted>
696 <notFailBuild>true</notFailBuild>
697 </hudson.plugins.ws__cleanup.WsCleanup>
700 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
701 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
702 <timeoutMinutes>60</timeoutMinutes>
703 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
704 <failBuild>true</failBuild>
705 <writingDescription>false</writingDescription>
706 <timeoutPercentage>0</timeoutPercentage>
707 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
708 <timeoutType>absolute</timeoutType>
709 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
710 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
711 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
712 <user>test-credential</user>
713 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
714 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>