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>
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.
87 <defaultValue>-Dstream=$STREAM</defaultValue>
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>$GERRIT_REFSPEC</refspec>
109 <url>$GIT_URL/$PROJECT</url>
110 <credentialsId>test-credential</credentialsId>
111 </hudson.plugins.git.UserRemoteConfig>
114 <hudson.plugins.git.BranchSpec>
115 <name>refs/heads/$GERRIT_BRANCH</name>
116 </hudson.plugins.git.BranchSpec>
119 <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
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 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
150 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
151 <compareType>ANT</compareType>
152 <pattern>releng/ciman</pattern>
154 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
155 <compareType>ANT</compareType>
156 <pattern>**/master</pattern>
157 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
160 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
161 <compareType>ANT</compareType>
162 <pattern>**</pattern>
163 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
165 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
166 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
169 <onSuccessful>false</onSuccessful>
170 <onFailed>false</onFailed>
171 <onUnstable>false</onUnstable>
172 <onNotBuilt>false</onNotBuilt>
174 <silentMode>false</silentMode>
175 <silentStartMode>false</silentStartMode>
176 <escapeQuotes>true</escapeQuotes>
177 <noNameAndEmailParameters>false</noNameAndEmailParameters>
178 <readableMessage>false</readableMessage>
179 <dependencyJobsNames/>
181 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
183 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
185 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
186 <excludeDrafts>true</excludeDrafts>
187 <excludeTrivialRebase>false</excludeTrivialRebase>
188 <excludeNoCodeChange>false</excludeNoCodeChange>
189 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginPatchsetCreatedEvent>
190 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginDraftPublishedEvent/>
191 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
192 <commentAddedCommentContains>recheck$</commentAddedCommentContains>
193 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
196 <buildFailureMessage/>
197 <buildSuccessfulMessage/>
198 <buildUnstableMessage/>
199 <buildNotBuiltMessage/>
200 <buildUnsuccessfulFilepath/>
202 <serverName>test-server</serverName>
203 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
207 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
208 </hudson.tasks.Shell>
210 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
211 </hudson.tasks.Shell>
213 <targets>--version</targets>
215 <mavenName>mvn33</mavenName>
216 <usePrivateRepository>false</usePrivateRepository>
217 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
218 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
219 </hudson.tasks.Maven>
221 <command>rm "$HOME/.wgetrc"</command>
222 </hudson.tasks.Shell>
223 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
225 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
226 <fileId>global-settings</fileId>
228 <variable>GLOBAL_SETTINGS_FILE</variable>
229 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
230 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
231 <fileId>gerrit-maven-project-settings</fileId>
233 <variable>SETTINGS_FILE</variable>
234 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
236 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
239 # SPDX-License-Identifier: EPL-1.0
240 ##############################################################################
241 # Copyright (c) 2017 The Linux Foundation and others.
243 # All rights reserved. This program and the accompanying materials
244 # are made available under the terms of the Eclipse Public License v1.0
245 # which accompanies this distribution, and is available at
246 # http://www.eclipse.org/legal/epl-v10.html
247 ##############################################################################
248 echo "---> lftools-install.sh"
250 # Script to install lftools via a version passed in via lf-infra-parameters
252 # Required parameters:
254 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
255 # set to a strict version number like '1.2.3' or using
256 # PEP-440 definitions.
260 # >=1.0.0,<2.0.0
262 # By default a released version of lftools should always be used.
263 # The purpose of the 2 variables below is so that lftools devs can test
264 # unreleased versions of lftools. There are 2 methods to install a dev version
267 # 1) gerrit patch: Used to test a patch that has not yet been merged.
268 # To do this set something like this:
269 # LFTOOLS_MODE=gerrit
270 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
272 # 2) git branch: Used to install an lftools version from a specific branch.
273 # To use this set the variables as follows:
275 # LFTOOLS_REFSPEC=master
277 # 3) release : The intended use case and default setting.
278 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
280 LFTOOLS_MODE=release # release | git | gerrit
281 LFTOOLS_REFSPEC=master
283 # Ensure we fail the job if any steps fail.
284 # DO NOT set -u as virtualenv's activate script has unbound variables
287 virtualenv --quiet "/tmp/v/lftools"
288 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
289 source "/tmp/v/lftools/bin/activate"
290 pip install --quiet --upgrade pip
292 case $LFTOOLS_MODE in
294 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
296 git fetch origin "$LFTOOLS_REFSPEC"
297 git checkout FETCH_HEAD
298 pip install --quiet --upgrade -r requirements.txt
299 pip install --quiet --upgrade -e .
304 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
308 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
309 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
312 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
318 # pipdeptree prints out a lot of information because lftools pulls in many
319 # dependencies. Let's only print it if we want to debug.
320 # echo "----> Pip Dependency Tree"
321 # pip install --quiet --upgrade pipdeptree
325 # SPDX-License-Identifier: EPL-1.0
326 ##############################################################################
327 # Copyright (c) 2017 The Linux Foundation and others.
329 # All rights reserved. This program and the accompanying materials
330 # are made available under the terms of the Eclipse Public License v1.0
331 # which accompanies this distribution, and is available at
332 # http://www.eclipse.org/legal/epl-v10.html
333 ##############################################################################
335 # This file contains a list of variables that are generally useful in many
336 # scripts. It is meant to be sourced in other scripts so that the variables can
339 MAVEN_OPTIONS="$(echo --show-version \
342 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
343 -Dmaven.repo.local=/tmp/r \
344 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
345 echo "$MAVEN_OPTIONS"
348 # SPDX-License-Identifier: EPL-1.0
349 ##############################################################################
350 # Copyright (c) 2017 The Linux Foundation and others.
352 # All rights reserved. This program and the accompanying materials
353 # are made available under the terms of the Eclipse Public License v1.0
354 # which accompanies this distribution, and is available at
355 # http://www.eclipse.org/legal/epl-v10.html
356 ##############################################################################
358 # This script builds a Maven project and deploys it into a staging repo which
359 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
361 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
362 # Ensure we fail the job if any steps fail.
368 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
369 # shellcheck disable=SC2086
371 --global-settings "$GLOBAL_SETTINGS_FILE" \
372 --settings "$SETTINGS_FILE" \
373 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
374 $MAVEN_PARAMS $MAVEN_OPTIONS
376 </hudson.tasks.Shell>
379 set +e # DO NOT cause build failure if any of the rm calls fail.
381 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
383 # In some cases we use the lf-provide-maven-settings macro to produce
384 # a "$HOME/.netrc" file containing credentials. Remove that file here
386 rm "$HOME/.netrc"
388 # DO NOT fail build if any of the above lines fail.
391 </hudson.tasks.Shell>
394 <hudson.plugins.findbugs.FindBugsPublisher plugin="findbugs">
395 <isRankActivated>false</isRankActivated>
400 <thresholdLimit>low</thresholdLimit>
401 <pluginName>[FINDBUGS] </pluginName>
403 <canRunOnFailed>false</canRunOnFailed>
404 <useStableBuildAsReference>false</useStableBuildAsReference>
405 <usePreviousBuildAsReference>false</usePreviousBuildAsReference>
406 <useDeltaValues>false</useDeltaValues>
410 <unstableTotalNormal/>
417 <shouldDetectModules>false</shouldDetectModules>
418 <dontComputeNew>true</dontComputeNew>
419 <doNotResolveRelativePaths>false</doNotResolveRelativePaths>
421 </hudson.plugins.findbugs.FindBugsPublisher>
422 <hudson.plugins.jacoco.JacocoPublisher>
423 <execPattern>**/**.exec</execPattern>
424 <classPattern>**/classes</classPattern>
425 <sourcePattern>**/src/main/java</sourcePattern>
428 <exclusionPattern>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</exclusionPattern>
429 <maximumBranchCoverage>10</maximumBranchCoverage>
430 <minimumBranchCoverage>20</minimumBranchCoverage>
431 <maximumMethodCoverage>50</maximumMethodCoverage>
432 <minimumMethodCoverage>40</minimumMethodCoverage>
433 </hudson.plugins.jacoco.JacocoPublisher>
434 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
438 # SPDX-License-Identifier: EPL-1.0
439 ##############################################################################
440 # Copyright (c) 2017 The Linux Foundation and others.
442 # All rights reserved. This program and the accompanying materials
443 # are made available under the terms of the Eclipse Public License v1.0
444 # which accompanies this distribution, and is available at
445 # http://www.eclipse.org/legal/epl-v10.html
446 ##############################################################################
447 echo "---> sysstat.sh"
448 set +e # DON'T fail build if script fails.
450 OS=$(facter operatingsystem)
451 case "$OS" in
453 SYSSTAT_PATH="/var/log/sysstat"
455 # Dont run the script when systat is not enabled by default
456 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
461 SYSSTAT_PATH="/var/log/sa"
469 SAR_DIR="$WORKSPACE/archives/sar-reports"
470 mkdir -p "$SAR_DIR"
471 cp "$SYSSTAT_PATH/"* "$_"
472 # convert sar data to ascii format
473 while IFS="" read -r s
475 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
476 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
478 # DON'T fail build if script fails.
481 </hudson.tasks.Shell>
482 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
484 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
485 <fileId>jenkins-log-archives-settings</fileId>
487 <variable>SETTINGS_FILE</variable>
488 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
490 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
493 <propertiesContent>SERVER_ID=logs</propertiesContent>
498 # SPDX-License-Identifier: EPL-1.0
499 ##############################################################################
500 # Copyright (c) 2017 The Linux Foundation and others.
502 # All rights reserved. This program and the accompanying materials
503 # are made available under the terms of the Eclipse Public License v1.0
504 # which accompanies this distribution, and is available at
505 # http://www.eclipse.org/legal/epl-v10.html
506 ##############################################################################
507 echo "---> create-netrc.sh"
509 # Ensure we fail the job if any steps fail.
512 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
513 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
514 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
515 -v x:username -o ":" -v x:password \
516 "$SETTINGS_FILE")
518 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
519 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
520 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
522 echo "machine $machine login $user password $pass" > ~/.netrc
524 </hudson.tasks.Shell>
527 # SPDX-License-Identifier: EPL-1.0
528 ##############################################################################
529 # Copyright (c) 2017 The Linux Foundation and others.
531 # All rights reserved. This program and the accompanying materials
532 # are made available under the terms of the Eclipse Public License v1.0
533 # which accompanies this distribution, and is available at
534 # http://www.eclipse.org/legal/epl-v10.html
535 ##############################################################################
536 echo "---> lftools-install.sh"
538 # Script to install lftools via a version passed in via lf-infra-parameters
540 # Required parameters:
542 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
543 # set to a strict version number like '1.2.3' or using
544 # PEP-440 definitions.
548 # >=1.0.0,<2.0.0
550 # By default a released version of lftools should always be used.
551 # The purpose of the 2 variables below is so that lftools devs can test
552 # unreleased versions of lftools. There are 2 methods to install a dev version
555 # 1) gerrit patch: Used to test a patch that has not yet been merged.
556 # To do this set something like this:
557 # LFTOOLS_MODE=gerrit
558 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
560 # 2) git branch: Used to install an lftools version from a specific branch.
561 # To use this set the variables as follows:
563 # LFTOOLS_REFSPEC=master
565 # 3) release : The intended use case and default setting.
566 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
568 LFTOOLS_MODE=release # release | git | gerrit
569 LFTOOLS_REFSPEC=master
571 # Ensure we fail the job if any steps fail.
572 # DO NOT set -u as virtualenv's activate script has unbound variables
575 virtualenv --quiet "/tmp/v/lftools"
576 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
577 source "/tmp/v/lftools/bin/activate"
578 pip install --quiet --upgrade pip
580 case $LFTOOLS_MODE in
582 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
584 git fetch origin "$LFTOOLS_REFSPEC"
585 git checkout FETCH_HEAD
586 pip install --quiet --upgrade -r requirements.txt
587 pip install --quiet --upgrade -e .
592 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
596 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
597 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
600 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
606 # pipdeptree prints out a lot of information because lftools pulls in many
607 # dependencies. Let's only print it if we want to debug.
608 # echo "----> Pip Dependency Tree"
609 # pip install --quiet --upgrade pipdeptree
613 # SPDX-License-Identifier: EPL-1.0
614 ##############################################################################
615 # Copyright (c) 2017 The Linux Foundation and others.
617 # All rights reserved. This program and the accompanying materials
618 # are made available under the terms of the Eclipse Public License v1.0
619 # which accompanies this distribution, and is available at
620 # http://www.eclipse.org/legal/epl-v10.html
621 ##############################################################################
622 echo "---> logs-deploy.sh"
624 # Ensure we fail the job if any steps fail.
627 set -x # Trace commands for this script to make debugging easier.
629 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
630 LOGS_SERVER="${LOGS_SERVER:-None}"
632 if [ "${LOGS_SERVER}" == 'None' ]
634 set +x # Disable trace since we no longer need it
636 echo "WARNING: Logging server not set"
638 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
639 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
640 BUILD_URL="${BUILD_URL}"
642 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
643 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
645 set +x # Disable trace since we no longer need it.
647 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
650 </hudson.tasks.Shell>
653 # SPDX-License-Identifier: EPL-1.0
654 ##############################################################################
655 # Copyright (c) 2017 The Linux Foundation and others.
657 # All rights reserved. This program and the accompanying materials
658 # are made available under the terms of the Eclipse Public License v1.0
659 # which accompanies this distribution, and is available at
660 # http://www.eclipse.org/legal/epl-v10.html
661 ##############################################################################
663 # Clear log credential files
664 rm "$SETTINGS_FILE"
667 </hudson.tasks.Shell>
668 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
669 <regexp>^Build logs: .*</regexp>
670 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
672 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
673 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
674 <markBuildUnstable>false</markBuildUnstable>
675 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
676 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
678 <hudson.plugins.ws__cleanup.Pattern>
679 <pattern>**/*.jenkins-trigger</pattern>
681 </hudson.plugins.ws__cleanup.Pattern>
683 <deleteDirs>false</deleteDirs>
684 <cleanupMatrixParent>false</cleanupMatrixParent>
686 <cleanWhenSuccess>true</cleanWhenSuccess>
687 <cleanWhenUnstable>true</cleanWhenUnstable>
688 <cleanWhenFailure>true</cleanWhenFailure>
689 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
690 <cleanWhenAborted>true</cleanWhenAborted>
691 <notFailBuild>true</notFailBuild>
692 </hudson.plugins.ws__cleanup.WsCleanup>
695 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
696 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
697 <timeoutMinutes>60</timeoutMinutes>
698 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
699 <failBuild>true</failBuild>
700 <writingDescription>false</writingDescription>
701 <timeoutPercentage>0</timeoutPercentage>
702 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
703 <timeoutType>absolute</timeoutType>
704 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
705 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
706 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
707 <user>test-credential</user>
708 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
709 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>