From c4d3abfff32a9f0ab8c3a6f846620716c6bb9125 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Tue, 11 Oct 2016 23:37:38 -0700 Subject: [PATCH] Add jobs for dev zuul-launcher * Add jobs for dev zuul-launcher which will run on zuul-dev.o.o * Update dev zuul layout with same pipelines defined in prod layout. * Setup zuul-dev layout to trigger on review-dev projects. Change-Id: Ief59c0b52b196b614f8a7da859c3ba024813f1a3 --- dev/jenkins/jobs/noop.yaml | 18 +++++ dev/jenkins/jobs/projects.yaml | 12 ++++ dev/zuul/layout.yaml | 124 +++++++++++++++++++++------------ 3 files changed, 110 insertions(+), 44 deletions(-) create mode 100644 dev/jenkins/jobs/noop.yaml create mode 100644 dev/jenkins/jobs/projects.yaml diff --git a/dev/jenkins/jobs/noop.yaml b/dev/jenkins/jobs/noop.yaml new file mode 100644 index 0000000000..ab465a4a18 --- /dev/null +++ b/dev/jenkins/jobs/noop.yaml @@ -0,0 +1,18 @@ +- job-template: + name: '{pipeline}-noop' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 30 + - timestamps + + builders: + - gerrit-git-prep + - install-distro-packages + - revoke-sudo + - shell: | + env + + publishers: + - console-log diff --git a/dev/jenkins/jobs/projects.yaml b/dev/jenkins/jobs/projects.yaml new file mode 100644 index 0000000000..eabfe6374c --- /dev/null +++ b/dev/jenkins/jobs/projects.yaml @@ -0,0 +1,12 @@ +# +# The projects in this file are sorted alphabetically. +# + +- project: + name: noop + tarball-site: tarballs.openstack.org + + jobs: + - '{pipeline}-noop': + pipeline: gate + node: ubuntu-xenial diff --git a/dev/zuul/layout.yaml b/dev/zuul/layout.yaml index 73717e41f3..ba93d34004 100644 --- a/dev/zuul/layout.yaml +++ b/dev/zuul/layout.yaml @@ -8,7 +8,7 @@ pipelines: failure-message: Build failed (check pipeline). For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing manager: IndependentPipelineManager source: gerrit - precedence: low + precedence: normal require: open: True current-patchset: True @@ -37,7 +37,7 @@ pipelines: failure-message: Build failed (gate pipeline). For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing manager: DependentPipelineManager source: gerrit - precedence: low + precedence: high require: open: True current-patchset: True @@ -77,11 +77,21 @@ pipelines: - event: ref-updated ref: ^(?!refs/).*$ + - name: release-post + description: This pipeline runs release-process-critical jobs that operate after specific changes are merged. + manager: IndependentPipelineManager + source: gerrit + precedence: high + trigger: + gerrit: + - event: ref-updated + ref: ^(?!refs/).*$ + - name: tag description: This pipeline runs jobs in response to any tag event. manager: IndependentPipelineManager source: gerrit - precedence: low + precedence: high trigger: gerrit: - event: ref-updated @@ -91,7 +101,7 @@ pipelines: description: This pipeline runs jobs on projects in response to pre-release tags. manager: IndependentPipelineManager source: gerrit - precedence: low + precedence: high trigger: gerrit: - event: ref-updated @@ -101,7 +111,7 @@ pipelines: description: When a commit is tagged as a release, this pipeline runs jobs that publish archives and documentation. manager: IndependentPipelineManager source: gerrit - precedence: low + precedence: high trigger: gerrit: - event: ref-updated @@ -124,7 +134,7 @@ pipelines: failure-message: Build failed (experimental pipeline). manager: IndependentPipelineManager source: gerrit - precedence: low + precedence: normal trigger: gerrit: - event: comment-added @@ -163,6 +173,57 @@ pipelines: gerrit: verified: -1 + - name: periodic-stable + description: Periodic checks of the stable branches. + manager: IndependentPipelineManager + source: gerrit + precedence: low + trigger: + timer: + - time: '1 6 * * *' + + +project-templates: + - name: merge-check + merge-check: + - noop + + - name: noop-jobs + check: + - noop + gate: + - noop + post: + - noop + tag: + - noop + pre-release: + - noop + release: + - noop + experimental: + - noop + silent: + - noop + + - name: gate-noop-jobs + check: + - gate-noop + gate: + - gate-noop + post: + - gate-noop + tag: + - gate-noop + pre-release: + - gate-noop + release: + - gate-noop + experimental: + - gate-noop + silent: + - gate-noop + jobs: - name: ^.*$ parameter-function: set_log_url @@ -172,50 +233,25 @@ jobs: voting: false projects: + # This project is setup to run the internal zuul 'noop' job. - name: gtest-org/gtest - check: - - noop - gate: - - noop - post: - - noop - tag: - - noop - pre-release: - - noop - release: - - noop - experimental: - - noop - silent: - - noop - merge-check: - - noop + template: + - name: merge-check + - name: noop-jobs - # This project is setup to run the 'gate-noop' job on jenkins, - # make sure the job has been created on jenkins-dev.o.o + # This project is setup to run the 'gate-noop' job. - name: gtest-org/gtest2 - check: - - gate-noop - gate: - - gate-noop - post: - - gate-noop - tag: - - gate-noop - pre-release: - - gate-noop - release: - - gate-noop - experimental: - - gate-noop - silent: - - gate-noop - merge-check: - - gate-noop + template: + - name: merge-check + - name: gate-noop-jobs # This project is setup to run jobs in the periodic pipeline - name: gtest-org/test2 periodic: - noop + + # This project is setup to run jobs in the periodic-stable pipeline + - name: gtest-org/test3 + periodic-stable: + - noop