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.1.1</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.1.1
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.
234 if hash packer.io 2>/dev/null; then
235 echo "packer.io command is available."
237 echo "packer.io command not is available. Installing packer ..."
238 # Installs Hashicorp's Packer binary, required for verify & merge packer jobs
240 wget -nv "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
241 mkdir -p "${WORKSPACE}/bin"
242 unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/
243 # rename packer to avoid conflict with binary in cracklib
244 mv ${WORKSPACE}/bin/packer "${WORKSPACE}/bin/packer.io"
249 # SPDX-License-Identifier: EPL-1.0
250 ##############################################################################
251 # Copyright (c) 2017 The Linux Foundation and others.
253 # All rights reserved. This program and the accompanying materials
254 # are made available under the terms of the Eclipse Public License v1.0
255 # which accompanies this distribution, and is available at
256 # http://www.eclipse.org/legal/epl-v10.html
257 ##############################################################################
258 echo "---> packer-validate.sh"
259 # The script validates an packers files.
261 # $CLOUDENV : Provides the cloud credential file.
263 # Ensure we fail the job if any steps fail.
266 PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
267 mkdir -p "$PACKER_LOGS_DIR"
268 export PATH="${WORKSPACE}/bin:$PATH"
271 varfiles=(../packer/vars/*.json)
272 templates=(../packer/templates/*.json)
274 for varfile in "${varfiles[@]}"; do
275 for template in "${templates[@]}"; do
276 export PACKER_LOG="yes" && \
277 export PACKER_LOG_PATH="$PACKER_LOGS_DIR/packer-validate-${varfile##*/}-${template##*/}.log" && \
278 packer.io validate -var-file="$CLOUDENV" \
279 -var-file="$varfile" "$template"
280 if [ $? -ne 0 ]; then
286 </hudson.tasks.Shell>
289 # SPDX-License-Identifier: EPL-1.0
290 ##############################################################################
291 # Copyright (c) 2017 The Linux Foundation and others.
293 # All rights reserved. This program and the accompanying materials
294 # are made available under the terms of the Eclipse Public License v1.0
295 # which accompanies this distribution, and is available at
296 # http://www.eclipse.org/legal/epl-v10.html
297 ##############################################################################
298 echo "---> packer-clear-credentials.sh"
300 set +e # DO NOT cause build failure if any of the rm calls fail.
301 rm "$CLOUDENV"
304 </hudson.tasks.Shell>
305 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
307 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
308 <fileId>ci-packer-cloud-env</fileId>
310 <variable>CLOUDENV</variable>
311 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
313 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
316 <propertiesContent>PACKER_PLATFORM=ubuntu1604
317 PACKER_TEMPLATE=java-builder
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 "---> packer-install.sh"
334 # The script checks for the packer binaries and installs the binary
335 # if its not available
337 # $PACKER_VERSION : Define a packer version passed as job paramter
339 PACKER_VERSION="${PACKER_VERSION:-1.0.2}"
341 # Ensure we fail the job if any steps fail.
344 if hash packer.io 2>/dev/null; then
345 echo "packer.io command is available."
347 echo "packer.io command not is available. Installing packer ..."
348 # Installs Hashicorp's Packer binary, required for verify & merge packer jobs
350 wget -nv "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
351 mkdir -p "${WORKSPACE}/bin"
352 unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/
353 # rename packer to avoid conflict with binary in cracklib
354 mv ${WORKSPACE}/bin/packer "${WORKSPACE}/bin/packer.io"
359 # SPDX-License-Identifier: EPL-1.0
360 ##############################################################################
361 # Copyright (c) 2017 The Linux Foundation and others.
363 # All rights reserved. This program and the accompanying materials
364 # are made available under the terms of the Eclipse Public License v1.0
365 # which accompanies this distribution, and is available at
366 # http://www.eclipse.org/legal/epl-v10.html
367 ##############################################################################
368 echo "---> packer-build.sh"
369 # The script builds an image using packer
370 # $CLOUDENV : Provides the cloud credential file.
371 # $PACKER_PLATFORM : Provides the packer platform.
372 # $PACKER_TEMPLATE : Provides the packer temnplate.
374 # Ensure we fail the job if any steps fail.
377 PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
378 PACKER_BUILD_LOG="$PACKER_LOGS_DIR/packer-build.log"
379 mkdir -p "$PACKER_LOGS_DIR"
380 export PATH="${WORKSPACE}/bin:$PATH"
383 export PACKER_LOG="yes" && \
384 export PACKER_LOG_PATH="$PACKER_BUILD_LOG" && \
385 packer.io build -color=false \
386 -var-file="$CLOUDENV" \
387 -var-file="../packer/vars/$PACKER_PLATFORM.json" \
388 "../packer/templates/$PACKER_TEMPLATE.json"
390 # Retrive the list of cloud providers
391 clouds=($(jq -r '.builders[].name' "../packer/templates/$PACKER_TEMPLATE.json"))
393 # Split public/private clouds logs
394 for cloud in "${clouds[@]}"; do
395 grep -e "$cloud" "$PACKER_BUILD_LOG" > "$PACKER_LOGS_DIR/packer-build_$cloud.log" 2>&1
398 </hudson.tasks.Shell>
401 # SPDX-License-Identifier: EPL-1.0
402 ##############################################################################
403 # Copyright (c) 2017 The Linux Foundation and others.
405 # All rights reserved. This program and the accompanying materials
406 # are made available under the terms of the Eclipse Public License v1.0
407 # which accompanies this distribution, and is available at
408 # http://www.eclipse.org/legal/epl-v10.html
409 ##############################################################################
410 echo "---> packer-clear-credentials.sh"
412 set +e # DO NOT cause build failure if any of the rm calls fail.
413 rm "$CLOUDENV"
416 </hudson.tasks.Shell>
419 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
423 # SPDX-License-Identifier: EPL-1.0
424 ##############################################################################
425 # Copyright (c) 2017 The Linux Foundation and others.
427 # All rights reserved. This program and the accompanying materials
428 # are made available under the terms of the Eclipse Public License v1.0
429 # which accompanies this distribution, and is available at
430 # http://www.eclipse.org/legal/epl-v10.html
431 ##############################################################################
432 echo "---> sysstat.sh"
433 set +e # DON'T fail build if script fails.
435 OS=$(facter operatingsystem)
436 case "$OS" in
438 SYSSTAT_PATH="/var/log/sysstat"
440 # Dont run the script when systat is not enabled by default
441 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
446 SYSSTAT_PATH="/var/log/sa"
454 SAR_DIR="$WORKSPACE/archives/sar-reports"
455 mkdir -p "$SAR_DIR"
456 cp "$SYSSTAT_PATH/"* "$_"
457 # convert sar data to ascii format
458 while IFS="" read -r s
460 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
461 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
463 # DON'T fail build if script fails.
466 </hudson.tasks.Shell>
467 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
469 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
470 <fileId>jenkins-log-archives-settings</fileId>
472 <variable>SETTINGS_FILE</variable>
473 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
475 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
478 <propertiesContent>SERVER_ID=logs</propertiesContent>
483 # SPDX-License-Identifier: EPL-1.0
484 ##############################################################################
485 # Copyright (c) 2017 The Linux Foundation and others.
487 # All rights reserved. This program and the accompanying materials
488 # are made available under the terms of the Eclipse Public License v1.0
489 # which accompanies this distribution, and is available at
490 # http://www.eclipse.org/legal/epl-v10.html
491 ##############################################################################
492 echo "---> create-netrc.sh"
494 # Ensure we fail the job if any steps fail.
497 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
498 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
499 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
500 -v x:username -o ":" -v x:password \
501 "$SETTINGS_FILE")
503 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
504 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
505 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
507 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
509 </hudson.tasks.Shell>
512 # SPDX-License-Identifier: EPL-1.0
513 ##############################################################################
514 # Copyright (c) 2017 The Linux Foundation and others.
516 # All rights reserved. This program and the accompanying materials
517 # are made available under the terms of the Eclipse Public License v1.0
518 # which accompanies this distribution, and is available at
519 # http://www.eclipse.org/legal/epl-v10.html
520 ##############################################################################
521 echo "---> lftools-install.sh"
523 # Script to install lftools via a version passed in via lf-infra-parameters
525 # Required parameters:
527 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
528 # set to a strict version number like '1.2.3' or using
529 # PEP-440 definitions.
533 # >=1.0.0,<2.0.0
535 # By default a released version of lftools should always be used.
536 # The purpose of the 2 variables below is so that lftools devs can test
537 # unreleased versions of lftools. There are 2 methods to install a dev version
540 # 1) gerrit patch: Used to test a patch that has not yet been merged.
541 # To do this set something like this:
542 # LFTOOLS_MODE=gerrit
543 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
545 # 2) git branch: Used to install an lftools version from a specific branch.
546 # To use this set the variables as follows:
548 # LFTOOLS_REFSPEC=master
550 # 3) release : The intended use case and default setting.
551 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
553 LFTOOLS_MODE=release # release | git | gerrit
554 LFTOOLS_REFSPEC=master
556 # Ensure we fail the job if any steps fail.
557 # DO NOT set -u as virtualenv's activate script has unbound variables
560 virtualenv --quiet "/tmp/v/lftools"
561 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
562 source "/tmp/v/lftools/bin/activate"
563 pip install --quiet --upgrade pip
565 case $LFTOOLS_MODE in
567 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
569 git fetch origin "$LFTOOLS_REFSPEC"
570 git checkout FETCH_HEAD
571 pip install --quiet --upgrade -r requirements.txt
572 pip install --quiet --upgrade -e .
577 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
581 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
582 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
585 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
591 # pipdeptree prints out a lot of information because lftools pulls in many
592 # dependencies. Let's only print it if we want to debug.
593 # echo "----> Pip Dependency Tree"
594 # pip install --quiet --upgrade pipdeptree
598 # SPDX-License-Identifier: EPL-1.0
599 ##############################################################################
600 # Copyright (c) 2017 The Linux Foundation and others.
602 # All rights reserved. This program and the accompanying materials
603 # are made available under the terms of the Eclipse Public License v1.0
604 # which accompanies this distribution, and is available at
605 # http://www.eclipse.org/legal/epl-v10.html
606 ##############################################################################
607 echo "---> logs-deploy.sh"
609 # Ensure we fail the job if any steps fail.
612 set -x # Trace commands for this script to make debugging easier.
614 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
615 LOGS_SERVER="${LOGS_SERVER:-None}"
617 if [ "${LOGS_SERVER}" == 'None' ]
619 set +x # Disable trace since we no longer need it
621 echo "WARNING: Logging server not set"
623 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
624 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
625 BUILD_URL="${BUILD_URL}"
627 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
628 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
630 set +x # Disable trace since we no longer need it.
632 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
635 </hudson.tasks.Shell>
638 # SPDX-License-Identifier: EPL-1.0
639 ##############################################################################
640 # Copyright (c) 2017 The Linux Foundation and others.
642 # All rights reserved. This program and the accompanying materials
643 # are made available under the terms of the Eclipse Public License v1.0
644 # which accompanies this distribution, and is available at
645 # http://www.eclipse.org/legal/epl-v10.html
646 ##############################################################################
648 # Clear log credential files
649 rm "$SETTINGS_FILE"
652 </hudson.tasks.Shell>
653 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
654 <regexp>^Build logs: .*</regexp>
655 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
657 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
658 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
659 <markBuildUnstable>false</markBuildUnstable>
660 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
661 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
663 <hudson.plugins.ws__cleanup.Pattern>
664 <pattern>**/*.jenkins-trigger</pattern>
666 </hudson.plugins.ws__cleanup.Pattern>
668 <deleteDirs>false</deleteDirs>
669 <cleanupMatrixParent>false</cleanupMatrixParent>
671 <cleanWhenSuccess>true</cleanWhenSuccess>
672 <cleanWhenUnstable>true</cleanWhenUnstable>
673 <cleanWhenFailure>true</cleanWhenFailure>
674 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
675 <cleanWhenAborted>true</cleanWhenAborted>
676 <notFailBuild>true</notFailBuild>
677 </hudson.plugins.ws__cleanup.WsCleanup>
680 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
681 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
682 <timeoutMinutes>45</timeoutMinutes>
683 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
684 <failBuild>true</failBuild>
685 <writingDescription>false</writingDescription>
686 <timeoutPercentage>0</timeoutPercentage>
687 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
688 <timeoutType>absolute</timeoutType>
689 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
690 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
691 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
692 <user>test-credential</user>
693 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
694 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
695 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
697 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
698 <fileId>npmrc</fileId>
699 <targetLocation>$HOME/.npmrc</targetLocation>
701 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
703 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>