1 <?xml version="1.0" encoding="utf-8"?>
5 <description><!-- Managed by Jenkins Job Builder --></description>
6 <keepDependencies>false</keepDependencies>
7 <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
8 <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
9 <concurrentBuild>false</concurrentBuild>
10 <assignedNode>build-vm</assignedNode>
11 <canRoam>false</canRoam>
13 <com.coravy.hudson.plugins.github.GithubProjectProperty>
14 <projectUrl>$GIT_URL/$PROJECT/example-org/releng/ciman</projectUrl>
15 </com.coravy.hudson.plugins.github.GithubProjectProperty>
16 <hudson.model.ParametersDefinitionProperty>
17 <parameterDefinitions>
18 <hudson.model.StringParameterDefinition>
20 <description>Parameter to identify a Gerrit project. This is typically the
21 project repo path as exists in Gerrit.
22 For example: ofextensions/circuitsw
24 <defaultValue>releng/ciman</defaultValue>
25 </hudson.model.StringParameterDefinition>
26 <hudson.model.StringParameterDefinition>
28 <description>Stream is often set to the same name as 'branch' but can
29 sometimes be used as a name representing a project's release code
32 <defaultValue>master</defaultValue>
33 </hudson.model.StringParameterDefinition>
34 <hudson.model.StringParameterDefinition>
35 <name>GERRIT_PROJECT</name>
36 <description>Parameter to identify Gerrit project. This is typically the
37 project repo path as exists in Gerrit.
38 For example: ofextensions/circuitsw
40 Note that Gerrit will override this parameter automatically if a
41 job is triggered by Gerrit.
43 <defaultValue>releng/ciman</defaultValue>
44 </hudson.model.StringParameterDefinition>
45 <hudson.model.StringParameterDefinition>
46 <name>GERRIT_BRANCH</name>
47 <description>Parameter to identify a Gerrit branch.
49 Note that Gerrit will override this parameter automatically if a
50 job is triggered by Gerrit.
52 <defaultValue>master</defaultValue>
53 </hudson.model.StringParameterDefinition>
54 <hudson.model.StringParameterDefinition>
55 <name>GERRIT_REFSPEC</name>
56 <description>Parameter to identify a refspec when pulling from Gerrit.
58 Note that Gerrit will override this parameter automatically if a
59 job is triggered by Gerrit.
61 <defaultValue>refs/heads/master</defaultValue>
62 </hudson.model.StringParameterDefinition>
63 <hudson.model.StringParameterDefinition>
64 <name>LFTOOLS_VERSION</name>
65 <description>Version of lftools to install. Can be a specific version like
66 '0.6.0' or a PEP-440 definition.
67 https://www.python.org/dev/peps/pep-0440/
68 For example '<1.0.0' or '>=1.0.0,<2.0.0'.
70 <defaultValue><1.0.0</defaultValue>
71 </hudson.model.StringParameterDefinition>
72 <hudson.model.StringParameterDefinition>
73 <name>MAVEN_OPTS</name>
74 <description>Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
77 </hudson.model.StringParameterDefinition>
78 <hudson.model.StringParameterDefinition>
79 <name>MAVEN_PARAMS</name>
80 <description>Maven parameters to pass to the mvn command.
83 </hudson.model.StringParameterDefinition>
84 <hudson.model.StringParameterDefinition>
86 <description>Maven selector to be used by shell scripts</description>
87 <defaultValue>/w/tools/hudson.tasks.Maven_MavenInstallation/mvn33/bin/mvn</defaultValue>
88 </hudson.model.StringParameterDefinition>
89 <hudson.model.StringParameterDefinition>
90 <name>STAGING_PROFILE_ID</name>
91 <description>Nexus staging profile ID.
93 <defaultValue>uuddlrlrba</defaultValue>
94 </hudson.model.StringParameterDefinition>
95 </parameterDefinitions>
96 </hudson.model.ParametersDefinitionProperty>
98 <scm class="hudson.plugins.git.GitSCM">
99 <configVersion>2</configVersion>
101 <hudson.plugins.git.UserRemoteConfig>
103 <refspec>+refs/pull/*:refs/remotes/origin/pr/*</refspec>
104 <url>git@github.com:example-org/releng/ciman</url>
105 <credentialsId>test-credential</credentialsId>
106 </hudson.plugins.git.UserRemoteConfig>
109 <hudson.plugins.git.BranchSpec>
111 </hudson.plugins.git.BranchSpec>
114 <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
115 <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
116 <authorOrCommitter>false</authorOrCommitter>
117 <wipeOutWorkspace>true</wipeOutWorkspace>
118 <pruneBranches>false</pruneBranches>
119 <remotePoll>false</remotePoll>
120 <gitTool>Default</gitTool>
121 <submoduleCfg class="list"/>
126 <skipTag>true</skipTag>
128 <useShallowClone>false</useShallowClone>
129 <ignoreNotifyCommit>false</ignoreNotifyCommit>
131 <hudson.plugins.git.extensions.impl.SubmoduleOption>
132 <disableSubmodules>false</disableSubmodules>
133 <recursiveSubmodules>true</recursiveSubmodules>
134 <trackingSubmodules>false</trackingSubmodules>
136 <timeout>10</timeout>
137 </hudson.plugins.git.extensions.impl.SubmoduleOption>
138 <hudson.plugins.git.extensions.impl.WipeWorkspace/>
141 <triggers class="vector">
142 <org.jenkinsci.plugins.ghprb.GhprbTrigger>
145 <allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
149 <triggerPhrase>^build release$</triggerPhrase>
150 <onlyTriggerPhrase>true</onlyTriggerPhrase>
151 <useGitHubHooks>true</useGitHubHooks>
152 <permitAll>true</permitAll>
153 <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
155 <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
156 <commitStatusContext>Maven Release</commitStatusContext>
157 </org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
159 </org.jenkinsci.plugins.ghprb.GhprbTrigger>
163 <command>mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes</command>
164 </hudson.tasks.Shell>
166 <command>echo "quiet=on" > "$HOME/.wgetrc"</command>
167 </hudson.tasks.Shell>
169 <targets>--version</targets>
171 <mavenName>mvn33</mavenName>
172 <usePrivateRepository>false</usePrivateRepository>
173 <settings class="jenkins.mvn.DefaultSettingsProvider"/>
174 <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
175 </hudson.tasks.Maven>
177 <command>rm "$HOME/.wgetrc"</command>
178 </hudson.tasks.Shell>
179 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
181 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
182 <fileId>global-settings</fileId>
184 <variable>GLOBAL_SETTINGS_FILE</variable>
185 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
186 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
187 <fileId>aproject-settings</fileId>
189 <variable>SETTINGS_FILE</variable>
190 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
192 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
195 <propertiesContent>SERVER_ID=opendaylight-staging</propertiesContent>
200 # SPDX-License-Identifier: EPL-1.0
201 ##############################################################################
202 # Copyright (c) 2017 The Linux Foundation and others.
204 # All rights reserved. This program and the accompanying materials
205 # are made available under the terms of the Eclipse Public License v1.0
206 # which accompanies this distribution, and is available at
207 # http://www.eclipse.org/legal/epl-v10.html
208 ##############################################################################
209 echo "---> create-netrc.sh"
211 # Ensure we fail the job if any steps fail.
214 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
215 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
216 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
217 -v x:username -o ":" -v x:password \
218 "$SETTINGS_FILE")
220 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
221 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
222 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
224 echo "machine $machine login $user password $pass" > ~/.netrc
226 </hudson.tasks.Shell>
229 # SPDX-License-Identifier: EPL-1.0
230 ##############################################################################
231 # Copyright (c) 2017 The Linux Foundation and others.
233 # All rights reserved. This program and the accompanying materials
234 # are made available under the terms of the Eclipse Public License v1.0
235 # which accompanies this distribution, and is available at
236 # http://www.eclipse.org/legal/epl-v10.html
237 ##############################################################################
238 echo "---> lftools-install.sh"
240 # Script to install lftools via a version passed in via lf-infra-parameters
242 # Required parameters:
244 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
245 # set to a strict version number like '1.2.3' or using
246 # PEP-440 definitions.
250 # >=1.0.0,<2.0.0
252 # By default a released version of lftools should always be used.
253 # The purpose of the 2 variables below is so that lftools devs can test
254 # unreleased versions of lftools. There are 2 methods to install a dev version
257 # 1) gerrit patch: Used to test a patch that has not yet been merged.
258 # To do this set something like this:
259 # LFTOOLS_MODE=gerrit
260 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
262 # 2) git branch: Used to install an lftools version from a specific branch.
263 # To use this set the variables as follows:
265 # LFTOOLS_REFSPEC=master
267 # 3) release : The intended use case and default setting.
268 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
270 LFTOOLS_MODE=release # release | git | gerrit
271 LFTOOLS_REFSPEC=master
273 # Ensure we fail the job if any steps fail.
274 # DO NOT set -u as virtualenv's activate script has unbound variables
277 virtualenv --quiet "/tmp/v/lftools"
278 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
279 source "/tmp/v/lftools/bin/activate"
280 pip install --quiet --upgrade pip
282 case $LFTOOLS_MODE in
284 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
286 git fetch origin "$LFTOOLS_REFSPEC"
287 git checkout FETCH_HEAD
288 pip install --quiet --upgrade -r requirements.txt
289 pip install --quiet --upgrade -e .
294 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
298 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
299 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
302 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
308 # pipdeptree prints out a lot of information because lftools pulls in many
309 # dependencies. Let's only print it if we want to debug.
310 # echo "----> Pip Dependency Tree"
311 # pip install --quiet --upgrade pipdeptree
315 # SPDX-License-Identifier: EPL-1.0
316 ##############################################################################
317 # Copyright (c) 2017 The Linux Foundation and others.
319 # All rights reserved. This program and the accompanying materials
320 # are made available under the terms of the Eclipse Public License v1.0
321 # which accompanies this distribution, and is available at
322 # http://www.eclipse.org/legal/epl-v10.html
323 ##############################################################################
325 # This file contains a list of variables that are generally useful in many
326 # scripts. It is meant to be sourced in other scripts so that the variables can
329 MAVEN_OPTIONS="$(echo --show-version \
332 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
333 -Dmaven.repo.local=/tmp/r \
334 -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
335 echo "$MAVEN_OPTIONS"
338 # SPDX-License-Identifier: EPL-1.0
339 ##############################################################################
340 # Copyright (c) 2017 The Linux Foundation and others.
342 # All rights reserved. This program and the accompanying materials
343 # are made available under the terms of the Eclipse Public License v1.0
344 # which accompanies this distribution, and is available at
345 # http://www.eclipse.org/legal/epl-v10.html
346 ##############################################################################
348 # This script removes the -SNAPSHOT from a project to prepare it for release.
350 PATCH_DIR="$WORKSPACE/archives/patches"
351 mkdir -p "$PATCH_DIR"
353 # Ensure we fail the job if any steps fail.
356 echo "$PROJECT" "$(git rev-parse --verify HEAD)" | tee -a "$PATCH_DIR/taglist.log"
358 # Strip -SNAPSHOT from version to prepare release.
359 find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//g'
361 git commit -am "Release $PROJECT"
362 git format-patch --stdout "origin/$GERRIT_BRANCH" > "$PATCH_DIR/${PROJECT//\//-}.patch"
363 git bundle create "$PATCH_DIR/${PROJECT//\//-}.bundle" "origin/${GERRIT_BRANCH}..HEAD"
366 # SPDX-License-Identifier: EPL-1.0
367 ##############################################################################
368 # Copyright (c) 2017 The Linux Foundation and others.
370 # All rights reserved. This program and the accompanying materials
371 # are made available under the terms of the Eclipse Public License v1.0
372 # which accompanies this distribution, and is available at
373 # http://www.eclipse.org/legal/epl-v10.html
374 ##############################################################################
376 # This script builds a Maven project and deploys it into a staging repo which
377 # can be used to deploy elsewhere later eg. Nexus staging / snapshot repos.
379 # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound.
380 # Ensure we fail the job if any steps fail.
386 # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters.
387 # shellcheck disable=SC2086
389 --global-settings "$GLOBAL_SETTINGS_FILE" \
390 --settings "$SETTINGS_FILE" \
391 -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \
392 $MAVEN_PARAMS $MAVEN_OPTIONS
395 # SPDX-License-Identifier: EPL-1.0
396 ##############################################################################
397 # Copyright (c) 2017 The Linux Foundation and others.
399 # All rights reserved. This program and the accompanying materials
400 # are made available under the terms of the Eclipse Public License v1.0
401 # which accompanies this distribution, and is available at
402 # http://www.eclipse.org/legal/epl-v10.html
403 ##############################################################################
405 # This script publishes artifacts to a staging repo in Nexus.
407 # $WORKSPACE/m2repo : Exists and used to deploy the staging repository.
408 # $NEXUS_URL : Jenkins global variable should be defined.
409 # $STAGING_PROFILE_ID : Provided by a job parameter.
411 # Ensure we fail the job if any steps fail.
414 TMP_FILE="$(mktemp)"
415 lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
416 staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")
418 # Store repo info to a file in archives
419 mkdir -p "$WORKSPACE/archives"
420 echo "$staging_repo" > "$WORKSPACE/archives/staging-repo.txt"
423 rm "$TMP_FILE"
425 </hudson.tasks.Shell>
428 set +e # DO NOT cause build failure if any of the rm calls fail.
430 rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
432 # In some cases we use the lf-provide-maven-settings macro to produce
433 # a "$HOME/.netrc" file containing credentials. Remove that file here
435 rm "$HOME/.netrc"
437 # DO NOT fail build if any of the above lines fail.
440 </hudson.tasks.Shell>
443 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
447 # SPDX-License-Identifier: EPL-1.0
448 ##############################################################################
449 # Copyright (c) 2017 The Linux Foundation and others.
451 # All rights reserved. This program and the accompanying materials
452 # are made available under the terms of the Eclipse Public License v1.0
453 # which accompanies this distribution, and is available at
454 # http://www.eclipse.org/legal/epl-v10.html
455 ##############################################################################
456 echo "---> sysstat.sh"
457 set +e # DON'T fail build if script fails.
459 OS=$(facter operatingsystem)
460 case "$OS" in
462 SYSSTAT_PATH="/var/log/sysstat"
464 # Dont run the script when systat is not enabled by default
465 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
470 SYSSTAT_PATH="/var/log/sa"
478 SAR_DIR="$WORKSPACE/archives/sar-reports"
479 mkdir -p "$SAR_DIR"
480 cp "$SYSSTAT_PATH/"* "$_"
481 # convert sar data to ascii format
482 while IFS="" read -r s
484 [ -f "$s" ] && LC_TIME=POSIX sar -A -f "$s" > "$SAR_DIR/sar${s//[!0-9]/}"
485 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
487 # DON'T fail build if script fails.
490 </hudson.tasks.Shell>
491 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
493 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
494 <fileId>jenkins-log-archives-settings</fileId>
496 <variable>SETTINGS_FILE</variable>
497 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
499 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
502 <propertiesContent>SERVER_ID=logs</propertiesContent>
507 # SPDX-License-Identifier: EPL-1.0
508 ##############################################################################
509 # Copyright (c) 2017 The Linux Foundation and others.
511 # All rights reserved. This program and the accompanying materials
512 # are made available under the terms of the Eclipse Public License v1.0
513 # which accompanies this distribution, and is available at
514 # http://www.eclipse.org/legal/epl-v10.html
515 ##############################################################################
516 echo "---> create-netrc.sh"
518 # Ensure we fail the job if any steps fail.
521 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
522 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
523 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
524 -v x:username -o ":" -v x:password \
525 "$SETTINGS_FILE")
527 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
528 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
529 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
531 echo "machine $machine login $user password $pass" > ~/.netrc
533 </hudson.tasks.Shell>
536 # SPDX-License-Identifier: EPL-1.0
537 ##############################################################################
538 # Copyright (c) 2017 The Linux Foundation and others.
540 # All rights reserved. This program and the accompanying materials
541 # are made available under the terms of the Eclipse Public License v1.0
542 # which accompanies this distribution, and is available at
543 # http://www.eclipse.org/legal/epl-v10.html
544 ##############################################################################
545 echo "---> lftools-install.sh"
547 # Script to install lftools via a version passed in via lf-infra-parameters
549 # Required parameters:
551 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
552 # set to a strict version number like '1.2.3' or using
553 # PEP-440 definitions.
557 # >=1.0.0,<2.0.0
559 # By default a released version of lftools should always be used.
560 # The purpose of the 2 variables below is so that lftools devs can test
561 # unreleased versions of lftools. There are 2 methods to install a dev version
564 # 1) gerrit patch: Used to test a patch that has not yet been merged.
565 # To do this set something like this:
566 # LFTOOLS_MODE=gerrit
567 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
569 # 2) git branch: Used to install an lftools version from a specific branch.
570 # To use this set the variables as follows:
572 # LFTOOLS_REFSPEC=master
574 # 3) release : The intended use case and default setting.
575 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
577 LFTOOLS_MODE=release # release | git | gerrit
578 LFTOOLS_REFSPEC=master
580 # Ensure we fail the job if any steps fail.
581 # DO NOT set -u as virtualenv's activate script has unbound variables
584 virtualenv --quiet "/tmp/v/lftools"
585 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
586 source "/tmp/v/lftools/bin/activate"
587 pip install --quiet --upgrade pip
589 case $LFTOOLS_MODE in
591 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
593 git fetch origin "$LFTOOLS_REFSPEC"
594 git checkout FETCH_HEAD
595 pip install --quiet --upgrade -r requirements.txt
596 pip install --quiet --upgrade -e .
601 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
605 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
606 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
609 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
615 # pipdeptree prints out a lot of information because lftools pulls in many
616 # dependencies. Let's only print it if we want to debug.
617 # echo "----> Pip Dependency Tree"
618 # pip install --quiet --upgrade pipdeptree
622 # SPDX-License-Identifier: EPL-1.0
623 ##############################################################################
624 # Copyright (c) 2017 The Linux Foundation and others.
626 # All rights reserved. This program and the accompanying materials
627 # are made available under the terms of the Eclipse Public License v1.0
628 # which accompanies this distribution, and is available at
629 # http://www.eclipse.org/legal/epl-v10.html
630 ##############################################################################
631 echo "---> logs-deploy.sh"
633 # Ensure we fail the job if any steps fail.
636 set -x # Trace commands for this script to make debugging easier.
638 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
639 LOGS_SERVER="${LOGS_SERVER:-None}"
641 if [ "${LOGS_SERVER}" == 'None' ]
643 set +x # Disable trace since we no longer need it
645 echo "WARNING: Logging server not set"
647 NEXUS_URL="${NEXUS_URL:-$NEXUSPROXY}"
648 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
649 BUILD_URL="${BUILD_URL}"
651 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
652 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
654 set +x # Disable trace since we no longer need it.
656 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
659 </hudson.tasks.Shell>
662 # SPDX-License-Identifier: EPL-1.0
663 ##############################################################################
664 # Copyright (c) 2017 The Linux Foundation and others.
666 # All rights reserved. This program and the accompanying materials
667 # are made available under the terms of the Eclipse Public License v1.0
668 # which accompanies this distribution, and is available at
669 # http://www.eclipse.org/legal/epl-v10.html
670 ##############################################################################
672 # Clear log credential files
673 rm "$SETTINGS_FILE"
676 </hudson.tasks.Shell>
677 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
678 <regexp>^Build logs: .*</regexp>
679 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
681 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
682 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
683 <markBuildUnstable>false</markBuildUnstable>
684 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
685 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
687 <hudson.plugins.ws__cleanup.Pattern>
688 <pattern>**/*.jenkins-trigger</pattern>
690 </hudson.plugins.ws__cleanup.Pattern>
692 <deleteDirs>false</deleteDirs>
693 <cleanupMatrixParent>false</cleanupMatrixParent>
695 <cleanWhenSuccess>true</cleanWhenSuccess>
696 <cleanWhenUnstable>true</cleanWhenUnstable>
697 <cleanWhenFailure>true</cleanWhenFailure>
698 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
699 <cleanWhenAborted>true</cleanWhenAborted>
700 <notFailBuild>true</notFailBuild>
701 </hudson.plugins.ws__cleanup.WsCleanup>
704 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
705 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
706 <timeoutMinutes>30</timeoutMinutes>
707 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
708 <failBuild>true</failBuild>
709 <writingDescription>false</writingDescription>
710 <timeoutPercentage>0</timeoutPercentage>
711 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
712 <timeoutType>absolute</timeoutType>
713 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
714 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
715 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
716 <user>test-credential</user>
717 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
718 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>