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 </parameterDefinitions>
101 </hudson.model.ParametersDefinitionProperty>
103 <scm class="hudson.plugins.git.GitSCM">
104 <configVersion>2</configVersion>
106 <hudson.plugins.git.UserRemoteConfig>
108 <refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
109 <url>git@github.com:example-org/releng/ciman</url>
110 <credentialsId>test-credential</credentialsId>
111 </hudson.plugins.git.UserRemoteConfig>
114 <hudson.plugins.git.BranchSpec>
116 </hudson.plugins.git.BranchSpec>
119 <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
120 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
121 <authorOrCommitter>false</authorOrCommitter>
122 <wipeOutWorkspace>true</wipeOutWorkspace>
123 <pruneBranches>false</pruneBranches>
124 <remotePoll>false</remotePoll>
125 <gitTool>Default</gitTool>
126 <submoduleCfg class="list"/>
131 <skipTag>true</skipTag>
133 <useShallowClone>false</useShallowClone>
134 <ignoreNotifyCommit>false</ignoreNotifyCommit>
136 <hudson.plugins.git.extensions.impl.SubmoduleOption>
137 <disableSubmodules>false</disableSubmodules>
138 <recursiveSubmodules>true</recursiveSubmodules>
139 <trackingSubmodules>false</trackingSubmodules>
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>
157 <triggerPhrase>^build release$</triggerPhrase>
158 <onlyTriggerPhrase>true</onlyTriggerPhrase>
159 <useGitHubHooks>true</useGitHubHooks>
160 <permitAll>true</permitAll>
161 <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
163 <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
164 <commitStatusContext>Maven Release</commitStatusContext>
165 </org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
167 </org.jenkinsci.plugins.ghprb.GhprbTrigger>
171 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
172 </hudson.tasks.Shell>
174 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
175 </hudson.tasks.Shell>
177 <targets>--version</targets>
179 <mavenName>mvn33</mavenName>
180 <usePrivateRepository>false</usePrivateRepository>
181 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
182 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
183 </hudson.tasks.Maven>
185 <command>rm "$HOME/.wgetrc"</command>
186 </hudson.tasks.Shell>
187 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
189 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
190 <fileId>global-settings</fileId>
192 <variable>GLOBAL_SETTINGS_FILE</variable>
193 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
194 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
195 <fileId>aproject-settings</fileId>
197 <variable>SETTINGS_FILE</variable>
198 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
200 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
203 <propertiesContent>SERVER_ID=project-staging</propertiesContent>
208 # SPDX-License-Identifier: EPL-1.0
209 ##############################################################################
210 # Copyright (c) 2017 The Linux Foundation and others.
212 # All rights reserved. This program and the accompanying materials
213 # are made available under the terms of the Eclipse Public License v1.0
214 # which accompanies this distribution, and is available at
215 # http://www.eclipse.org/legal/epl-v10.html
216 ##############################################################################
217 echo "---> create-netrc.sh"
219 # Ensure we fail the job if any steps fail.
222 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
223 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
224 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
225 -v x:username -o ":" -v x:password \
226 "$SETTINGS_FILE")
228 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
229 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
230 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
232 echo "machine $machine login $user password $pass" > ~/.netrc
234 </hudson.tasks.Shell>
237 # SPDX-License-Identifier: EPL-1.0
238 ##############################################################################
239 # Copyright (c) 2017 The Linux Foundation and others.
241 # All rights reserved. This program and the accompanying materials
242 # are made available under the terms of the Eclipse Public License v1.0
243 # which accompanies this distribution, and is available at
244 # http://www.eclipse.org/legal/epl-v10.html
245 ##############################################################################
246 echo "---> lftools-install.sh"
248 # Script to install lftools via a version passed in via lf-infra-parameters
250 # Required parameters:
252 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
253 # set to a strict version number like '1.2.3' or using
254 # PEP-440 definitions.
258 # >=1.0.0,<2.0.0
260 # By default a released version of lftools should always be used.
261 # The purpose of the 2 variables below is so that lftools devs can test
262 # unreleased versions of lftools. There are 2 methods to install a dev version
265 # 1) gerrit patch: Used to test a patch that has not yet been merged.
266 # To do this set something like this:
267 # LFTOOLS_MODE=gerrit
268 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
270 # 2) git branch: Used to install an lftools version from a specific branch.
271 # To use this set the variables as follows:
273 # LFTOOLS_REFSPEC=master
275 # 3) release : The intended use case and default setting.
276 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
278 LFTOOLS_MODE=release # release | git | gerrit
279 LFTOOLS_REFSPEC=master
281 # Ensure we fail the job if any steps fail.
282 # DO NOT set -u as virtualenv's activate script has unbound variables
285 virtualenv --quiet "/tmp/v/lftools"
286 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
287 source "/tmp/v/lftools/bin/activate"
288 pip install --quiet --upgrade pip
290 case $LFTOOLS_MODE in
292 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
294 git fetch origin "$LFTOOLS_REFSPEC"
295 git checkout FETCH_HEAD
296 pip install --quiet --upgrade -r requirements.txt
297 pip install --quiet --upgrade -e .
302 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
306 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
307 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
310 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
316 # pipdeptree prints out a lot of information because lftools pulls in many
317 # dependencies. Let's only print it if we want to debug.
318 # echo "----> Pip Dependency Tree"
319 # pip install --quiet --upgrade pipdeptree
323 # SPDX-License-Identifier: EPL-1.0
324 ##############################################################################
325 # Copyright (c) 2017 The Linux Foundation and others.
327 # All rights reserved. This program and the accompanying materials
328 # are made available under the terms of the Eclipse Public License v1.0
329 # which accompanies this distribution, and is available at
330 # http://www.eclipse.org/legal/epl-v10.html
331 ##############################################################################
333 # This file contains a list of variables that are generally useful in many
334 # scripts. It is meant to be sourced in other scripts so that the variables can
337 MAVEN_OPTIONS="$(echo --show-version \
340 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
341 -Dmaven.repo.local=/tmp/r \
342 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
343 echo "$MAVEN_OPTIONS"
346 # SPDX-License-Identifier: EPL-1.0
347 ##############################################################################
348 # Copyright (c) 2017 The Linux Foundation and others.
350 # All rights reserved. This program and the accompanying materials
351 # are made available under the terms of the Eclipse Public License v1.0
352 # which accompanies this distribution, and is available at
353 # http://www.eclipse.org/legal/epl-v10.html
354 ##############################################################################
356 # This script removes the -SNAPSHOT from a project to prepare it for release.
358 PATCH_DIR="$WORKSPACE/archives/patches"
359 mkdir -p "$PATCH_DIR"
361 # Ensure we fail the job if any steps fail.
364 echo "$PROJECT" "$(git rev-parse --verify HEAD)" | tee -a "$PATCH_DIR/taglist.log"
366 # Strip -SNAPSHOT from version to prepare release.
367 find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//g'
369 git commit -am "Release $PROJECT"
370 git format-patch --stdout "origin/$GERRIT_BRANCH" > "$PATCH_DIR/${PROJECT//\//-}.patch"
371 git bundle create "$PATCH_DIR/${PROJECT//\//-}.bundle" "origin/${GERRIT_BRANCH}..HEAD"
374 # SPDX-License-Identifier: EPL-1.0
375 ##############################################################################
376 # Copyright (c) 2017 The Linux Foundation and others.
378 # All rights reserved. This program and the accompanying materials
379 # are made available under the terms of the Eclipse Public License v1.0
380 # which accompanies this distribution, and is available at
381 # http://www.eclipse.org/legal/epl-v10.html
382 ##############################################################################
384 # This script builds a Maven project and deploys it into a staging repo which
385 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
387 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
388 # Ensure we fail the job if any steps fail.
394 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
395 # shellcheck disable=SC2086
397 --global-settings "$GLOBAL_SETTINGS_FILE" \
398 --settings "$SETTINGS_FILE" \
399 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
400 $MAVEN_PARAMS $MAVEN_OPTIONS
403 # SPDX-License-Identifier: EPL-1.0
404 ##############################################################################
405 # Copyright (c) 2017 The Linux Foundation and others.
407 # All rights reserved. This program and the accompanying materials
408 # are made available under the terms of the Eclipse Public License v1.0
409 # which accompanies this distribution, and is available at
410 # http://www.eclipse.org/legal/epl-v10.html
411 ##############################################################################
413 # This script publishes artifacts to a staging repo in Nexus.
415 # $WORKSPACE/m2repo : Exists and used to deploy the staging repository.
416 # $NEXUS_URL : Jenkins global variable should be defined.
417 # $STAGING_PROFILE_ID : Provided by a job parameter.
419 # Ensure we fail the job if any steps fail.
422 TMP_FILE="$(mktemp)"
423 lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
424 staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")
426 # Store repo info to a file in archives
427 mkdir -p "$WORKSPACE/archives"
428 echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt"
431 rm "$TMP_FILE"
433 </hudson.tasks.Shell>
436 set +e # DO NOT cause build failure if any of the rm calls fail.
438 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
440 # In some cases we use the lf-provide-maven-settings macro to produce
441 # a "$HOME/.netrc" file containing credentials. Remove that file here
443 rm "$HOME/.netrc"
445 # DO NOT fail build if any of the above lines fail.
448 </hudson.tasks.Shell>
451 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
455 # SPDX-License-Identifier: EPL-1.0
456 ##############################################################################
457 # Copyright (c) 2017 The Linux Foundation and others.
459 # All rights reserved. This program and the accompanying materials
460 # are made available under the terms of the Eclipse Public License v1.0
461 # which accompanies this distribution, and is available at
462 # http://www.eclipse.org/legal/epl-v10.html
463 ##############################################################################
464 echo "---> sysstat.sh"
465 set +e # DON'T fail build if script fails.
467 OS=$(facter operatingsystem)
468 case "$OS" in
470 SYSSTAT_PATH="/var/log/sysstat"
472 # Dont run the script when systat is not enabled by default
473 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
478 SYSSTAT_PATH="/var/log/sa"
486 SAR_DIR="$WORKSPACE/archives/sar-reports"
487 mkdir -p "$SAR_DIR"
488 cp "$SYSSTAT_PATH/"* "$_"
489 # convert sar data to ascii format
490 while IFS="" read -r s
492 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
493 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
495 # DON'T fail build if script fails.
498 </hudson.tasks.Shell>
499 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
501 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
502 <fileId>jenkins-log-archives-settings</fileId>
504 <variable>SETTINGS_FILE</variable>
505 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
507 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
510 <propertiesContent>SERVER_ID=logs</propertiesContent>
515 # SPDX-License-Identifier: EPL-1.0
516 ##############################################################################
517 # Copyright (c) 2017 The Linux Foundation and others.
519 # All rights reserved. This program and the accompanying materials
520 # are made available under the terms of the Eclipse Public License v1.0
521 # which accompanies this distribution, and is available at
522 # http://www.eclipse.org/legal/epl-v10.html
523 ##############################################################################
524 echo "---> create-netrc.sh"
526 # Ensure we fail the job if any steps fail.
529 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
530 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
531 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
532 -v x:username -o ":" -v x:password \
533 "$SETTINGS_FILE")
535 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
536 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
537 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
539 echo "machine $machine login $user password $pass" > ~/.netrc
541 </hudson.tasks.Shell>
544 # SPDX-License-Identifier: EPL-1.0
545 ##############################################################################
546 # Copyright (c) 2017 The Linux Foundation and others.
548 # All rights reserved. This program and the accompanying materials
549 # are made available under the terms of the Eclipse Public License v1.0
550 # which accompanies this distribution, and is available at
551 # http://www.eclipse.org/legal/epl-v10.html
552 ##############################################################################
553 echo "---> lftools-install.sh"
555 # Script to install lftools via a version passed in via lf-infra-parameters
557 # Required parameters:
559 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
560 # set to a strict version number like '1.2.3' or using
561 # PEP-440 definitions.
565 # >=1.0.0,<2.0.0
567 # By default a released version of lftools should always be used.
568 # The purpose of the 2 variables below is so that lftools devs can test
569 # unreleased versions of lftools. There are 2 methods to install a dev version
572 # 1) gerrit patch: Used to test a patch that has not yet been merged.
573 # To do this set something like this:
574 # LFTOOLS_MODE=gerrit
575 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
577 # 2) git branch: Used to install an lftools version from a specific branch.
578 # To use this set the variables as follows:
580 # LFTOOLS_REFSPEC=master
582 # 3) release : The intended use case and default setting.
583 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
585 LFTOOLS_MODE=release # release | git | gerrit
586 LFTOOLS_REFSPEC=master
588 # Ensure we fail the job if any steps fail.
589 # DO NOT set -u as virtualenv's activate script has unbound variables
592 virtualenv --quiet "/tmp/v/lftools"
593 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
594 source "/tmp/v/lftools/bin/activate"
595 pip install --quiet --upgrade pip
597 case $LFTOOLS_MODE in
599 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
601 git fetch origin "$LFTOOLS_REFSPEC"
602 git checkout FETCH_HEAD
603 pip install --quiet --upgrade -r requirements.txt
604 pip install --quiet --upgrade -e .
609 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
613 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
614 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
617 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
623 # pipdeptree prints out a lot of information because lftools pulls in many
624 # dependencies. Let's only print it if we want to debug.
625 # echo "----> Pip Dependency Tree"
626 # pip install --quiet --upgrade pipdeptree
630 # SPDX-License-Identifier: EPL-1.0
631 ##############################################################################
632 # Copyright (c) 2017 The Linux Foundation and others.
634 # All rights reserved. This program and the accompanying materials
635 # are made available under the terms of the Eclipse Public License v1.0
636 # which accompanies this distribution, and is available at
637 # http://www.eclipse.org/legal/epl-v10.html
638 ##############################################################################
639 echo "---> logs-deploy.sh"
641 # Ensure we fail the job if any steps fail.
644 set -x # Trace commands for this script to make debugging easier.
646 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
647 LOGS_SERVER="${LOGS_SERVER:-None}"
649 if [ "${LOGS_SERVER}" == 'None' ]
651 set +x # Disable trace since we no longer need it
653 echo "WARNING: Logging server not set"
655 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
656 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
657 BUILD_URL="${BUILD_URL}"
659 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
660 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
662 set +x # Disable trace since we no longer need it.
664 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
667 </hudson.tasks.Shell>
670 # SPDX-License-Identifier: EPL-1.0
671 ##############################################################################
672 # Copyright (c) 2017 The Linux Foundation and others.
674 # All rights reserved. This program and the accompanying materials
675 # are made available under the terms of the Eclipse Public License v1.0
676 # which accompanies this distribution, and is available at
677 # http://www.eclipse.org/legal/epl-v10.html
678 ##############################################################################
680 # Clear log credential files
681 rm "$SETTINGS_FILE"
684 </hudson.tasks.Shell>
685 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
686 <regexp>^Build logs: .*</regexp>
687 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
689 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
690 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
691 <markBuildUnstable>false</markBuildUnstable>
692 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
693 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
695 <hudson.plugins.ws__cleanup.Pattern>
696 <pattern>**/*.jenkins-trigger</pattern>
698 </hudson.plugins.ws__cleanup.Pattern>
700 <deleteDirs>false</deleteDirs>
701 <cleanupMatrixParent>false</cleanupMatrixParent>
703 <cleanWhenSuccess>true</cleanWhenSuccess>
704 <cleanWhenUnstable>true</cleanWhenUnstable>
705 <cleanWhenFailure>true</cleanWhenFailure>
706 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
707 <cleanWhenAborted>true</cleanWhenAborted>
708 <notFailBuild>true</notFailBuild>
709 </hudson.plugins.ws__cleanup.WsCleanup>
712 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
713 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
714 <timeoutMinutes>30</timeoutMinutes>
715 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
716 <failBuild>true</failBuild>
717 <writingDescription>false</writingDescription>
718 <timeoutPercentage>0</timeoutPercentage>
719 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
720 <timeoutType>absolute</timeoutType>
721 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
722 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
723 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
724 <user>test-credential</user>
725 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
726 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>