Make unit tests compatible with Python 3.13

Python 3.13 has changed the behaviour of the `xml.dom.minidom` module:
double quotes used to be escaped everywhere, but they are now only
escaped inside attributes.

This was done by the following commit.
154477be72

As a result, the unit tests fail when executed on Python 3.13.

Fix this issue in the following way:
1. In all 88 reference-output XML files, replace all occurrences of
   `"` with `"`.
2. Change `tests/conftest.py` to force-replace all occurrences of
   `"` with `"` in the test output before comparing it to the
   reference output. This ensures that the subsequent equality assertion
   still holds on older versions of Python.

This solution works because the test data does not contain any instances
of `"` inside XML attributes.

Change-Id: Ied875014b1bb5d8225943303858658648efc12ad
This commit is contained in:
Christoph Erhardt 2024-09-26 17:47:21 +02:00
parent 643a58e255
commit 4deb12b789
89 changed files with 273 additions and 267 deletions

View File

@ -10,7 +10,7 @@
<installDir>path/to/install</installDir>
<makeCommand>/usr/bin/make</makeCommand>
<installCommand>make new-install</installCommand>
<cmakeArgs>-DCMAKE_FIND_ROOT_PATH=&quot;path/to/something/else&quot;</cmakeArgs>
<cmakeArgs>-DCMAKE_FIND_ROOT_PATH="path/to/something/else"</cmakeArgs>
<projectCmakePath>/usr/bin/cmake</projectCmakePath>
<cleanInstallDir>true</cleanInstallDir>
<buildType>Debug</buildType>

View File

@ -9,7 +9,7 @@
<workingDir>path/to/build</workingDir>
<buildType>CustomReleaseType</buildType>
<installationName>CMake custom install</installationName>
<toolArgs>-DCMAKE_FIND_ROOT_PATH=&quot;path/to/something/else&quot;</toolArgs>
<toolArgs>-DCMAKE_FIND_ROOT_PATH="path/to/something/else"</toolArgs>
<toolSteps>
<hudson.plugins.cmake.BuildToolStep>
<withCmake>true</withCmake>
@ -21,8 +21,8 @@ URL=http://www.example.org/
<hudson.plugins.cmake.BuildToolStep>
<withCmake>false</withCmake>
<args>test</args>
<vars>RESTRICT=&quot;TRUE&quot;
TARGET=&quot;NONE&quot;
<vars>RESTRICT="TRUE"
TARGET="NONE"
</vars>
</hudson.plugins.cmake.BuildToolStep>
</toolSteps>

View File

@ -13,7 +13,7 @@
<dockerfilePath>/tmp/</dockerfilePath>
<buildContext>/tmp/</buildContext>
<createFingerprint>true</createFingerprint>
<buildAdditionalArgs>--build-arg https_proxy=&quot;http://some.proxy:port&quot;</buildAdditionalArgs>
<buildAdditionalArgs>--build-arg https_proxy="http://some.proxy:port"</buildAdditionalArgs>
<forceTag>true</forceTag>
</com.cloudbees.dockerpublish.DockerBuilder>
</builders>

View File

@ -13,7 +13,7 @@
<dockerfilePath>/tmp/</dockerfilePath>
<buildContext>/tmp/</buildContext>
<createFingerprint>true</createFingerprint>
<buildAdditionalArgs>--build-arg https_proxy=&quot;http://some.proxy:port&quot;</buildAdditionalArgs>
<buildAdditionalArgs>--build-arg https_proxy="http://some.proxy:port"</buildAdditionalArgs>
<forceTag>true</forceTag>
<server plugin="docker-commons">
<credentialsId>docker-server</credentialsId>

View File

@ -11,15 +11,15 @@
username=fedora-atomic
</messageProperties>
<messageContent>{
&quot;build_url&quot;: &quot;${BUILD_URL}&quot;,
&quot;compose_url&quot;: &quot;&lt;full-url-to-compose&gt;&quot;,
&quot;build_id&quot;: &quot;${BUILD_ID}&quot;,
&quot;ref&quot;: &quot;fedora/rawhide/${basearch}/atomic-host&quot;,
&quot;rev&quot;: &quot;&lt;sha of the commit from dist-git&gt;&quot;,
&quot;namespace&quot;: &quot;rpms&quot;,
&quot;repo&quot;: &quot;php-simplepie&quot;,
&quot;status&quot;: &quot;&lt;success/failure/aborted&gt;&quot;,
&quot;test_guidance&quot;: &quot;&lt;comma-separated-list-of-test-suites-to-run&gt;&quot;
"build_url": "${BUILD_URL}",
"compose_url": "&lt;full-url-to-compose&gt;",
"build_id": "${BUILD_ID}",
"ref": "fedora/rawhide/${basearch}/atomic-host",
"rev": "&lt;sha of the commit from dist-git&gt;",
"namespace": "rpms",
"repo": "php-simplepie",
"status": "&lt;success/failure/aborted&gt;",
"test_guidance": "&lt;comma-separated-list-of-test-suites-to-run&gt;"
}
</messageContent>
</com.redhat.jenkins.plugins.ci.CIMessageBuilder>

View File

@ -60,7 +60,7 @@
<currParams>false</currParams>
<configs>
<hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
<filter>JVM_VARIANT == &quot;server&quot;</filter>
<filter>JVM_VARIANT == "server"</filter>
</hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
</configs>
<abortAllJob>false</abortAllJob>

View File

@ -8,7 +8,7 @@
<hudson.plugins.parameterizedtrigger.CurrentBuildParameters/>
<hudson.plugins.parameterizedtrigger.SubversionRevisionBuildParameters/>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>FOO=&quot;bar&quot;</properties>
<properties>FOO="bar"</properties>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
</configs>
<configFactories>

View File

@ -8,7 +8,7 @@
<hudson.plugins.parameterizedtrigger.CurrentBuildParameters/>
<hudson.plugins.parameterizedtrigger.SubversionRevisionBuildParameters/>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>FOO=&quot;bar&quot;</properties>
<properties>FOO="bar"</properties>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
</configs>
<projects>build_started</projects>

View File

@ -7,7 +7,7 @@
<configs>
<hudson.plugins.parameterizedtrigger.NodeParameters/>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>FOO=&quot;bar&quot;</properties>
<properties>FOO="bar"</properties>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<hudson.plugins.parameterizedtrigger.BooleanParameters>
<configs>

View File

@ -10,7 +10,7 @@
<combineQueuedCommits>false</combineQueuedCommits>
</hudson.plugins.git.GitRevisionBuildParameters>
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<properties>FOO=&quot;bar&quot;</properties>
<properties>FOO="bar"</properties>
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
<org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.NodeLabelBuildParameter>
<name>NODE</name>

View File

@ -6,7 +6,7 @@
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
<configs>
<hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
<filter>label==&quot;x86&quot;</filter>
<filter>label=="x86"</filter>
</hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
</configs>
<projects>build_started</projects>

View File

@ -11,12 +11,12 @@
<enhancedLogging>true</enhancedLogging>
<preventRemoteBuildQueue>true</preventRemoteBuildQueue>
<blockBuildUntilComplete>true</blockBuildUntilComplete>
<parameters>FOO=&quot;bar&quot;
herp=&quot;derp&quot;
<parameters>FOO="bar"
herp="derp"
</parameters>
<parameterList>
<string>FOO=&quot;bar&quot;</string>
<string>herp=&quot;derp&quot;</string>
<string>FOO="bar"</string>
<string>herp="derp"</string>
</parameterList>
<loadParamsFromFile>true</loadParamsFromFile>
<parameterFile>.props</parameterFile>

View File

@ -16,7 +16,7 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Unicode! ?&quot;
echo "Unicode! ?"
</command>
</hudson.tasks.Shell>
</buildSteps>

View File

@ -157,7 +157,12 @@ def check_generator(scenario, input, expected_output, jjb_config, registry, proj
generator = Generator(registry)
generator.gen_xml(xml, input)
pretty_xml = XmlJob(xml, "fixturejob").output().decode()
pretty_xml = (
XmlJob(xml, "fixturejob")
.output()
.decode()
.replace("&quot;", '"') # Ensure compatibility with Python < 3.13
)
assert expected_output == pretty_xml
return check
@ -198,6 +203,7 @@ def check_job(scenario, expected_output, jjb_config, registry):
"\n".join(job.output().decode() for job in job_xml_list)
.strip()
.replace("\n\n", "\n")
.replace("&quot;", '"') # Ensure compatibility with Python < 3.13
)
if expected_output is None:
return

View File

