Change all '_' to '-' in YAML for consistency.
Change-Id: If19cb26fa544b485acfc188baf3506eaea61d6cf Reviewed-on: https://review.openstack.org/11154 Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
8f09841693
commit
6a5392603e
@ -37,8 +37,8 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- python26_essex
|
- python26-essex
|
||||||
|
|
||||||
# >= precise does not have python2.6
|
# >= precise does not have python2.6
|
||||||
node: oneiric
|
node: oneiric
|
||||||
@ -74,7 +74,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- python27_essex
|
- python27-essex
|
||||||
|
|
||||||
node: oneiric
|
node: oneiric
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
@ -69,7 +69,7 @@
|
|||||||
builders:
|
builders:
|
||||||
- trigger-builds:
|
- trigger-builds:
|
||||||
- project: devstack-update-inprogress
|
- project: devstack-update-inprogress
|
||||||
predefined_parameters:
|
predefined-parameters:
|
||||||
DEVSTACK_NODE_NAME=${NODE_NAME}
|
DEVSTACK_NODE_NAME=${NODE_NAME}
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
@ -103,7 +103,7 @@
|
|||||||
- trigger-parameterized-builds:
|
- trigger-parameterized-builds:
|
||||||
- project: devstack-update-complete
|
- project: devstack-update-complete
|
||||||
when: complete
|
when: complete
|
||||||
predefined_parameters:
|
predefined-parameters:
|
||||||
DEVSTACK_NODE_NAME=${NODE_NAME}
|
DEVSTACK_NODE_NAME=${NODE_NAME}
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@
|
|||||||
builders:
|
builders:
|
||||||
- trigger-builds:
|
- trigger-builds:
|
||||||
- project: devstack-update-inprogress
|
- project: devstack-update-inprogress
|
||||||
predefined_parameters:
|
predefined-parameters:
|
||||||
DEVSTACK_NODE_NAME=${NODE_NAME}
|
DEVSTACK_NODE_NAME=${NODE_NAME}
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
@ -179,7 +179,7 @@
|
|||||||
- trigger-parameterized-builds:
|
- trigger-parameterized-builds:
|
||||||
- project: devstack-update-complete
|
- project: devstack-update-complete
|
||||||
when: complete
|
when: complete
|
||||||
predefined_parameters:
|
predefined-parameters:
|
||||||
DEVSTACK_NODE_NAME=${NODE_NAME}
|
DEVSTACK_NODE_NAME=${NODE_NAME}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,4 +30,4 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
@ -30,6 +30,6 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
node: precise
|
node: precise
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
node: precise
|
node: precise
|
||||||
|
|
||||||
@ -60,17 +60,17 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
prebuilders:
|
prebuilders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- gerrit_preclean
|
- gerrit-preclean
|
||||||
|
|
||||||
maven:
|
maven:
|
||||||
root_module:
|
root-module:
|
||||||
group_id: com.google.gerrit
|
group-id: com.google.gerrit
|
||||||
artifact_id: gerrit-parent
|
artifact-id: gerrit-parent
|
||||||
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
||||||
|
|
||||||
postbuilders:
|
postbuilders:
|
||||||
- gerrit_postrun
|
- gerrit-postrun
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- war:
|
- war:
|
||||||
@ -103,17 +103,17 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
prebuilders:
|
prebuilders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- gerrit_preclean
|
- gerrit-preclean
|
||||||
|
|
||||||
maven:
|
maven:
|
||||||
root_module:
|
root-module:
|
||||||
group_id: com.google.gerrit
|
group-id: com.google.gerrit
|
||||||
artifact_id: gerrit-parent
|
artifact-id: gerrit-parent
|
||||||
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
||||||
|
|
||||||
postbuilders:
|
postbuilders:
|
||||||
- gerrit_postrun
|
- gerrit-postrun
|
||||||
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
@ -137,20 +137,20 @@
|
|||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
prebuilders:
|
prebuilders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- gerrit_preclean
|
- gerrit-preclean
|
||||||
|
|
||||||
maven:
|
maven:
|
||||||
root_module:
|
root-module:
|
||||||
group_id: com.google.gerrit
|
group-id: com.google.gerrit
|
||||||
artifact_id: gerrit-parent
|
artifact-id: gerrit-parent
|
||||||
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
goals: 'clean package -Dgerrit.include-documentation=1 -X'
|
||||||
|
|
||||||
postbuilders:
|
postbuilders:
|
||||||
- gerrit_postrun
|
- gerrit-postrun
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- war:
|
- war:
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
fail: true
|
fail: true
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
logrotate:
|
logrotate:
|
||||||
daysToKeep: 28
|
daysToKeep: 28
|
||||||
@ -43,7 +43,7 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
BRANCH=$GERRIT_REFNAME
|
BRANCH=$GERRIT_REFNAME
|
||||||
@ -78,10 +78,10 @@
|
|||||||
fail: true
|
fail: true
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- shell: tox -v -evenv python setup.py sdist upload
|
- shell: tox -v -evenv python setup.py sdist upload
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -33,10 +33,10 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- shell: tox -v -evenv python setup.py sdist upload
|
- shell: tox -v -evenv python setup.py sdist upload
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -39,5 +39,5 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- selenium
|
- selenium
|
||||||
|
@ -31,4 +31,4 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- builder:
|
- builder:
|
||||||
name: gerrit_git_prep
|
name: gerrit-git-prep
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh review.openstack.org"
|
- shell: "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh review.openstack.org"
|
||||||
|
|
||||||
@ -14,28 +14,28 @@
|
|||||||
- shell: "/usr/local/jenkins/slave_scripts/run-docs.sh"
|
- shell: "/usr/local/jenkins/slave_scripts/run-docs.sh"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: maven_test
|
name: maven-test
|
||||||
builders:
|
builders:
|
||||||
- shell: "mvn test"
|
- shell: "mvn test"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: maven_package
|
name: maven-package
|
||||||
builders:
|
builders:
|
||||||
- shell: "mvn package"
|
- shell: "mvn package"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: gerrit_package
|
name: gerrit-package
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/package-gerrit.sh"
|
- shell: "/usr/local/jenkins/slave_scripts/package-gerrit.sh"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: gerrit_preclean
|
name: gerrit-preclean
|
||||||
#TODO: multiline:
|
#TODO: multiline:
|
||||||
builders:
|
builders:
|
||||||
- shell: "#!/bin/bash -xe\nrm -fr ~/.m2\nrm -fr ~/.java\n./tools/version.sh --release"
|
- shell: "#!/bin/bash -xe\nrm -fr ~/.m2\nrm -fr ~/.java\n./tools/version.sh --release"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: gerrit_postrun
|
name: gerrit-postrun
|
||||||
builders:
|
builders:
|
||||||
- shell: "./tools/version.sh --reset"
|
- shell: "./tools/version.sh --reset"
|
||||||
|
|
||||||
@ -50,7 +50,7 @@
|
|||||||
- shell: "tox -v -epyflakes"
|
- shell: "tox -v -epyflakes"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: puppet_syntax
|
name: puppet-syntax
|
||||||
builders:
|
builders:
|
||||||
# TODO: remove blank line
|
# TODO: remove blank line
|
||||||
- shell: |
|
- shell: |
|
||||||
@ -78,12 +78,12 @@
|
|||||||
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27"
|
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: python26_essex
|
name: python26-essex
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 26-essex"
|
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 26-essex"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: python27_essex
|
name: python27-essex
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27-essex"
|
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27-essex"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
branchPattern: '**'
|
branchPattern: '**'
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
@ -79,4 +79,4 @@
|
|||||||
branchPattern: '**'
|
branchPattern: '**'
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
@ -58,6 +58,6 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- puppet_syntax
|
- puppet-syntax
|
||||||
- pyflakes
|
- pyflakes
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
logrotate:
|
logrotate:
|
||||||
daysToKeep: 28
|
daysToKeep: 28
|
||||||
@ -29,7 +29,7 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
@ -62,7 +62,7 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
logrotate:
|
logrotate:
|
||||||
daysToKeep: 28
|
daysToKeep: 28
|
||||||
@ -71,7 +71,7 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- tarball:
|
- tarball:
|
||||||
project: '{name}'
|
project: '{name}'
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
logrotate:
|
logrotate:
|
||||||
daysToKeep: 28
|
daysToKeep: 28
|
||||||
@ -29,7 +29,7 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
BRANCH=$GERRIT_REFNAME
|
BRANCH=$GERRIT_REFNAME
|
||||||
@ -66,10 +66,10 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- shell: tox -v -evenv python setup.py sdist upload
|
- shell: tox -v -evenv python setup.py sdist upload
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: gate-pypi-mirror-pyflakes
|
name: gate-pypi-mirror-pyflakes
|
||||||
@ -60,5 +60,5 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- pyflakes
|
- pyflakes
|
||||||
|
@ -24,10 +24,10 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- coverage
|
- coverage
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
@ -65,7 +65,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- pep8
|
- pep8
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
@ -103,7 +103,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- python26
|
- python26
|
||||||
|
|
||||||
# >= precise does not have python2.6
|
# >= precise does not have python2.6
|
||||||
@ -145,7 +145,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- python27
|
- python27
|
||||||
|
|
||||||
node: '{node}'
|
node: '{node}'
|
||||||
@ -180,7 +180,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
node: '{node}'
|
node: '{node}'
|
||||||
|
|
||||||
@ -214,7 +214,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
node: '{node}'
|
node: '{node}'
|
||||||
@ -251,7 +251,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- pyflakes
|
- pyflakes
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,6 +29,6 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
node: precise
|
node: precise
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
|
|
||||||
node: precise
|
node: precise
|
||||||
|
|
||||||
@ -58,7 +58,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- pep8
|
- pep8
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- pyflakes
|
- pyflakes
|
||||||
|
|
||||||
|
|
||||||
@ -59,7 +59,7 @@
|
|||||||
- timestamps
|
- timestamps
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- zuul_post
|
- zuul-post
|
||||||
|
|
||||||
logrotate:
|
logrotate:
|
||||||
daysToKeep: 28
|
daysToKeep: 28
|
||||||
@ -68,7 +68,7 @@
|
|||||||
artifactNumToKeep: -1
|
artifactNumToKeep: -1
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit_git_prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -35,11 +35,11 @@ def trigger_builds(parser, xml_parent, data):
|
|||||||
tconfig = XML.SubElement(configs,
|
tconfig = XML.SubElement(configs,
|
||||||
'hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig')
|
'hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig')
|
||||||
tconfigs = XML.SubElement(tconfig, 'configs')
|
tconfigs = XML.SubElement(tconfig, 'configs')
|
||||||
if project_def.has_key('predefined_parameters'):
|
if project_def.has_key('predefined-parameters'):
|
||||||
params = XML.SubElement(tconfigs,
|
params = XML.SubElement(tconfigs,
|
||||||
'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters')
|
'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters')
|
||||||
properties = XML.SubElement(params, 'properties')
|
properties = XML.SubElement(params, 'properties')
|
||||||
properties.text = project_def['predefined_parameters']
|
properties.text = project_def['predefined-parameters']
|
||||||
else:
|
else:
|
||||||
tconfigs.set('class', 'java.util.Collections$EmptyList')
|
tconfigs.set('class', 'java.util.Collections$EmptyList')
|
||||||
projects = XML.SubElement(tconfig, 'projects')
|
projects = XML.SubElement(tconfig, 'projects')
|
||||||
|
@ -31,8 +31,10 @@ class Maven(jenkins_jobs.modules.base.Base):
|
|||||||
return None
|
return None
|
||||||
xml_parent = XML.Element('maven2-moduleset')
|
xml_parent = XML.Element('maven2-moduleset')
|
||||||
root_module = XML.SubElement(xml_parent, 'root_module')
|
root_module = XML.SubElement(xml_parent, 'root_module')
|
||||||
XML.SubElement(root_module, 'groupId').text = data['maven']['root_module']['group_id']
|
XML.SubElement(root_module, 'groupId').text = \
|
||||||
XML.SubElement(root_module, 'artifactId').text = data['maven']['root_module']['artifact_id']
|
data['maven']['root-module']['group-id']
|
||||||
|
XML.SubElement(root_module, 'artifactId').text = \
|
||||||
|
data['maven']['root-module']['artifact-id']
|
||||||
XML.SubElement(xml_parent, 'goals').text = data['maven']['goals']
|
XML.SubElement(xml_parent, 'goals').text = data['maven']['goals']
|
||||||
|
|
||||||
XML.SubElement(xml_parent, 'aggregatorStyleBuild').text = 'true'
|
XML.SubElement(xml_parent, 'aggregatorStyleBuild').text = 'true'
|
||||||
|
@ -40,11 +40,11 @@ def trigger_parameterized_builds(parser, xml_parent, data):
|
|||||||
tconfig = XML.SubElement(configs,
|
tconfig = XML.SubElement(configs,
|
||||||
'hudson.plugins.parameterizedtrigger.BuildTriggerConfig')
|
'hudson.plugins.parameterizedtrigger.BuildTriggerConfig')
|
||||||
tconfigs = XML.SubElement(tconfig, 'configs')
|
tconfigs = XML.SubElement(tconfig, 'configs')
|
||||||
if project_def.has_key('predefined_parameters'):
|
if project_def.has_key('predefined-parameters'):
|
||||||
params = XML.SubElement(tconfigs,
|
params = XML.SubElement(tconfigs,
|
||||||
'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters')
|
'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters')
|
||||||
properties = XML.SubElement(params, 'properties')
|
properties = XML.SubElement(params, 'properties')
|
||||||
properties.text = project_def['predefined_parameters']
|
properties.text = project_def['predefined-parameters']
|
||||||
else:
|
else:
|
||||||
tconfigs.set('class', 'java.util.Collections$EmptyList')
|
tconfigs.set('class', 'java.util.Collections$EmptyList')
|
||||||
projects = XML.SubElement(tconfig, 'projects')
|
projects = XML.SubElement(tconfig, 'projects')
|
||||||
|
@ -68,7 +68,7 @@ class Zuul(jenkins_jobs.modules.base.Base):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if ('zuul' not in job.get('triggers', []) and
|
if ('zuul' not in job.get('triggers', []) and
|
||||||
'zuul_post' not in job.get('triggers', [])):
|
'zuul-post' not in job.get('triggers', [])):
|
||||||
continue
|
continue
|
||||||
if 'parameters' not in job:
|
if 'parameters' not in job:
|
||||||
job['parameters'] = []
|
job['parameters'] = []
|
||||||
@ -78,8 +78,8 @@ class Zuul(jenkins_jobs.modules.base.Base):
|
|||||||
if 'zuul' in job.get('triggers', []):
|
if 'zuul' in job.get('triggers', []):
|
||||||
job['parameters'].extend(ZUUL_PARAMETERS)
|
job['parameters'].extend(ZUUL_PARAMETERS)
|
||||||
job['triggers'].remove('zuul')
|
job['triggers'].remove('zuul')
|
||||||
if 'zuul_post' in job.get('triggers', []):
|
if 'zuul-post' in job.get('triggers', []):
|
||||||
job['parameters'].extend(ZUUL_POST_PARAMETERS)
|
job['parameters'].extend(ZUUL_POST_PARAMETERS)
|
||||||
job['triggers'].remove('zuul_post')
|
job['triggers'].remove('zuul-post')
|
||||||
changed = True
|
changed = True
|
||||||
return changed
|
return changed
|
||||||
|
Loading…
Reference in New Issue
Block a user