From 65952d986b918ce874c1a5838a291c8ac60030bc Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 28 Mar 2013 09:49:02 -0700 Subject: [PATCH] Add statusbot. Change-Id: I9e1902040389be51db5e31edb84e2f950d5cb3fd Reviewed-on: https://review.openstack.org/25630 Reviewed-by: Jeremy Stanley Approved: James E. Blair Tested-by: Jenkins --- .../gerritbot/files/gerritbot_channel_config.yaml | 1 + .../gerrit/acls/openstack-infra/statusbot.config | 12 ++++++++++++ .../jenkins_job_builder/config/projects.yaml | 14 ++++++++++++++ modules/openstack_project/files/zuul/layout.yaml | 15 +++++++++++++++ .../templates/review.projects.yaml.erb | 2 ++ 5 files changed, 44 insertions(+) create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-infra/statusbot.config diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml index ea7e27ade3..6160d4d98d 100644 --- a/modules/gerritbot/files/gerritbot_channel_config.yaml +++ b/modules/gerritbot/files/gerritbot_channel_config.yaml @@ -18,6 +18,7 @@ openstack-infra: - openstack-infra/meetbot - openstack-infra/nose-html-output - openstack-infra/reviewday + - openstack-infra/statusbot - openstack-infra/zuul - openstack-infra/gearman-plugin - openstack/requirements diff --git a/modules/openstack_project/files/gerrit/acls/openstack-infra/statusbot.config b/modules/openstack_project/files/gerrit/acls/openstack-infra/statusbot.config new file mode 100644 index 0000000000..3414985a94 --- /dev/null +++ b/modules/openstack_project/files/gerrit/acls/openstack-infra/statusbot.config @@ -0,0 +1,12 @@ +[access "refs/*"] + create = group openstack-ci-core + pushTag = group openstack-ci-core +[access "refs/heads/*"] + label-Approved = +0..+1 group openstack-ci-core + label-Code-Review = -2..+2 group openstack-ci-core +[project] + state = active +[receive] + requireChangeId = true +[submit] + mergeContent = true diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml index 71027232b5..dc3775211d 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -113,6 +113,20 @@ - pypi-jobs +- project: + name: statusbot + github-org: openstack-infra + node: quantal + doc-publisher-site: ci.openstack.org + tarball-site: tarballs.openstack.org + + jobs: + - gate-{name}-pep8 + - gate-{name}-pyflakes + - '{name}-tarball' + - pypi-jobs + + - project: name: gerritlib github-org: openstack-infra diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index f9cf116386..ca23660083 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -299,6 +299,21 @@ projects: - reviewday-tarball: - reviewday-pypi-upload + - name: openstack-infra/statusbot + check: + - gate-statusbot-pep8 + - gate-statusbot-pyflakes + gate: + - gate-statusbot-pep8 + - gate-statusbot-pyflakes + post: + - statusbot-branch-tarball + pre-release: + - statusbot-tarball + release: + - statusbot-tarball: + - statusbot-pypi-upload + - name: openstack/cinder check: - gate-cinder-pep8: diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb index 5b6f91153c..16bc6036fb 100644 --- a/modules/openstack_project/templates/review.projects.yaml.erb +++ b/modules/openstack_project/templates/review.projects.yaml.erb @@ -37,6 +37,8 @@ - project: openstack-infra/reviewday upstream: git://github.com/dprince/reviewday.git description: OpenStack code review report generator +- project: openstack-infra/statusbot + description: Infrastructure status update IRC bot - project: openstack-infra/zuul - project: openstack-dev/devstack - project: openstack-dev/grenade