@ -116,7 +116,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -136,12 +136,12 @@ print(&quot;Doing something cool with python&quot;)
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing somethin cool with zsh&quot;
echo "Doing somethin cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -16,13 +16,13 @@
# sample script to check that variables are expanded
# when using the !include-raw-expand: application yaml tag
VAR1=&quot;1&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="1"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that variables aren't expanded
# when using the !include-raw-verbatim: application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
@ -26,13 +26,13 @@ exit 0
# sample script to check that variables aren't expanded
# when using the !include-raw-verbatim: application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
@ -26,13 +26,13 @@ exit 0
# sample script to check that variables aren't expanded
# when using the !include-raw-verbatim: application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that variables aren't expanded
# when using the !include-raw-verbatim: application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -19,9 +19,9 @@ DIFFERENT_ENV_VAR=different
# Debug output
echo -e &quot;\n\n\n&quot;
echo -e "\n\n\n"
sort | env
echo -e &quot;\n\n\n&quot;
echo -e "\n\n\n"
# Test Command
bundle install

View File

@ -136,7 +136,7 @@
<descriptionPropertyFile/>
<descriptionPropertyKey/>
<bindings/>
<groovyScript>import net.sf.json.JSONObject; def jsonEditorOptions = JSONObject.fromObject(/{schema: {&quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;Name&quot;, &quot;properties&quot;: {&quot;name&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;propertyOrder&quot; : 1}}}}/);</groovyScript>
<groovyScript>import net.sf.json.JSONObject; def jsonEditorOptions = JSONObject.fromObject(/{schema: {"type": "object", "title": "Name", "properties": {"name": {"type": "string", "propertyOrder" : 1}}}}/);</groovyScript>
<groovyScriptFile/>
<groovyClasspath/>
<defaultGroovyScript/>

View File

@ -9,7 +9,7 @@
</hudson.plugins.batch__task.BatchTask>
<hudson.plugins.batch__task.BatchTask>
<name>say hello</name>
<script>echo &quot;Hello world&quot;</script>
<script>echo "Hello world"</script>
</hudson.plugins.batch__task.BatchTask>
</tasks>
</hudson.plugins.batch__task.BatchTaskProperty>

View File

@ -11,15 +11,15 @@
username=fedora-atomic
</messageProperties>
<messageContent>{
&quot;build_url&quot;: &quot;${BUILD_URL}&quot;,
&quot;compose_url&quot;: &quot;&lt;full-url-to-compose&gt;&quot;,
&quot;build_id&quot;: &quot;${BUILD_ID}&quot;,
&quot;ref&quot;: &quot;fedora/rawhide/${basearch}/atomic-host&quot;,
&quot;rev&quot;: &quot;&lt;sha of the commit from dist-git&gt;&quot;,
&quot;namespace&quot;: &quot;rpms&quot;,
&quot;repo&quot;: &quot;php-simplepie&quot;,
&quot;status&quot;: &quot;&lt;success/failure/aborted&gt;&quot;,
&quot;test_guidance&quot;: &quot;&lt;comma-separated-list-of-test-suites-to-run&gt;&quot;}
"build_url": "${BUILD_URL}",
"compose_url": "&lt;full-url-to-compose&gt;",
"build_id": "${BUILD_ID}",
"ref": "fedora/rawhide/${basearch}/atomic-host",
"rev": "&lt;sha of the commit from dist-git&gt;",
"namespace": "rpms",
"repo": "php-simplepie",
"status": "&lt;success/failure/aborted&gt;",
"test_guidance": "&lt;comma-separated-list-of-test-suites-to-run&gt;"}
</messageContent>
</com.redhat.jenkins.plugins.ci.CIMessageNotifier>
</publishers>

View File

@ -20,7 +20,7 @@
</logTexts>
<EscalateStatus>true</EscalateStatus>
<RunIfJobSuccessful>true</RunIfJobSuccessful>
<script>echo &quot;Here goes the task script&quot;
<script>echo "Here goes the task script"
</script>
</hudson.plugins.postbuildtask.TaskProperties>
</tasks>

View File

@ -12,7 +12,7 @@
</logTexts>
<EscalateStatus>true</EscalateStatus>
<RunIfJobSuccessful>true</RunIfJobSuccessful>
<script>echo &quot;Here goes the task script&quot;
<script>echo "Here goes the task script"
</script>
</hudson.plugins.postbuildtask.TaskProperties>
</tasks>

View File

@ -54,7 +54,7 @@
</results>
<executeOn>MATRIX</executeOn>
<role>MASTER</role>
<content>println &quot;Hello world!&quot;</content>
<content>println "Hello world!"</content>
</org.jenkinsci.plugins.postbuildscript.model.Script>
<org.jenkinsci.plugins.postbuildscript.model.Script>
<results>
@ -63,8 +63,8 @@
<string>FAILURE</string>
</results>
<role>SLAVE</role>
<content>println &quot;Hello world!&quot;
println &quot;Multi-line script&quot;
<content>println "Hello world!"
println "Multi-line script"
</content>
</org.jenkinsci.plugins.postbuildscript.model.Script>
</groovyScripts>
@ -78,7 +78,7 @@ println &quot;Multi-line script&quot;
<role>MASTER</role>
<buildSteps>
<hudson.tasks.Shell>
<command>echo &quot;Hello world!&quot;</command>
<command>echo "Hello world!"</command>
</hudson.tasks.Shell>
</buildSteps>
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
@ -92,10 +92,10 @@ println &quot;Multi-line script&quot;
<role>SLAVE</role>
<buildSteps>
<hudson.tasks.Shell>
<command>echo &quot;Hello world!&quot;</command>
<command>echo "Hello world!"</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;Goodbye world!&quot;</command>
<command>echo "Goodbye world!"</command>
</hudson.tasks.Shell>
</buildSteps>
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>

View File

@ -5,7 +5,7 @@
<markBuildUnstable>false</markBuildUnstable>
<buildSteps>
<hudson.tasks.Shell>
<command>echo &quot;Shell execution&quot;</command>
<command>echo "Shell execution"</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>
<targets>ant_target</targets>

View File

@ -5,7 +5,7 @@
<markBuildUnstable>false</markBuildUnstable>
<buildSteps>
<hudson.tasks.Shell>
<command>echo &quot;Shell execution&quot;</command>
<command>echo "Shell execution"</command>
</hudson.tasks.Shell>
</buildSteps>
<scriptOnlyIfSuccess>true</scriptOnlyIfSuccess>

View File

@ -5,7 +5,7 @@
<markBuildUnstable>true</markBuildUnstable>
<buildSteps>
<hudson.tasks.Shell>
<command>echo &quot;Shell execution should be first&quot;</command>
<command>echo "Shell execution should be first"</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>
<targets>ant_target</targets>

View File

@ -44,7 +44,7 @@ bar=foo
<combineQueuedCommits>true</combineQueuedCommits>
</hudson.plugins.git.GitRevisionBuildParameters>
<hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
<filter>label==&quot;x86&quot;</filter>
<filter>label=="x86"</filter>
</hudson.plugins.parameterizedtrigger.matrix.MatrixSubsetBuildParameters>
</configs>
<projects>yet_another_job</projects>

View File

@ -18,10 +18,10 @@
<destinationDir>build</destinationDir>
<repoUrl>https://internal.net/projects/repo</repoUrl>
<mirrorDir>~/git/project/</mirrorDir>
<localManifest>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
<localManifest>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;manifest&gt;
&lt;project path=&quot;external/project&quot; name=&quot;org/project&quot;
remote=&quot;gerrit&quot; revision=&quot;master&quot; /&gt;
&lt;project path="external/project" name="org/project"
remote="gerrit" revision="master" /&gt;
&lt;/manifest&gt;
</localManifest>
<ignoreProjects class="linked-hash-set">

View File

@ -4,7 +4,7 @@
<com.redhat.jenkins.plugins.ci.CIBuildTrigger>
<spec/>
<noSquash>true</noSquash>
<selector>topic = &quot;org.fedoraproject.prod.fedimg.image.upload&quot;</selector>
<selector>topic = "org.fedoraproject.prod.fedimg.image.upload"</selector>
<providerName>fedmsg</providerName>
<checks>
<com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck>

View File

@ -4,7 +4,7 @@
<com.redhat.jenkins.plugins.ci.CIBuildTrigger>
<spec/>
<noSquash>false</noSquash>
<selector>topic = &quot;org.fedoraproject.prod.fedimg.image.upload&quot;</selector>
<selector>topic = "org.fedoraproject.prod.fedimg.image.upload"</selector>
<providerName>fedmsg</providerName>
</com.redhat.jenkins.plugins.ci.CIBuildTrigger>
</triggers>

View File

@ -12,10 +12,10 @@
</deployReleaseRepository>
</details>
<uploadSpec>
<spec>{ &quot;files&quot;: [ { &quot;pattern&quot;: &quot;*.jar&quot;, &quot;target&quot;: &quot;release&quot; } ] }</spec>
<spec>{ "files": [ { "pattern": "*.jar", "target": "release" } ] }</spec>
</uploadSpec>
<downloadSpec>
<spec>{ &quot;files&quot;: [ { &quot;pattern&quot;: &quot;*.jar&quot;, &quot;target&quot;: &quot;release&quot; } ] }</spec>
<spec>{ "files": [ { "pattern": "*.jar", "target": "release" } ] }</spec>
</downloadSpec>
<useSpecs>true</useSpecs>
<deployPattern/>

View File

@ -5,12 +5,12 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing something cool&quot;
echo "Doing something cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing something cool with zsh&quot;
echo "Doing something cool with zsh"
</command>
</hudson.tasks.Shell>
</buildSteps>

View File

@ -5,12 +5,12 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing something cool&quot;
echo "Doing something cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing something cool with zsh&quot;
echo "Doing something cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -5,12 +5,12 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing something cool&quot;
echo "Doing something cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing something cool with zsh&quot;
echo "Doing something cool with zsh"
</command>
</hudson.tasks.Shell>
</buildSteps>

View File

@ -3,7 +3,7 @@
<buildWrappers>
<org.jvnet.hudson.tools.versionnumber.VersionNumberBuilder>
<environmentVariableName>relVersion</environmentVariableName>
<versionNumberString>${BUILD_DATE_FORMATTED, &quot;yy.M&quot;}.${BUILDS_THIS_MONTH_Z}</versionNumberString>
<versionNumberString>${BUILD_DATE_FORMATTED, "yy.M"}.${BUILDS_THIS_MONTH_Z}</versionNumberString>
<environmentPrefixVariable>relVersion</environmentPrefixVariable>
<skipFailedBuilds>false</skipFailedBuilds>
<useAsBuildDisplayName>false</useAsBuildDisplayName>

View File

@ -13,7 +13,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;This should be empty: &quot;
<command>echo "This should be empty: "
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Here -&gt;&lt;- you should see nothing&quot;</command>
<command>echo "Here -&gt;&lt;- you should see nothing"</command>
</hudson.tasks.Shell>
</builders>
<publishers/>

View File

@ -114,7 +114,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -134,12 +134,12 @@ print(&quot;Doing something cool with python&quot;)
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing somethin cool with zsh&quot;
echo "Doing somethin cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -12,9 +12,9 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Variable: Goodbye World&quot;
echo &quot;Allow empty Variable: Goodbye World&quot;
echo &quot;show that we expand for num: 1&quot;
<command>echo "Variable: Goodbye World"
echo "Allow empty Variable: Goodbye World"
echo "show that we expand for num: 1"
</command>
</hudson.tasks.Shell>
</builders>
@ -36,9 +36,9 @@ echo &quot;show that we expand for num: 1&quot;
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Variable: Goodbye World&quot;
echo &quot;Allow empty Variable: Goodbye World&quot;
echo &quot;show that we expand for num: 2&quot;
<command>echo "Variable: Goodbye World"
echo "Allow empty Variable: Goodbye World"
echo "show that we expand for num: 2"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that brackets aren't expanded
# when using the include-raw-escape application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that brackets aren't expanded
# when using the include-raw-escape application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that brackets are expanded
# when using the include-raw application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -17,7 +17,7 @@
# to inline scripts that are maintained outside of the jenkins
# job yaml configuration.
echo &quot;hello world&quot;
echo "hello world"
exit 0
</command>
@ -28,13 +28,13 @@ exit 0
# sample script to check that brackets aren't expanded
# when using the include-raw application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -12,7 +12,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>my_filter says &quot;hello&quot;</command>
<command>my_filter says "hello"</command>
</hudson.tasks.Shell>
</builders>
<publishers/>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;param=bar&quot;
<command>echo "param=bar"
</command>
</hudson.tasks.Shell>
</builders>
@ -31,7 +31,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;param=foo&quot;
<command>echo "param=foo"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -16,7 +16,7 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Unicode! ☃&quot;
echo "Unicode! ☃"
</command>
</hudson.tasks.Shell>
</buildSteps>

View File

@ -39,12 +39,12 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing somethin cool with zsh&quot;
echo "Doing somethin cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -32,11 +32,11 @@
# test script containing some variables to show how you can include scripts
# into job template definitions provided you use the !include-raw-verbatim: tag
MSG=&quot;hello world&quot;
MSG="hello world"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo "${MSG}"
exit 0
}
</command>

View File

@ -39,12 +39,12 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing somethin cool with zsh&quot;
echo "Doing somethin cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -16,13 +16,13 @@
# sample script to check that variables aren't expanded
# when using the !include-raw-verbatim: application yaml tag
VAR1=&quot;hello&quot;
VAR2=&quot;world&quot;
VAR3=&quot;${VAR1} ${VAR2}&quot;
VAR1="hello"
VAR2="world"
VAR3="${VAR1} ${VAR2}"
[[ -n &quot;${VAR3}&quot; ]] &amp;&amp; {
[[ -n "${VAR3}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${VAR3}&quot;
echo "${VAR3}"
exit 0
}
</command>

View File

@ -15,7 +15,7 @@
<behavior>0</behavior>
<runForMatrixParent>false</runForMatrixParent>
<script>
<script>if (manager.logContains(&quot;.*no_jenkins.*&quot;)) {
<script>if (manager.logContains(".*no_jenkins.*")) {
manager.build.result = hudson.model.Result.NOT_BUILT
}
</script>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;['repo-1', 'repo-2', 'repo-a1', 'repo-a2']&quot;</command>
<command>echo "['repo-1', 'repo-2', 'repo-a1', 'repo-a2']"</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
@ -30,7 +30,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;['repo-1', 'repo-2', 'repo-b1', 'repo-b2']&quot;</command>
<command>echo "['repo-1', 'repo-2', 'repo-b1', 'repo-b2']"</command>
</hudson.tasks.Shell>
</builders>
<publishers/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
</script>
<sandbox>false</sandbox>
</definition>

View File

@ -11,7 +11,7 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;hello&quot;</command>
<command>echo "hello"</command>
</hudson.tasks.Shell>
</builders>
<publishers/>

View File

@ -13,7 +13,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -36,7 +36,7 @@ print(&quot;Doing something cool with python&quot;)
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -59,7 +59,7 @@ print(&quot;Doing something cool with python&quot;)
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something else cool with python&quot;)
print("Doing something else cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -82,7 +82,7 @@ print(&quot;Doing something else cool with python&quot;)
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something else cool with python&quot;)
print("Doing something else cool with python")
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -15,18 +15,18 @@
#
# version 1.1 of the echo vars script
MSG=&quot;hello world&quot;
VERSION=&quot;1.1&quot;
MSG="hello world"
VERSION="1.1"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo &quot;version: ${VERSION}&quot;
echo "${MSG}"
echo "version: ${VERSION}"
exit 0
}
#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -15,13 +15,13 @@
#
# version 1.1 of the echo vars script
MSG=&quot;hello world&quot;
VERSION=&quot;1.1&quot;
MSG="hello world"
VERSION="1.1"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo &quot;version: ${VERSION}&quot;
echo "${MSG}"
echo "version: ${VERSION}"
exit 0
}
</command>
@ -48,13 +48,13 @@ VERSION=&quot;1.1&quot;
#
# version 1.2 of the echo vars script
MSG=&quot;hello world&quot;
VERSION=&quot;1.2&quot;
MSG="hello world"
VERSION="1.2"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo &quot;version: ${VERSION}&quot;
echo "${MSG}"
echo "version: ${VERSION}"
exit 0
}
</command>

View File

@ -15,13 +15,13 @@
#
# version 1.1 of the echo vars script
MSG=&quot;hello world&quot;
VERSION=&quot;1.1&quot;
MSG="hello world"
VERSION="1.1"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo &quot;version: ${VERSION}&quot;
echo "${MSG}"
echo "version: ${VERSION}"
exit 0
}
</command>

View File

