1 <?xml version="1.0" encoding="utf-8"?>
4 <description><!-- Managed by Jenkins Job Builder --></description>
5 <keepDependencies>false</keepDependencies>
6 <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
7 <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
8 <concurrentBuild>false</concurrentBuild>
9 <assignedNode>build-vm</assignedNode>
10 <canRoam>false</canRoam>
12 <jenkins.model.BuildDiscarderProperty>
13 <strategy class="hudson.tasks.LogRotator">
14 <daysToKeep>7</daysToKeep>
15 <numToKeep>-1</numToKeep>
16 <artifactDaysToKeep>-1</artifactDaysToKeep>
17 <artifactNumToKeep>0</artifactNumToKeep>
19 </jenkins.model.BuildDiscarderProperty>
20 <hudson.model.ParametersDefinitionProperty>
21 <parameterDefinitions>
22 <hudson.model.StringParameterDefinition>
24 <description>Parameter to identify a Gerrit project. This is typically the
25 project repo path as exists in Gerrit.
26 For example: ofextensions/circuitsw
28 <defaultValue>releng/ciman</defaultValue>
29 </hudson.model.StringParameterDefinition>
30 <hudson.model.StringParameterDefinition>
32 <description>Stream is often set to the same name as 'branch' but can
33 sometimes be used as a name representing a project's release code
36 <defaultValue>master</defaultValue>
37 </hudson.model.StringParameterDefinition>
38 <hudson.model.StringParameterDefinition>
39 <name>GERRIT_PROJECT</name>
40 <description>Parameter to identify Gerrit project. This is typically the
41 project repo path as exists in Gerrit.
42 For example: ofextensions/circuitsw
44 Note that Gerrit will override this parameter automatically if a
45 job is triggered by Gerrit.
47 <defaultValue>releng/ciman</defaultValue>
48 </hudson.model.StringParameterDefinition>
49 <hudson.model.StringParameterDefinition>
50 <name>GERRIT_BRANCH</name>
51 <description>Parameter to identify a Gerrit branch.
53 Note that Gerrit will override this parameter automatically if a
54 job is triggered by Gerrit.
56 <defaultValue>master</defaultValue>
57 </hudson.model.StringParameterDefinition>
58 <hudson.model.StringParameterDefinition>
59 <name>GERRIT_REFSPEC</name>
60 <description>Parameter to identify a refspec when pulling from Gerrit.
62 Note that Gerrit will override this parameter automatically if a
63 job is triggered by Gerrit.
65 <defaultValue>refs/heads/master</defaultValue>
66 </hudson.model.StringParameterDefinition>
67 <hudson.model.StringParameterDefinition>
68 <name>LFTOOLS_VERSION</name>
69 <description>Version of lftools to install. Can be a specific version like
70 '0.6.0' or a PEP-440 definition.
71 https://www.python.org/dev/peps/pep-0440/
72 For example '<1.0.0' or '>=1.0.0,<2.0.0'.
74 <defaultValue><1.0.0</defaultValue>
75 </hudson.model.StringParameterDefinition>
76 <hudson.model.StringParameterDefinition>
77 <name>PACKER_VERSION</name>
78 <description>Packer version to download and install.</description>
79 <defaultValue>1.0.2</defaultValue>
80 </hudson.model.StringParameterDefinition>
81 </parameterDefinitions>
82 </hudson.model.ParametersDefinitionProperty>
84 <scm class="hudson.plugins.git.GitSCM">
85 <configVersion>2</configVersion>
87 <hudson.plugins.git.UserRemoteConfig>
89 <refspec>$GERRIT_REFSPEC</refspec>
90 <url>$GIT_URL/$GERRIT_PROJECT</url>
91 <credentialsId>test-credential</credentialsId>
92 </hudson.plugins.git.UserRemoteConfig>
95 <hudson.plugins.git.BranchSpec>
96 <name>refs/heads/$GERRIT_BRANCH</name>
97 </hudson.plugins.git.BranchSpec>
100 <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser"/>
101 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
102 <authorOrCommitter>false</authorOrCommitter>
103 <wipeOutWorkspace>true</wipeOutWorkspace>
104 <pruneBranches>false</pruneBranches>
105 <remotePoll>false</remotePoll>
106 <gitTool>Default</gitTool>
107 <submoduleCfg class="list"/>
112 <skipTag>true</skipTag>
114 <useShallowClone>false</useShallowClone>
115 <ignoreNotifyCommit>false</ignoreNotifyCommit>
117 <hudson.plugins.git.extensions.impl.SubmoduleOption>
118 <disableSubmodules>false</disableSubmodules>
119 <recursiveSubmodules>true</recursiveSubmodules>
120 <trackingSubmodules>false</trackingSubmodules>
122 <timeout>10</timeout>
123 </hudson.plugins.git.extensions.impl.SubmoduleOption>
124 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
127 <triggers class="vector">
128 <hudson.triggers.TimerTrigger>
129 <spec>00 10 1 * *</spec>
130 </hudson.triggers.TimerTrigger>
131 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
134 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
135 <compareType>ANT</compareType>
136 <pattern>releng/ciman</pattern>
138 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
139 <compareType>ANT</compareType>
140 <pattern>**/master</pattern>
141 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
144 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
145 <compareType>ANT</compareType>
146 <pattern>packer/vars/ubuntu1604.json</pattern>
147 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
148 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
149 <compareType>ANT</compareType>
150 <pattern>packer/templates/java-builder.json</pattern>
151 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
152 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
153 <compareType>ANT</compareType>
154 <pattern>packer/provision/java-builder.sh</pattern>
155 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
156 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
157 <compareType>ANT</compareType>
158 <pattern>packer/provision/lib/**</pattern>
159 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.FilePath>
161 <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
162 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
165 <onSuccessful>false</onSuccessful>
166 <onFailed>false</onFailed>
167 <onUnstable>false</onUnstable>
168 <onNotBuilt>false</onNotBuilt>
170 <silentMode>false</silentMode>
171 <silentStartMode>false</silentStartMode>
172 <escapeQuotes>true</escapeQuotes>
173 <noNameAndEmailParameters>false</noNameAndEmailParameters>
174 <readableMessage>false</readableMessage>
175 <dependencyJobsNames/>
177 <dynamicTriggerConfiguration>False</dynamicTriggerConfiguration>
179 <allowTriggeringUnreviewedPatches>false</allowTriggeringUnreviewedPatches>
181 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginChangeMergedEvent/>
182 <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
183 <commentAddedCommentContains>remerge$</commentAddedCommentContains>
184 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedContainsEvent>
187 <buildFailureMessage/>
188 <buildSuccessfulMessage/>
189 <buildUnstableMessage/>
190 <buildNotBuiltMessage/>
191 <buildUnsuccessfulFilepath/>
193 <serverName>test-server</serverName>
194 </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
197 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
199 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
200 <fileId>ci-packer-cloud-env</fileId>
202 <variable>CLOUDENV</variable>
203 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
205 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
208 <propertiesContent>PACKER_VERSION=1.0.2
214 # SPDX-License-Identifier: EPL-1.0
215 ##############################################################################
216 # Copyright (c) 2017 The Linux Foundation and others.
218 # All rights reserved. This program and the accompanying materials
219 # are made available under the terms of the Eclipse Public License v1.0
220 # which accompanies this distribution, and is available at
221 # http://www.eclipse.org/legal/epl-v10.html
222 ##############################################################################
223 echo "---> packer-install.sh"
224 # The script checks for the packer binaries and installs the binary
225 # if its not available
227 # $PACKER_VERSION : Define a packer version passed as job paramter
229 PACKER_VERSION="${PACKER_VERSION:-1.0.2}"
231 # Ensure we fail the job if any steps fail.
233 # Default packer binary made available on the build image
234 packer_bin="/usr/local/bin/packer.io"
236 if hash "$packer_bin" 2>/dev/null; then
237 echo "packer.io command is available."
239 echo "packer.io command not is available. Installing packer ..."
240 # Installs Hashicorp's Packer binary, required for verify & merge packer jobs
242 wget "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
243 mkdir -p "${WORKSPACE}/bin"
244 unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/
245 # rename packer to avoid conflict with binary in cracklib
246 mv ${WORKSPACE}/bin/packer "${WORKSPACE}/bin/packer.io"
251 # SPDX-License-Identifier: EPL-1.0
252 ##############################################################################
253 # Copyright (c) 2017 The Linux Foundation and others.
255 # All rights reserved. This program and the accompanying materials
256 # are made available under the terms of the Eclipse Public License v1.0
257 # which accompanies this distribution, and is available at
258 # http://www.eclipse.org/legal/epl-v10.html
259 ##############################################################################
260 echo "---> packer-validate.sh"
261 # The script validates an packers files.
263 # $CLOUDENV : Provides the cloud credential file.
265 # Ensure we fail the job if any steps fail.
268 PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
269 mkdir -p "$PACKER_LOGS_DIR"
270 export PATH="${WORKSPACE}/bin:$PATH"
273 varfiles=(../packer/vars/*.json)
274 templates=(../packer/templates/*.json)
276 for varfile in "${varfiles[@]}"; do
277 for template in "${templates[@]}"; do
278 export PACKER_LOG="yes" && \
279 export PACKER_LOG_PATH="$PACKER_LOGS_DIR/packer-validate-${varfile##*/}-${template##*/}.log" && \
280 packer.io validate -var-file="$CLOUDENV" \
281 -var-file="$varfile" "$template"
282 if [ $? -ne 0 ]; then
288 </hudson.tasks.Shell>
291 # SPDX-License-Identifier: EPL-1.0
292 ##############################################################################
293 # Copyright (c) 2017 The Linux Foundation and others.
295 # All rights reserved. This program and the accompanying materials
296 # are made available under the terms of the Eclipse Public License v1.0
297 # which accompanies this distribution, and is available at
298 # http://www.eclipse.org/legal/epl-v10.html
299 ##############################################################################
300 echo "---> packer-clear-credentials.sh"
302 set +e # DO NOT cause build failure if any of the rm calls fail.
303 rm "$CLOUDENV"
306 </hudson.tasks.Shell>
307 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
309 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
310 <fileId>ci-packer-cloud-env</fileId>
312 <variable>CLOUDENV</variable>
313 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
315 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
318 <propertiesContent>PACKER_PLATFORM=ubuntu1604
319 PACKER_TEMPLATE=java-builder
326 # SPDX-License-Identifier: EPL-1.0
327 ##############################################################################
328 # Copyright (c) 2017 The Linux Foundation and others.
330 # All rights reserved. This program and the accompanying materials
331 # are made available under the terms of the Eclipse Public License v1.0
332 # which accompanies this distribution, and is available at
333 # http://www.eclipse.org/legal/epl-v10.html
334 ##############################################################################
335 echo "---> packer-install.sh"
336 # The script checks for the packer binaries and installs the binary
337 # if its not available
339 # $PACKER_VERSION : Define a packer version passed as job paramter
341 PACKER_VERSION="${PACKER_VERSION:-1.0.2}"
343 # Ensure we fail the job if any steps fail.
345 # Default packer binary made available on the build image
346 packer_bin="/usr/local/bin/packer.io"
348 if hash "$packer_bin" 2>/dev/null; then
349 echo "packer.io command is available."
351 echo "packer.io command not is available. Installing packer ..."
352 # Installs Hashicorp's Packer binary, required for verify & merge packer jobs
354 wget "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
355 mkdir -p "${WORKSPACE}/bin"
356 unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/
357 # rename packer to avoid conflict with binary in cracklib
358 mv ${WORKSPACE}/bin/packer "${WORKSPACE}/bin/packer.io"
363 # SPDX-License-Identifier: EPL-1.0
364 ##############################################################################
365 # Copyright (c) 2017 The Linux Foundation and others.
367 # All rights reserved. This program and the accompanying materials
368 # are made available under the terms of the Eclipse Public License v1.0
369 # which accompanies this distribution, and is available at
370 # http://www.eclipse.org/legal/epl-v10.html
371 ##############################################################################
372 echo "---> packer-build.sh"
373 # The script builds an image using packer
374 # $CLOUDENV : Provides the cloud credential file.
375 # $PACKER_PLATFORM : Provides the packer platform.
376 # $PACKER_TEMPLATE : Provides the packer temnplate.
378 # Ensure we fail the job if any steps fail.
381 PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
382 PACKER_BUILD_LOG="$PACKER_LOGS_DIR/packer-build.log"
383 mkdir -p "$PACKER_LOGS_DIR"
384 export PATH="${WORKSPACE}/bin:$PATH"
387 export PACKER_LOG="yes" && \
388 export PACKER_LOG_PATH="$PACKER_BUILD_LOG" && \
389 packer.io build -color=false \
390 -var-file="$CLOUDENV" \
391 -var-file="../packer/vars/$PACKER_PLATFORM.json" \
392 "../packer/templates/$PACKER_TEMPLATE.json"
394 # Retrive the list of cloud providers
395 clouds=($(jq -r '.builders[].name' "../packer/templates/$PACKER_TEMPLATE.json"))
397 # Split public/private clouds logs
398 for cloud in "${clouds[@]}"; do
399 grep -e "$cloud" "$PACKER_BUILD_LOG" > "$PACKER_LOGS_DIR/packer-build_$cloud.log" 2>&1
402 </hudson.tasks.Shell>
405 # SPDX-License-Identifier: EPL-1.0
406 ##############################################################################
407 # Copyright (c) 2017 The Linux Foundation and others.
409 # All rights reserved. This program and the accompanying materials
410 # are made available under the terms of the Eclipse Public License v1.0
411 # which accompanies this distribution, and is available at
412 # http://www.eclipse.org/legal/epl-v10.html
413 ##############################################################################
414 echo "---> packer-clear-credentials.sh"
416 set +e # DO NOT cause build failure if any of the rm calls fail.
417 rm "$CLOUDENV"
420 </hudson.tasks.Shell>
423 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
427 # SPDX-License-Identifier: EPL-1.0
428 ##############################################################################
429 # Copyright (c) 2017 The Linux Foundation and others.
431 # All rights reserved. This program and the accompanying materials
432 # are made available under the terms of the Eclipse Public License v1.0
433 # which accompanies this distribution, and is available at
434 # http://www.eclipse.org/legal/epl-v10.html
435 ##############################################################################
436 echo "---> sysstat.sh"
437 set +e # DON'T fail build if script fails.
439 OS=$(facter operatingsystem)
440 case "$OS" in
442 SYSSTAT_PATH="/var/log/sysstat"
444 # Dont run the script when systat is not enabled by default
445 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
450 SYSSTAT_PATH="/var/log/sa"
458 SAR_DIR="$WORKSPACE/archives/sar-reports"
459 mkdir -p "$SAR_DIR"
460 cp "$SYSSTAT_PATH/"* "$_"
461 # convert sar data to ascii format
462 while IFS="" read -r s
464 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
465 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
467 # DON'T fail build if script fails.
470 </hudson.tasks.Shell>
471 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
473 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
474 <fileId>jenkins-log-archives-settings</fileId>
476 <variable>SETTINGS_FILE</variable>
477 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
479 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
482 <propertiesContent>SERVER_ID=logs</propertiesContent>
487 # SPDX-License-Identifier: EPL-1.0
488 ##############################################################################
489 # Copyright (c) 2017 The Linux Foundation and others.
491 # All rights reserved. This program and the accompanying materials
492 # are made available under the terms of the Eclipse Public License v1.0
493 # which accompanies this distribution, and is available at
494 # http://www.eclipse.org/legal/epl-v10.html
495 ##############################################################################
496 echo "---> create-netrc.sh"
498 # Ensure we fail the job if any steps fail.
501 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
502 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
503 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
504 -v x:username -o ":" -v x:password \
505 "$SETTINGS_FILE")
507 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
508 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
509 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
511 echo "machine $machine login $user password $pass" > ~/.netrc
513 </hudson.tasks.Shell>
516 # SPDX-License-Identifier: EPL-1.0
517 ##############################################################################
518 # Copyright (c) 2017 The Linux Foundation and others.
520 # All rights reserved. This program and the accompanying materials
521 # are made available under the terms of the Eclipse Public License v1.0
522 # which accompanies this distribution, and is available at
523 # http://www.eclipse.org/legal/epl-v10.html
524 ##############################################################################
525 echo "---> lftools-install.sh"
527 # Script to install lftools via a version passed in via lf-infra-parameters
529 # Required parameters:
531 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
532 # set to a strict version number like '1.2.3' or using
533 # PEP-440 definitions.
537 # >=1.0.0,<2.0.0
539 # By default a released version of lftools should always be used.
540 # The purpose of the 2 variables below is so that lftools devs can test
541 # unreleased versions of lftools. There are 2 methods to install a dev version
544 # 1) gerrit patch: Used to test a patch that has not yet been merged.
545 # To do this set something like this:
546 # LFTOOLS_MODE=gerrit
547 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
549 # 2) git branch: Used to install an lftools version from a specific branch.
550 # To use this set the variables as follows:
552 # LFTOOLS_REFSPEC=master
554 # 3) release : The intended use case and default setting.
555 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
557 LFTOOLS_MODE=release # release | git | gerrit
558 LFTOOLS_REFSPEC=master
560 # Ensure we fail the job if any steps fail.
561 # DO NOT set -u as virtualenv's activate script has unbound variables
564 virtualenv --quiet "/tmp/v/lftools"
565 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
566 source "/tmp/v/lftools/bin/activate"
567 pip install --quiet --upgrade pip
569 case $LFTOOLS_MODE in
571 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
573 git fetch origin "$LFTOOLS_REFSPEC"
574 git checkout FETCH_HEAD
575 pip install --quiet --upgrade -r requirements.txt
576 pip install --quiet --upgrade -e .
581 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
585 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
586 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
589 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
595 # pipdeptree prints out a lot of information because lftools pulls in many
596 # dependencies. Let's only print it if we want to debug.
597 # echo "----> Pip Dependency Tree"
598 # pip install --quiet --upgrade pipdeptree
602 # SPDX-License-Identifier: EPL-1.0
603 ##############################################################################
604 # Copyright (c) 2017 The Linux Foundation and others.
606 # All rights reserved. This program and the accompanying materials
607 # are made available under the terms of the Eclipse Public License v1.0
608 # which accompanies this distribution, and is available at
609 # http://www.eclipse.org/legal/epl-v10.html
610 ##############################################################################
611 echo "---> logs-deploy.sh"
613 # Ensure we fail the job if any steps fail.
616 set -x # Trace commands for this script to make debugging easier.
618 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
619 LOGS_SERVER="${LOGS_SERVER:-None}"
621 if [ "${LOGS_SERVER}" == 'None' ]
623 set +x # Disable trace since we no longer need it
625 echo "WARNING: Logging server not set"
627 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
628 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
629 BUILD_URL="${BUILD_URL}"
631 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
632 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
634 set +x # Disable trace since we no longer need it.
636 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
639 </hudson.tasks.Shell>
642 # SPDX-License-Identifier: EPL-1.0
643 ##############################################################################
644 # Copyright (c) 2017 The Linux Foundation and others.
646 # All rights reserved. This program and the accompanying materials
647 # are made available under the terms of the Eclipse Public License v1.0
648 # which accompanies this distribution, and is available at
649 # http://www.eclipse.org/legal/epl-v10.html
650 ##############################################################################
652 # Clear log credential files
653 rm "$SETTINGS_FILE"
656 </hudson.tasks.Shell>
657 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
658 <regexp>^Build logs: .*</regexp>
659 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
661 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
662 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
663 <markBuildUnstable>false</markBuildUnstable>
664 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
665 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
667 <hudson.plugins.ws__cleanup.Pattern>
668 <pattern>**/*.jenkins-trigger</pattern>
670 </hudson.plugins.ws__cleanup.Pattern>
672 <deleteDirs>false</deleteDirs>
673 <cleanupMatrixParent>false</cleanupMatrixParent>
675 <cleanWhenSuccess>true</cleanWhenSuccess>
676 <cleanWhenUnstable>true</cleanWhenUnstable>
677 <cleanWhenFailure>true</cleanWhenFailure>
678 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
679 <cleanWhenAborted>true</cleanWhenAborted>
680 <notFailBuild>true</notFailBuild>
681 </hudson.plugins.ws__cleanup.WsCleanup>
684 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
685 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
686 <timeoutMinutes>45</timeoutMinutes>
687 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
688 <failBuild>true</failBuild>
689 <writingDescription>false</writingDescription>
690 <timeoutPercentage>0</timeoutPercentage>
691 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
692 <timeoutType>absolute</timeoutType>
693 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
694 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
695 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
696 <user>test-credential</user>
697 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
698 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>