Merge "bug/2002053 allow None for auth-token"
This commit is contained in:
commit
5aa4f1a9d9
|
@ -155,8 +155,9 @@ class General(jenkins_jobs.modules.base.Base):
|
|||
else:
|
||||
XML.SubElement(xml,
|
||||
'blockBuildWhenUpstreamBuilding').text = 'false'
|
||||
if 'auth-token' in data:
|
||||
XML.SubElement(xml, 'authToken').text = data['auth-token']
|
||||
authtoken = data.get('auth-token', None)
|
||||
if authtoken is not None:
|
||||
XML.SubElement(xml, 'authToken').text = authtoken
|
||||
if data.get('concurrent'):
|
||||
XML.SubElement(xml, 'concurrentBuild').text = 'true'
|
||||
else:
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<actions/>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<canRoam>true</canRoam>
|
||||
</project>
|
|
@ -0,0 +1,2 @@
|
|||
project-type: freestyle
|
||||
auth-token:
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<actions/>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<authToken>testvalue</authToken>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<canRoam>true</canRoam>
|
||||
</project>
|
|
@ -0,0 +1,2 @@
|
|||
project-type: freestyle
|
||||
auth-token: 'testvalue'
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<actions/>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<authToken/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<canRoam>true</canRoam>
|
||||
</project>
|
|
@ -0,0 +1,2 @@
|
|||
project-type: freestyle
|
||||
auth-token: ''
|
Loading…
Reference in New Issue