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.3</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/centos.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.3
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.1.3}"
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=(vars/*.json common-packer/vars/*.json)
272 templates=(templates/*.json)
274 for varfile in "${varfiles[@]}"; do
275 # cloud-env.json is a file containing credentials which is pulled in via
276 # CLOUDENV variable so skip it here.
277 if [[ "$varfile" == *"cloud-env.json"* ]]; then
281 echo "-----> Testing varfile: $varfile"
282 for template in "${templates[@]}"; do
283 export PACKER_LOG="yes"
284 export PACKER_LOG_PATH="$PACKER_LOGS_DIR/packer-validate-${varfile##*/}-${template##*/}.log"
285 if output=$(packer.io validate -var-file="$CLOUDENV" -var-file="$varfile" "$template"); then
286 echo "$template: $output"
288 echo "$template: $output"
294 </hudson.tasks.Shell>
297 # SPDX-License-Identifier: EPL-1.0
298 ##############################################################################
299 # Copyright (c) 2017 The Linux Foundation and others.
301 # All rights reserved. This program and the accompanying materials
302 # are made available under the terms of the Eclipse Public License v1.0
303 # which accompanies this distribution, and is available at
304 # http://www.eclipse.org/legal/epl-v10.html
305 ##############################################################################
306 echo "---> packer-clear-credentials.sh"
308 set +e # DO NOT cause build failure if any of the rm calls fail.
309 rm "$CLOUDENV"
312 </hudson.tasks.Shell>
313 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
315 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
316 <fileId>ci-packer-cloud-env</fileId>
318 <variable>CLOUDENV</variable>
319 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
321 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
324 <propertiesContent>PACKER_PLATFORM=centos
325 PACKER_TEMPLATE=java-builder
332 # SPDX-License-Identifier: EPL-1.0
333 ##############################################################################
334 # Copyright (c) 2017 The Linux Foundation and others.
336 # All rights reserved. This program and the accompanying materials
337 # are made available under the terms of the Eclipse Public License v1.0
338 # which accompanies this distribution, and is available at
339 # http://www.eclipse.org/legal/epl-v10.html
340 ##############################################################################
341 echo "---> packer-install.sh"
342 # The script checks for the packer binaries and installs the binary
343 # if its not available
345 # $PACKER_VERSION : Define a packer version passed as job paramter
347 PACKER_VERSION="${PACKER_VERSION:-1.1.3}"
349 # Ensure we fail the job if any steps fail.
352 if hash packer.io 2>/dev/null; then
353 echo "packer.io command is available."
355 echo "packer.io command not is available. Installing packer ..."
356 # Installs Hashicorp's Packer binary, required for verify & merge packer jobs
358 wget -nv "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
359 mkdir -p "${WORKSPACE}/bin"
360 unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/
361 # rename packer to avoid conflict with binary in cracklib
362 mv ${WORKSPACE}/bin/packer "${WORKSPACE}/bin/packer.io"
367 # SPDX-License-Identifier: EPL-1.0
368 ##############################################################################
369 # Copyright (c) 2017 The Linux Foundation and others.
371 # All rights reserved. This program and the accompanying materials
372 # are made available under the terms of the Eclipse Public License v1.0
373 # which accompanies this distribution, and is available at
374 # http://www.eclipse.org/legal/epl-v10.html
375 ##############################################################################
376 echo "---> packer-build.sh"
377 # The script builds an image using packer
378 # $CLOUDENV : Provides the cloud credential file.
379 # $PACKER_PLATFORM : Provides the packer platform.
380 # $PACKER_TEMPLATE : Provides the packer temnplate.
382 # Ensure we fail the job if any steps fail.
385 PACKER_LOGS_DIR="$WORKSPACE/archives/packer"
386 PACKER_BUILD_LOG="$PACKER_LOGS_DIR/packer-build.log"
387 mkdir -p "$PACKER_LOGS_DIR"
388 export PATH="${WORKSPACE}/bin:$PATH"
391 export PACKER_LOG="yes" && \
392 export PACKER_LOG_PATH="$PACKER_BUILD_LOG" && \
393 packer.io build -color=false \
394 -var-file="$CLOUDENV" \
395 -var-file="../packer/vars/$PACKER_PLATFORM.json" \
396 "../packer/templates/$PACKER_TEMPLATE.json"
398 # Retrive the list of cloud providers
399 mapfile -t clouds < <(jq -r '.builders[].name' "../packer/templates/$PACKER_TEMPLATE.json")
401 # Split public/private clouds logs
402 for cloud in "${clouds[@]}"; do
403 grep -e "$cloud" "$PACKER_BUILD_LOG" > "$PACKER_LOGS_DIR/packer-build_$cloud.log" 2>&1
406 </hudson.tasks.Shell>
409 # SPDX-License-Identifier: EPL-1.0
410 ##############################################################################
411 # Copyright (c) 2017 The Linux Foundation and others.
413 # All rights reserved. This program and the accompanying materials
414 # are made available under the terms of the Eclipse Public License v1.0
415 # which accompanies this distribution, and is available at
416 # http://www.eclipse.org/legal/epl-v10.html
417 ##############################################################################
418 echo "---> packer-clear-credentials.sh"
420 set +e # DO NOT cause build failure if any of the rm calls fail.
421 rm "$CLOUDENV"
424 </hudson.tasks.Shell>
427 <org.jenkinsci.plugins.postbuildscript.PostBuildScript>
431 # SPDX-License-Identifier: EPL-1.0
432 ##############################################################################
433 # Copyright (c) 2017 The Linux Foundation and others.
435 # All rights reserved. This program and the accompanying materials
436 # are made available under the terms of the Eclipse Public License v1.0
437 # which accompanies this distribution, and is available at
438 # http://www.eclipse.org/legal/epl-v10.html
439 ##############################################################################
440 echo "---> sysstat.sh"
441 set +e # DON'T fail build if script fails.
443 OS=$(facter operatingsystem)
444 case "$OS" in
446 SYSSTAT_PATH="/var/log/sysstat"
448 # Dont run the script when systat is not enabled by default
449 if ! grep --quiet 'ENABLED="true"' "/etc/default/sysstat"; then
454 SYSSTAT_PATH="/var/log/sa"
462 SAR_DIR="$WORKSPACE/archives/sar-reports"
463 mkdir -p "$SAR_DIR"
464 cp "$SYSSTAT_PATH/"* "$_"
465 # convert sar data to ascii format
466 while IFS="" read -r sarfilenum
468 [ -f "$sarfilenum" ] && LC_TIME=POSIX sar -A -f "$sarfilenum" > "$SAR_DIR/sar${sarfilenum//[!0-9]/}"
469 done < <(find "$SYSSTAT_PATH" -name "sa[0-9]*" || true)
471 # DON'T fail build if script fails.
474 </hudson.tasks.Shell>
475 <org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep plugin="config-file-provider">
477 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
478 <fileId>jenkins-log-archives-settings</fileId>
480 <variable>SETTINGS_FILE</variable>
481 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
483 </org.jenkinsci.plugins.configfiles.builder.ConfigFileBuildStep>
486 <propertiesContent>SERVER_ID=logs</propertiesContent>
491 # SPDX-License-Identifier: EPL-1.0
492 ##############################################################################
493 # Copyright (c) 2017 The Linux Foundation and others.
495 # All rights reserved. This program and the accompanying materials
496 # are made available under the terms of the Eclipse Public License v1.0
497 # which accompanies this distribution, and is available at
498 # http://www.eclipse.org/legal/epl-v10.html
499 ##############################################################################
500 echo "---> create-netrc.sh"
502 # Ensure we fail the job if any steps fail.
505 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
506 CREDENTIAL=$(xmlstarlet sel -N "x=http://maven.apache.org/SETTINGS/1.0.0" \
507 -t -m "/x:settings/x:servers/x:server[x:id='${SERVER_ID}']" \
508 -v x:username -o ":" -v x:password \
509 "$SETTINGS_FILE")
511 machine=$(echo "$NEXUS_URL" | awk -F/ '{print $3}')
512 user=$(echo "$CREDENTIAL" | cut -f1 -d:)
513 pass=$(echo "$CREDENTIAL" | cut -f2 -d:)
515 echo "machine ${machine%:*} login $user password $pass" > ~/.netrc
517 </hudson.tasks.Shell>
520 # SPDX-License-Identifier: EPL-1.0
521 ##############################################################################
522 # Copyright (c) 2017 The Linux Foundation and others.
524 # All rights reserved. This program and the accompanying materials
525 # are made available under the terms of the Eclipse Public License v1.0
526 # which accompanies this distribution, and is available at
527 # http://www.eclipse.org/legal/epl-v10.html
528 ##############################################################################
529 echo "---> lftools-install.sh"
531 # Script to install lftools via a version passed in via lf-infra-parameters
533 # Required parameters:
535 # LFTOOLS_VERSION: Passed in via lf-infra-parameters configuration. Can be
536 # set to a strict version number like '1.2.3' or using
537 # PEP-440 definitions.
541 # >=1.0.0,<2.0.0
543 # By default a released version of lftools should always be used.
544 # The purpose of the 2 variables below is so that lftools devs can test
545 # unreleased versions of lftools. There are 2 methods to install a dev version
548 # 1) gerrit patch: Used to test a patch that has not yet been merged.
549 # To do this set something like this:
550 # LFTOOLS_MODE=gerrit
551 # LFTOOLS_REFSPEC=refs/changes/96/5296/7
553 # 2) git branch: Used to install an lftools version from a specific branch.
554 # To use this set the variables as follows:
556 # LFTOOLS_REFSPEC=master
558 # 3) release : The intended use case and default setting.
559 # Set LFTOOLS_MODE=release, in this case LFTOOLS_REFSPEC is unused.
561 LFTOOLS_MODE=release # release | git | gerrit
562 LFTOOLS_REFSPEC=master
564 # Ensure we fail the job if any steps fail.
565 # DO NOT set -u as virtualenv's activate script has unbound variables
568 virtualenv --quiet "/tmp/v/lftools"
569 # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
570 source "/tmp/v/lftools/bin/activate"
571 pip install --quiet --upgrade pip
573 case $LFTOOLS_MODE in
575 git clone https://gerrit.linuxfoundation.org/infra/releng/lftools.git /tmp/lftools
577 git fetch origin "$LFTOOLS_REFSPEC"
578 git checkout FETCH_HEAD
579 pip install --quiet --upgrade -r requirements.txt
580 pip install --quiet --upgrade -e .
585 pip install --quiet --upgrade git+https://gerrit.linuxfoundation.org/infra/releng/lftools.git@"$BRANCH"
589 if [[ $LFTOOLS_VERSION =~ ^[0-9] ]]; then
590 LFTOOLS_VERSION="==$LFTOOLS_VERSION"
593 pip install --quiet --upgrade "lftools${LFTOOLS_VERSION}"
599 # pipdeptree prints out a lot of information because lftools pulls in many
600 # dependencies. Let's only print it if we want to debug.
601 # echo "----> Pip Dependency Tree"
602 # pip install --quiet --upgrade pipdeptree
606 # SPDX-License-Identifier: EPL-1.0
607 ##############################################################################
608 # Copyright (c) 2017 The Linux Foundation and others.
610 # All rights reserved. This program and the accompanying materials
611 # are made available under the terms of the Eclipse Public License v1.0
612 # which accompanies this distribution, and is available at
613 # http://www.eclipse.org/legal/epl-v10.html
614 ##############################################################################
615 echo "---> logs-deploy.sh"
617 # Ensure we fail the job if any steps fail.
620 set -x # Trace commands for this script to make debugging easier.
622 ARCHIVE_ARTIFACTS="${ARCHIVE_ARTIFACTS:-}"
623 LOGS_SERVER="${LOGS_SERVER:-None}"
625 if [ "${LOGS_SERVER}" == 'None' ]
627 set +x # Disable trace since we no longer need it
629 echo "WARNING: Logging server not set"
631 NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
632 NEXUS_PATH="${SILO}/${JENKINS_HOSTNAME}/${JOB_NAME}/${BUILD_NUMBER}"
633 BUILD_URL="${BUILD_URL}"
635 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
636 lftools deploy logs "$NEXUS_URL" "$NEXUS_PATH" "$BUILD_URL"
638 set +x # Disable trace since we no longer need it.
640 echo "Build logs: <a href=\"$LOGS_SERVER/$NEXUS_PATH\">$LOGS_SERVER/$NEXUS_PATH</a>"
643 </hudson.tasks.Shell>
646 # SPDX-License-Identifier: EPL-1.0
647 ##############################################################################
648 # Copyright (c) 2017 The Linux Foundation and others.
650 # All rights reserved. This program and the accompanying materials
651 # are made available under the terms of the Eclipse Public License v1.0
652 # which accompanies this distribution, and is available at
653 # http://www.eclipse.org/legal/epl-v10.html
654 ##############################################################################
656 # Clear log credential files
657 rm "$SETTINGS_FILE"
660 </hudson.tasks.Shell>
661 <hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
662 <regexp>^Build logs: .*</regexp>
663 </hudson.plugins.descriptionsetter.DescriptionSetterBuilder>
665 <scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
666 <scriptOnlyIfFailure>false</scriptOnlyIfFailure>
667 <markBuildUnstable>false</markBuildUnstable>
668 </org.jenkinsci.plugins.postbuildscript.PostBuildScript>
669 <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup">
671 <hudson.plugins.ws__cleanup.Pattern>
672 <pattern>**/*.jenkins-trigger</pattern>
674 </hudson.plugins.ws__cleanup.Pattern>
676 <deleteDirs>false</deleteDirs>
677 <cleanupMatrixParent>false</cleanupMatrixParent>
679 <cleanWhenSuccess>true</cleanWhenSuccess>
680 <cleanWhenUnstable>true</cleanWhenUnstable>
681 <cleanWhenFailure>true</cleanWhenFailure>
682 <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
683 <cleanWhenAborted>true</cleanWhenAborted>
684 <notFailBuild>true</notFailBuild>
685 </hudson.plugins.ws__cleanup.WsCleanup>
688 <com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper/>
689 <hudson.plugins.build__timeout.BuildTimeoutWrapper>
690 <timeoutMinutes>45</timeoutMinutes>
691 <timeoutEnvVar>BUILD_TIMEOUT</timeoutEnvVar>
692 <failBuild>true</failBuild>
693 <writingDescription>false</writingDescription>
694 <timeoutPercentage>0</timeoutPercentage>
695 <timeoutMinutesElasticDefault>3</timeoutMinutesElasticDefault>
696 <timeoutType>absolute</timeoutType>
697 </hudson.plugins.build__timeout.BuildTimeoutWrapper>
698 <hudson.plugins.timestamper.TimestamperBuildWrapper/>
699 <com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
700 <user>test-credential</user>
701 </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
702 <jenkins.plugins.openstack.compute.JCloudsOneOffSlave/>
703 <org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider">
705 <org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
706 <fileId>npmrc</fileId>
707 <targetLocation>$HOME/.npmrc</targetLocation>
709 </org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile>
711 </org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper>