James E. Blair 1ea656b6a4 Changes to builders/publishers.
Make the following changes to builders and publishers in service
of being able to handle this job:

  http://paste.openstack.org/show/18541/

* Allow builders to have attributes
* Add a generic shell script builder
* Make the 'project' job attribute optional
  (no link to github will be made in that case)
* Combine all separate publishers into one publisher module
  so that jobs may have more than one publisher
* Name the section that lists publishers "post_build_actions"
  to be consistent with the web UI
* Allow publishers to have attributes
* Add an archive artifacts publisher
* Add a parameterized build trigger publisher
* Add a parameterized build_trigger builder
* Add wrappers
* Add a build timeout wrapper
* Add a timstamp wrapper

Also, make the following small improvements:

* The 'disabled' attribute of a job is optional, defaults to false.
* Add a script to verify XML output is the same before and after
  a change to the job filler (test.sh)

Change-Id: Icf2228494e431f5bf0a5f051f63842f12f6f92f1
2012-06-14 18:09:26 -07:00

227 lines
4.4 KiB
YAML

---
# gate-gerrit-merge
modules:
- properties
- scm
- assignednode
- builders
- publishers
main:
name: 'gate-gerrit-merge'
github_org: 'openstack-ci'
review_site: 'review.openstack.org'
project: 'gerrit'
authenticatedBuild: 'true'
concurrent: 'true'
parameters:
- name: UUID
type: string
description: Zuul provided key to link builds with Gerrit events
- name: GERRIT_PROJECT
type: string
description: Zuul provided project name
- name: GERRIT_BRANCH
type: string
description: Zuul provided branch name
- name: GERRIT_CHANGES
type: string
description: Zuul provided list of dependent changes to merge
notification_endpoints:
- protocol: HTTP
URL: http://127.0.0.1:8001/jenkins_endpoint
builders:
- gerrit_git_prep
scm:
scm: 'false'
assignednode:
node: 'precise'
---
# check-gerrit-unittests
modules:
- project_maven
- properties
- scm
- assignednode
- builders:prebuilders
- publishers
main:
name: 'check-gerrit-unittests'
review_site: 'review.openstack.org'
github_org: 'openstack-ci'
project: 'gerrit'
authenticatedBuild: 'true'
concurrent: 'true'
parameters:
- name: UUID
type: string
description: Zuul provided key to link builds with Gerrit events
- name: GERRIT_PROJECT
type: string
description: Zuul provided project name
- name: GERRIT_BRANCH
type: string
description: Zuul provided branch name
- name: GERRIT_CHANGES
type: string
description: Zuul provided list of dependent changes to merge
notification_endpoints:
- protocol: HTTP
URL: http://127.0.0.1:8001/jenkins_endpoint
prebuilders:
- gerrit_git_prep
- gerrit_preclean
maven:
root_module:
group_id: com.google.gerrit
artifact_id: gerrit-parent
goals: 'clean package -Dgerrit.include-documentation=1 -X'
postbuilders:
- gerrit_postrun
post_build_actions:
- war:
site: 'nova.openstack.org'
warfile: 'gerrit-war/target/gerrit*.war'
target_path: 'tarballs/ci/test/'
scm:
scm: 'false'
assignednode:
node: 'precise'
---
# gate-gerrit-unittests
modules:
- project_maven
- properties
- scm
- assignednode
- builders:prebuilders
- builders:postbuilders
- publishers
main:
name: 'gate-gerrit-unittests'
review_site: 'review.openstack.org'
github_org: 'openstack-ci'
project: 'gerrit'
authenticatedBuild: 'true'
concurrent: 'true'
parameters:
- name: UUID
type: string
description: Zuul provided key to link builds with Gerrit events
- name: GERRIT_PROJECT
type: string
description: Zuul provided project name
- name: GERRIT_BRANCH
type: string
description: Zuul provided branch name
- name: GERRIT_CHANGES
type: string
description: Zuul provided list of dependent changes to merge
notification_endpoints:
- protocol: HTTP
URL: http://127.0.0.1:8001/jenkins_endpoint
prebuilders:
- gerrit_git_prep
- gerrit_preclean
maven:
root_module:
group_id: com.google.gerrit
artifact_id: gerrit-parent
goals: 'clean package -Dgerrit.include-documentation=1 -X'
postbuilders:
- gerrit_postrun
scm:
scm: 'false'
assignednode:
node: 'precise'
---
# gerrit-package
modules:
- project_maven
- properties
- scm
- assignednode
- builders:prebuilders
- builders:postbuilders
- publishers
main:
name: 'gerrit-package'
review_site: 'review.openstack.org'
github_org: 'openstack-ci'
project: 'gerrit'
authenticatedBulid: 'false'
concurrent: 'true'
parameters:
- name: UUID
type: string
description: Zuul provided key to link builds with Gerrit events
- name: GERRIT_PROJECT
type: string
description: Zuul provided project name
- name: GERRIT_REFNAME
type: string
description: Zuul provided ref name
- name: GERRIT_OLDREV
type: string
description: Zuul provided old reference for ref-updated
- name: GERRIT_NEWREV
type: string
description: Zuul provided new reference for ref-updated
notification_endpoints:
- protocol: HTTP
URL: http://127.0.0.1:8001/jenkins_endpoint
prebuilders:
- gerrit_git_prep
- gerrit_preclean
maven:
root_module:
group_id: com.google.gerrit
artifact_id: gerrit-parent
goals: 'clean package -Dgerrit.include-documentation=1 -X'
postbuilders:
- gerrit_postrun
post_build_actions:
- war:
site: 'nova.openstack.org'
warfile: 'gerrit-war/target/gerrit*.war'
target_path: 'tarballs/ci/'
scm:
scm: 'false'
assignednode:
node: 'precise'