@ -15,13 +15,13 @@
#
# version 1.2 of the echo vars script
MSG=&quot;hello world&quot;
VERSION=&quot;1.2&quot;
MSG="hello world"
VERSION="1.2"
[[ -n &quot;${MSG}&quot; ]] &amp;&amp; {
[[ -n "${MSG}" ]] &amp;&amp; {
# this next section is executed as one
echo &quot;${MSG}&quot;
echo &quot;version: ${VERSION}&quot;
echo "${MSG}"
echo "version: ${VERSION}"
exit 0
}
</command>
@ -43,12 +43,12 @@ VERSION=&quot;1.2&quot;
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Doing somethiung cool&quot;
echo "Doing somethiung cool"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/zsh
echo &quot;Doing somethin cool with zsh&quot;
echo "Doing somethin cool with zsh"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>

View File

@ -12,23 +12,23 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;builder-without-params: Should be expanded: sample global param value&quot;
<command>echo "builder-without-params: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;include-raw-expand: Should be expanded: sample global param value&quot;
<command>echo "include-raw-expand: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;builder-with-params: Should be expanded: sample macro param value&quot;
<command>echo "builder-with-params: Should be expanded: sample macro param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;builder-with-params: Should be expanded: sample global param value&quot;
<command>echo "builder-with-params: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;include-raw-expand: Should be expanded: sample global param value&quot;
<command>echo "include-raw-expand: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -12,23 +12,23 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;builder-without-params: Should be expanded: sample global param value&quot;
<command>echo "builder-without-params: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;include-raw-expand: Should be expanded: sample global param value&quot;
<command>echo "include-raw-expand: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;builder-with-params: Should be expanded: sample macro param value&quot;
<command>echo "builder-with-params: Should be expanded: sample macro param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;builder-with-params: Should be expanded: sample global param value&quot;
<command>echo "builder-with-params: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;include-raw-expand: Should be expanded: sample global param value&quot;
<command>echo "include-raw-expand: Should be expanded: sample global param value"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -2,14 +2,14 @@
<matrix-project>
<executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
<runSequentially>true</runSequentially>
<touchStoneCombinationFilter>os == &quot;fedora11&quot;</touchStoneCombinationFilter>
<touchStoneCombinationFilter>os == "fedora11"</touchStoneCombinationFilter>
<touchStoneResultCondition>
<name>UNSTABLE</name>
<ordinal>1</ordinal>
<color>YELLOW</color>
</touchStoneResultCondition>
</executionStrategy>
<combinationFilter>!(os==&quot;fedora11&quot; &amp;&amp; arch==&quot;amd64&quot;)</combinationFilter>
<combinationFilter>!(os=="fedora11" &amp;&amp; arch=="amd64")</combinationFilter>
<axes>
<hudson.matrix.LabelExpAxis>
<name>os</name>

View File

@ -2,7 +2,7 @@
<matrix-project>
<executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
<runSequentially>false</runSequentially>
<touchStoneCombinationFilter>os == &quot;linux&quot;</touchStoneCombinationFilter>
<touchStoneCombinationFilter>os == "linux"</touchStoneCombinationFilter>
<touchStoneResultCondition>
<name>SUCCESS</name>
<ordinal>0</ordinal>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.cloudbees.plugins.flow.BuildFlow>
<dsl>build(&quot;job1&quot;)
<dsl>build("job1")
parallel (
{ build(&quot;job2a&quot;) },
{ build(&quot;job2b&quot;) }
{ build("job2a") },
{ build("job2b") }
)
</dsl>
<buildNeedsWorkspace>false</buildNeedsWorkspace>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<com.cloudbees.plugins.flow.BuildFlow>
<dsl>build(&quot;job1&quot;)
<dsl>build("job1")
parallel (
{ build(&quot;job2a&quot;) },
{ build(&quot;job2b&quot;) }
{ build("job2a") },
{ build("job2b") }
)
build(&quot;job2c&quot;)
build("job2c")
</dsl>
<buildNeedsWorkspace>false</buildNeedsWorkspace>
<actions/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
</script>
<sandbox>false</sandbox>
</definition>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo I'm alive!&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo I'm alive!"
}
]
</script>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo hello&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo hello"
}
]
</script>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo hello&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo hello"
}
]
</script>

View File

