
'pre-scm-buildstep' wrapper has two modes: 1. Older: no 'buildsteps' element is specified. Build steps is a list under wrapper name. For example: - pre-scm-buildstep: - shell: echo hello - shell: echo bye 2. Newer: build steps specified inside 'buildsteps' mapping element: - pre-scm-buildsteps: buildsteps: - shell: echo hello - shell: echo bye But, when 'preSCMbuildstep' plugin version is equal or higher 0.3, and first mode is used, it fails. Fix that. Change-Id: I010d9f6c5e06ccd8c2723026aae2c60f79917ff4
20 lines
559 B
XML
20 lines
559 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<buildWrappers>
|
|
<org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
echo "Doing something cool"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/zsh
|
|
echo "Doing something cool with zsh"
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper>
|
|
</buildWrappers>
|
|
</project>
|