From 1f26c6c8df130eb3c02dfda8a3613b4d8cbce47f Mon Sep 17 00:00:00 2001 From: Jay Pipes Date: Mon, 23 Sep 2013 13:03:21 -0400 Subject: [PATCH] Enable gate on OpenStack Chef Repository Enables gating on berkshelf install and spiceweasel running successfully. It's a small but important gate that will catch glaring cookbook dependency and role definition errors. fixes lp 1229296 Change-Id: I86f2cd22decd4318fd4cf5fef278a2ba103797e0 --- .../jenkins_job_builder/config/chef-jobs.yaml | 18 ++++++++++++++++++ .../jenkins_job_builder/config/projects.yaml | 8 ++++++++ .../openstack_project/files/zuul/layout.yaml | 4 ++-- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml index e3df24ce34..6c4e860384 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml @@ -33,3 +33,21 @@ publishers: - console-log + +- job: + name: gate-openstack-chef-repo + node: precise + + builders: + - gerrit-git-prep + - shell: | + #!/bin/bash -xe + mkdir -p .cookbooks .bundle + ruby1.9.1 /usr/bin/bundle install --path=.bundle + # Validates cookbooks + ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks + # Validates roles + ruby1.9.1 /usr/bin/bundle exec spiceweasel infrastructure.yml --debug + + publishers: + - console-log 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 082c4cb964..c58c116e2e 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -1103,6 +1103,14 @@ - gate-{name}-puppet-syntax - puppet-module-unit +- project: + name: openstack-chef-repo + github-org: stackforge + node: precise + + jobs: + - gate-openstack-chef-repo + - project: name: cookbook-openstack-common github-org: stackforge diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 2790f90c95..c535090bb5 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -2805,9 +2805,9 @@ projects: - name: stackforge/openstack-chef-repo check: - - gate-noop + - gate-openstack-chef-repo gate: - - gate-noop + - gate-openstack-chef-repo - name: stackforge/cookbook-openstack-common check: