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 </parameterDefinitions>
106 </hudson.model.ParametersDefinitionProperty>
108 <scm class="hudson.plugins.git.GitSCM">
109 <configVersion>2</configVersion>
111 <hudson.plugins.git.UserRemoteConfig>
114 <url>$GIT_URL/$GERRIT_PROJECT</url>
115 <credentialsId>test-credential</credentialsId>
116 </hudson.plugins.git.UserRemoteConfig>
119 <hudson.plugins.git.BranchSpec>
120 <name>refs/heads/master</name>
121 </hudson.plugins.git.BranchSpec>
124 <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
125 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
126 <authorOrCommitter>false</authorOrCommitter>
127 <wipeOutWorkspace>true</wipeOutWorkspace>
128 <pruneBranches>false</pruneBranches>
129 <remotePoll>false</remotePoll>
130 <gitTool>Default</gitTool>
131 <submoduleCfg class="list"/>
136 <skipTag>true</skipTag>
138 <useShallowClone>false</useShallowClone>
139 <ignoreNotifyCommit>false</ignoreNotifyCommit>
141 <hudson.plugins.git.extensions.impl.SubmoduleOption>
142 <disableSubmodules>false</disableSubmodules>
143 <recursiveSubmodules>true</recursiveSubmodules>
144 <trackingSubmodules>false</trackingSubmodules>
146 <timeout>10</timeout>
147 </hudson.plugins.git.extensions.impl.SubmoduleOption>
148 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
151 <triggers class="vector">
152 <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>
164 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
165 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
168 <onSuccessful>false</onSuccessful>
169 <onFailed>false</onFailed>
170 <onUnstable>false</onUnstable>
171 <onNotBuilt>false</onNotBuilt>
173 <silentMode>false</silentMode>
174 <silentStartMode>false</silentStartMode>
175 <escapeQuotes>true</escapeQuotes>
176 <noNameAndEmailParameters>false</noNameAndEmailParameters>
177 <readableMessage>false</readableMessage>
178 <dependencyJobsNames/>
180 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
182 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
184 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginChangeMergedEvent/>
185 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
186 <commentAddedCommentContains>remerge$</commentAddedCommentContains>
187 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
190 <buildFailureMessage/>
191 <buildSuccessfulMessage/>
192 <buildUnstableMessage/>
193 <buildNotBuiltMessage/>
194 <buildUnsuccessfulFilepath/>
196 <serverName>test-server</serverName>
197 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
201 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
202 </hudson.tasks.Shell>
204 <targets>--version</targets>
206 <mavenName>mvn33</mavenName>
207 <usePrivateRepository>false</usePrivateRepository>
208 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
209 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
210 </hudson.tasks.Maven>
212 <command>rm "$HOME/.wgetrc"</command>
213 </hudson.tasks.Shell>
214 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
216 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
217 <fileId>global-settings</fileId>
219 <variable>GLOBAL_SETTINGS_FILE</variable>
220 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
221 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
222 <fileId>gerrit-maven-project-settings</fileId>
224 <variable>SETTINGS_FILE</variable>
225 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
227 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
230 <propertiesContent>SERVER_ID=project-site</propertiesContent>
235 # SPDX-License-Identifier: EPL-1.0
236 ##############################################################################
237 # Copyright (c) 2017 The Linux Foundation and others.
239 # All rights reserved. This program and the accompanying materials
240 # are made available under the terms of the Eclipse Public License v1.0
241 # which accompanies this distribution, and is available at
242 # http://www.eclipse.org/legal/epl-v10.html
243 ##############################################################################
244 echo "---> create-netrc.sh"
246 # Ensure we fail the job if any steps fail.
249 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
250 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
251 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
252 -v x:username -o ":" -v x:password \
253 "$SETTINGS_FILE")
255 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
256 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
257 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
259 echo "machine $machine login $user password $pass" > ~/.netrc
261 </hudson.tasks.Shell>
264 <propertiesContent>DEPLOY_PATH=org.example.project/$STREAM</propertiesContent>
269 # SPDX-License-Identifier: EPL-1.0
270 ##############################################################################
271 # Copyright (c) 2017 The Linux Foundation and others.
273 # All rights reserved. This program and the accompanying materials
274 # are made available under the terms of the Eclipse Public License v1.0
275 # which accompanies this distribution, and is available at
276 # http://www.eclipse.org/legal/epl-v10.html
277 ##############################################################################
279 # This file contains a list of variables that are generally useful in many
280 # scripts. It is meant to be sourced in other scripts so that the variables can
283 MAVEN_OPTIONS="$(echo --show-version \
286 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
287 -Dmaven.repo.local=/tmp/r \
288 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
289 echo "$MAVEN_OPTIONS"
292 # SPDX-License-Identifier: EPL-1.0
293 ##############################################################################
294 # Copyright (c) 2017 The Linux Foundation and others.
296 # All rights reserved. This program and the accompanying materials
297 # are made available under the terms of the Eclipse Public License v1.0
298 # which accompanies this distribution, and is available at
299 # http://www.eclipse.org/legal/epl-v10.html
300 ##############################################################################
302 # Generates javadoc in a Maven project.
304 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
305 # Ensure we fail the job if any steps fail.
309 JAVADOC_DIR="$WORKSPACE/archives/javadoc"
310 mkdir -p "$WORKSPACE/archives"
314 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
315 # shellcheck disable=SC2086
316 $MVN clean javadoc:aggregate \
317 --global-settings "$GLOBAL_SETTINGS_FILE" \
318 --settings "$SETTINGS_FILE" \
319 $MAVEN_PARAMS $MAVEN_OPTIONS
321 mv "$WORKSPACE/target/site/apidocs" "$JAVADOC_DIR"
324 # SPDX-License-Identifier: EPL-1.0
325 ##############################################################################
326 # Copyright (c) 2017 The Linux Foundation and others.
328 # All rights reserved. This program and the accompanying materials
329 # are made available under the terms of the Eclipse Public License v1.0
330 # which accompanies this distribution, and is available at
331 # http://www.eclipse.org/legal/epl-v10.html
332 ##############################################################################
333 echo "---> lftools-install.sh"
335 # Script to install lftools via a version passed in via lf-infra-parameters
337 # Required parameters:
339 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
340 # set to a strict version number like '1.2.3' or using
341 # PEP-440 definitions.
345 # >=1.0.0,<2.0.0
347 # By default a released version of lftools should always be used.
348 # The purpose of the 2 variables below is so that lftools devs can test
349 # unreleased versions of lftools. There are 2 methods to install a dev version
352 # 1) gerrit patch: Used to test a patch that has not yet been merged.
353 # To do this set something like this:
354 # LFTOOLS_MODE=gerrit
355 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
357 # 2) git branch: Used to install an lftools version from a specific branch.
358 # To use this set the variables as follows:
360 # LFTOOLS_REFSPEC=master
362 # 3) release : The intended use case and default setting.
363 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
365 LFTOOLS_MODE=release # release | git | gerrit
366 LFTOOLS_REFSPEC=master
368 # Ensure we fail the job if any steps fail.
369 # DO NOT set -u as virtualenv's activate script has unbound variables
372 virtualenv --quiet "/tmp/v/lftools"
373 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
374 source "/tmp/v/lftools/bin/activate"
375 pip install --quiet --upgrade pip
377 case $LFTOOLS_MODE in
379 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
381 git fetch origin "$LFTOOLS_REFSPEC"
382 git checkout FETCH_HEAD
383 pip install --quiet --upgrade -r requirements.txt
384 pip install --quiet --upgrade -e .
389 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
393 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
394 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
397 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
403 # pipdeptree prints out a lot of information because lftools pulls in many
404 # dependencies. Let's only print it if we want to debug.
405 # echo "----> Pip Dependency Tree"
406 # pip install --quiet --upgrade pipdeptree
410 # SPDX-License-Identifier: EPL-1.0
411 ##############################################################################
412 # Copyright (c) 2017 The Linux Foundation and others.
414 # All rights reserved. This program and the accompanying materials
415 # are made available under the terms of the Eclipse Public License v1.0
416 # which accompanies this distribution, and is available at
417 # http://www.eclipse.org/legal/epl-v10.html
418 ##############################################################################
420 # Publishes javadoc to a Maven project.
422 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
423 # Ensure we fail the job if any steps fail.
427 JAVADOC_DIR="$WORKSPACE/archives/javadoc"
429 pushd "$JAVADOC_DIR"
430 zip -r "$WORKSPACE/javadoc.zip" .
433 lftools deploy nexus-zip "$NEXUS_URL" "javadoc" "$DEPLOY_PATH" "$WORKSPACE/javadoc.zip"
435 </hudson.tasks.Shell>
438 set +e # DO NOT cause build failure if any of the rm calls fail.
440 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
442 # In some cases we use the lf-provide-maven-settings macro to produce
443 # a "$HOME/.netrc" file containing credentials. Remove that file here
445 rm "$HOME/.netrc"
447 # DO NOT fail build if any of the above lines fail.
450 </hudson.tasks.Shell>
453 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
457 # SPDX-License-Identifier: EPL-1.0
458 ##############################################################################
459 # Copyright (c) 2017 The Linux Foundation and others.
461 # All rights reserved. This program and the accompanying materials
462 # are made available under the terms of the Eclipse Public License v1.0
463 # which accompanies this distribution, and is available at
464 # http://www.eclipse.org/legal/epl-v10.html
465 ##############################################################################
466 echo "---> sysstat.sh"
467 set +e # DON'T fail build if script fails.
469 OS=$(facter operatingsystem)
470 case "$OS" in
472 SYSSTAT_PATH="/var/log/sysstat"
474 # Dont run the script when systat is not enabled by default
475 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
480 SYSSTAT_PATH="/var/log/sa"
488 SAR_DIR="$WORKSPACE/archives/sar-reports"
489 mkdir -p "$SAR_DIR"
490 cp "$SYSSTAT_PATH/"* "$_"
491 # convert sar data to ascii format
492 while IFS="" read -r s
494 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
495 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
497 # DON'T fail build if script fails.
500 </hudson.tasks.Shell>
501 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
503 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
504 <fileId>jenkins-log-archives-settings</fileId>
506 <variable>SETTINGS_FILE</variable>
507 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
509 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
512 <propertiesContent>SERVER_ID=logs</propertiesContent>
517 # SPDX-License-Identifier: EPL-1.0
518 ##############################################################################
519 # Copyright (c) 2017 The Linux Foundation and others.
521 # All rights reserved. This program and the accompanying materials
522 # are made available under the terms of the Eclipse Public License v1.0
523 # which accompanies this distribution, and is available at
524 # http://www.eclipse.org/legal/epl-v10.html
525 ##############################################################################
526 echo "---> create-netrc.sh"
528 # Ensure we fail the job if any steps fail.
531 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
532 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
533 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
534 -v x:username -o ":" -v x:password \
535 "$SETTINGS_FILE")
537 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
538 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
539 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
541 echo "machine $machine login $user password $pass" > ~/.netrc
543 </hudson.tasks.Shell>
546 # SPDX-License-Identifier: EPL-1.0
547 ##############################################################################
548 # Copyright (c) 2017 The Linux Foundation and others.
550 # All rights reserved. This program and the accompanying materials
551 # are made available under the terms of the Eclipse Public License v1.0
552 # which accompanies this distribution, and is available at
553 # http://www.eclipse.org/legal/epl-v10.html
554 ##############################################################################
555 echo "---> lftools-install.sh"
557 # Script to install lftools via a version passed in via lf-infra-parameters
559 # Required parameters:
561 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
562 # set to a strict version number like '1.2.3' or using
563 # PEP-440 definitions.
567 # >=1.0.0,<2.0.0
569 # By default a released version of lftools should always be used.
570 # The purpose of the 2 variables below is so that lftools devs can test
571 # unreleased versions of lftools. There are 2 methods to install a dev version
574 # 1) gerrit patch: Used to test a patch that has not yet been merged.
575 # To do this set something like this:
576 # LFTOOLS_MODE=gerrit
577 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
579 # 2) git branch: Used to install an lftools version from a specific branch.
580 # To use this set the variables as follows:
582 # LFTOOLS_REFSPEC=master
584 # 3) release : The intended use case and default setting.
585 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
587 LFTOOLS_MODE=release # release | git | gerrit
588 LFTOOLS_REFSPEC=master
590 # Ensure we fail the job if any steps fail.
591 # DO NOT set -u as virtualenv's activate script has unbound variables
594 virtualenv --quiet "/tmp/v/lftools"
595 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
596 source "/tmp/v/lftools/bin/activate"
597 pip install --quiet --upgrade pip
599 case $LFTOOLS_MODE in
601 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
603 git fetch origin "$LFTOOLS_REFSPEC"
604 git checkout FETCH_HEAD
605 pip install --quiet --upgrade -r requirements.txt
606 pip install --quiet --upgrade -e .
611 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
615 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
616 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
619 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
625 # pipdeptree prints out a lot of information because lftools pulls in many
626 # dependencies. Let's only print it if we want to debug.
627 # echo "----> Pip Dependency Tree"
628 # pip install --quiet --upgrade pipdeptree
632 # SPDX-License-Identifier: EPL-1.0
633 ##############################################################################
634 # Copyright (c) 2017 The Linux Foundation and others.
636 # All rights reserved. This program and the accompanying materials
637 # are made available under the terms of the Eclipse Public License v1.0
638 # which accompanies this distribution, and is available at
639 # http://www.eclipse.org/legal/epl-v10.html
640 ##############################################################################
641 echo "---> logs-deploy.sh"
643 # Ensure we fail the job if any steps fail.
646 set -x # Trace commands for this script to make debugging easier.
648 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
649 LOGS_SERVER="${LOGS_SERVER:-None}"
651 if [ "${LOGS_SERVER}" == 'None' ]
653 set +x # Disable trace since we no longer need it
655 echo "WARNING: Logging server not set"
657 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
658 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
659 BUILD_URL="${BUILD_URL}"
661 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
662 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
664 set +x # Disable trace since we no longer need it.
666 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
669 </hudson.tasks.Shell>
672 # SPDX-License-Identifier: EPL-1.0
673 ##############################################################################
674 # Copyright (c) 2017 The Linux Foundation and others.
676 # All rights reserved. This program and the accompanying materials
677 # are made available under the terms of the Eclipse Public License v1.0
678 # which accompanies this distribution, and is available at
679 # http://www.eclipse.org/legal/epl-v10.html
680 ##############################################################################
682 # Clear log credential files
683 rm "$SETTINGS_FILE"
686 </hudson.tasks.Shell>
687 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
688 <regexp>^Build logs: .*</regexp>
689 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
691 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
692 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
693 <markBuildUnstable>false</markBuildUnstable>
694 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
695 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
697 <hudson.plugins.ws__cleanup.Pattern>
698 <pattern>**/*.jenkins-trigger</pattern>
700 </hudson.plugins.ws__cleanup.Pattern>
702 <deleteDirs>false</deleteDirs>
703 <cleanupMatrixParent>false</cleanupMatrixParent>
705 <cleanWhenSuccess>true</cleanWhenSuccess>
706 <cleanWhenUnstable>true</cleanWhenUnstable>
707 <cleanWhenFailure>true</cleanWhenFailure>
708 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
709 <cleanWhenAborted>true</cleanWhenAborted>
710 <notFailBuild>true</notFailBuild>
711 </hudson.plugins.ws__cleanup.WsCleanup>
714 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
715 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
716 <timeoutMinutes>30</timeoutMinutes>
717 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
718 <failBuild>true</failBuild>
719 <writingDescription>false</writingDescription>
720 <timeoutPercentage>0</timeoutPercentage>
721 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
722 <timeoutType>absolute</timeoutType>
723 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
724 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
725 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
726 <user>test-credential</user>
727 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
728 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>