@ -2,7 +2,7 @@
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>stage('Build another job') {
build(job: &quot;hello&quot;)
build(job: "hello")
}
</script>
<sandbox>false</sandbox>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
</script>
<sandbox>false</sandbox>
</definition>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo I'm alive!&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo I'm alive!"
}
]
</script>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo hello&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo hello"
}
]
</script>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
parallel [
2a: build job: &quot;job2a&quot;,
2b: node &quot;dummynode&quot; {
sh &quot;echo hello&quot;
2a: build job: "job2a",
2b: node "dummynode" {
sh "echo hello"
}
]
</script>

View File

@ -58,7 +58,7 @@
<builders>
<hudson.tasks.Shell>
<command>#!/bin/bash
IMG_NAME=&quot;gluster/glusterd2-nightly&quot;
IMG_NAME="gluster/glusterd2-nightly"
IMG_VERSION=$(date +%Y%m%d)
@ -75,9 +75,9 @@ make
cp pkg/glusterfs/Dockerfile .
buildah bud .
#if [ &quot;$PUSH_TO_HUB&quot; = true ]; then
#buildah push --authfile $AUTH_JSON &quot;localhost/$IMG_NAME:$IMG_VERSION&quot; &quot;docker://docker.io/gluster/glusterd2-nightly:$IMG_VERSION&quot;
#buildah push --authfile $AUTH_JSON &quot;localhost/$IMG_NAME:$IMG_VERSION&quot; &quot;docker://docker.io/gluster/glusterd2-nightly:latest&quot;
#if [ "$PUSH_TO_HUB" = true ]; then
#buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:$IMG_VERSION"
#buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:latest"
#fi
</command>
</hudson.tasks.Shell>

View File

@ -26,9 +26,9 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Template name: string-join-data-{name}&quot;
echo &quot;Data to be processed:&quot;
echo &quot;${INPUT_DATA}&quot;
<command>echo "Template name: string-join-data-{name}"
echo "Data to be processed:"
echo "${INPUT_DATA}"
</command>
</hudson.tasks.Shell>
</builders>
@ -64,9 +64,9 @@ echo &quot;${INPUT_DATA}&quot;
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Template name: string-join-data-{name}&quot;
echo &quot;Data to be processed:&quot;
echo &quot;${INPUT_DATA}&quot;
<command>echo "Template name: string-join-data-{name}"
echo "Data to be processed:"
echo "${INPUT_DATA}"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -12,8 +12,8 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Job Name: template-variable-defaults-1-periodic&quot;
echo &quot;Variable: Hello World&quot;
<command>echo "Job Name: template-variable-defaults-1-periodic"
echo "Variable: Hello World"
</command>
</hudson.tasks.Shell>
</builders>
@ -34,8 +34,8 @@ echo &quot;Variable: Hello World&quot;
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Job Name: template-variable-defaults-2-periodic&quot;
echo &quot;Variable: Goodbye World&quot;
<command>echo "Job Name: template-variable-defaults-2-periodic"
echo "Variable: Goodbye World"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<flow-definition plugin="workflow-job">
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps">
<script>build job: &quot;job1&quot;
<script>build job: "job1"
</script>
<sandbox>false</sandbox>
</definition>

View File

@ -11,9 +11,9 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Template name: template-test-ids-{num}-{type}&quot;
echo &quot;Job name: template-test-ids-1-periodic&quot;
echo &quot;Hello World&quot;
<command>echo "Template name: template-test-ids-{num}-{type}"
echo "Job name: template-test-ids-1-periodic"
echo "Hello World"
</command>
</hudson.tasks.Shell>
</builders>
@ -34,12 +34,12 @@ echo &quot;Hello World&quot;
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;Template name: template-test-ids-{num}-{type}&quot;
echo &quot;Job name: template-test-ids-2-canary&quot;
<command>echo "Template name: template-test-ids-{num}-{type}"
echo "Job name: template-test-ids-2-canary"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;Goodbye World&quot;
<command>echo "Goodbye World"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -13,7 +13,7 @@
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>
@ -93,7 +93,7 @@ print(&quot;Doing something cool with python&quot;)
<hudson.tasks.Shell>
<command>#!/usr/bin/env python
#
print(&quot;Doing something cool with python&quot;)
print("Doing something cool with python")
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -16,7 +16,7 @@
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo &quot;Unicode! ☃&quot;
echo "Unicode! ☃"
</command>
</hudson.tasks.Shell>
</buildSteps>

View File

@ -72,10 +72,10 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;{defined_var|+1}&quot;
echo &quot;{defined_var|-1}&quot;
echo &quot;{undefined_var|+1}&quot;
echo &quot;{undefined_var|-1}&quot;
<command>echo "{defined_var|+1}"
echo "{defined_var|-1}"
echo "{undefined_var|+1}"
echo "{undefined_var|-1}"
</command>
</hudson.tasks.Shell>
</builders>

View File

@ -11,10 +11,10 @@
<scm class="hudson.scm.NullSCM"/>
<builders>
<hudson.tasks.Shell>
<command>echo &quot;{var}&quot;
echo &quot;{defined_var|def}&quot;
echo &quot;{undefined_var|def}&quot;
echo &quot;{undefined_var|defined_var}&quot;
<command>echo "{var}"
echo "{defined_var|def}"
echo "{undefined_var|def}"
echo "{undefined_var|defined_var}"
</command>
</hudson.tasks.Shell>
</builders>