From 1978a797adc56309b1289a50fa25ec2dc046c39e Mon Sep 17 00:00:00 2001 From: Marton Kiss Date: Fri, 24 Jan 2014 14:39:25 +0100 Subject: [PATCH] Groups community portal gating tasks Add gating, unittest and distro tarball creation to groups project. Related bootstrap and gate scripts inside openstack-infra/groups: scripts/bootstrap.sh scripts/gate-build.sh Change-Id: I501c746395e1f1d3f25352f473f31d6123252865 --- .../jenkins_job_builder/config/groups.yaml | 50 +++++++++++++++++++ .../jenkins_job_builder/config/projects.yaml | 13 +++++ .../openstack_project/files/zuul/layout.yaml | 8 ++- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 modules/openstack_project/files/jenkins_job_builder/config/groups.yaml diff --git a/modules/openstack_project/files/jenkins_job_builder/config/groups.yaml b/modules/openstack_project/files/jenkins_job_builder/config/groups.yaml new file mode 100644 index 0000000000..36618b019a --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/groups.yaml @@ -0,0 +1,50 @@ +- job: + name: gate-groups-unittests + node: bare-precise + + builders: + - gerrit-git-prep + - shell: | + ./scripts/bootstrap.sh + ./scripts/gate-build.sh + publishers: + - console-log + - coverage-log + - scp: + site: 'static.openstack.org' + files: + - target: 'logs/$LOG_PATH' + source: './reports/**' + keep-hierarchy: true + copy-after-failure: true + +- job-template: + name: 'groups-release-{branch-designator}' + node: bare-precise + + builders: + - gerrit-git-prep + - shell: | + #!/bin/bash -xe + ./script/bootstrap.sh + ARCHIVE_NAME={name} + if [ "$BRANCH" != "master" ] ; then + BRANCH_PATH=`echo $ZUUL_REFNAME | tr / -` + ARCHIVE_NAME={name}-{branch-designator} + fi + drush make build-groups.make dist + tar -czf $ARCHIVE_NAME.tar.gz dist/ + mv $ARCHIVE_NAME.tar.gz dist/ + publishers: + - console-log + - coverage-log + - scp: + site: 'static.openstack.org' + files: + - target: 'logs/$LOG_PATH' + source: './reports/**' + keep-hierarchy: true + copy-after-failure: true + - tarball: + project: '{name}' + site: '{tarball-site}' \ No newline at end of file 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 543eb68b56..8770b8e088 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -2119,6 +2119,7 @@ jobs: - python-jobs + - project: name: gce-api github-org: stackforge @@ -2127,3 +2128,15 @@ jobs: - python-jobs + +- project: + name: groups + github-org: openstack-infra + node: precise + tarball-site: tarballs.openstack.org + + jobs: + - 'groups-release-{branch-designator}': + branch-designator: 'master' + - 'groups-release-{branch-designator}': + branch-designator: 'branch' diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 4def415226..2b2c902f43 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -2455,9 +2455,13 @@ projects: - name: openstack-infra/groups check: - - gate-noop + - gate-groups-unittests gate: - - gate-noop + - gate-groups-unittests + post: + - groups-release-branch + release: + - groups-release-master - name: openstack-infra/jeepyb check: