Merge "Make unit tests compatible with Python 3.13"

This commit is contained in:
Zuul 2024-10-30 18:09:23 +00:00 committed by Gerrit Code Review
commit 26d10f4f18
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