Initial support for zuulv3
Now that zuulv3 is live, we can start having in repo jobs. Change-Id: I0463d440abac26b4592fce0e26960be33c0a4efc Depends-On: I7db3518f6dbd9c9315ebb5d4c40c6e18764b4e94 Depends-On: I3bff01ebac17c40988df60e7e4dd6e7fdc88a896 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
e19641c9f2
commit
22befecd1f
41
.zuul.yaml
Normal file
41
.zuul.yaml
Normal file
@ -0,0 +1,41 @@
|
||||
- job:
|
||||
name: ansible-role-nodepool
|
||||
run: tests/test
|
||||
required-projects:
|
||||
- name: openstack-infra/nodepool
|
||||
override-branch: feature/zuulv3
|
||||
roles:
|
||||
- zuul: openstack/ansible-role-nodepool
|
||||
|
||||
- job:
|
||||
name: ansible-role-nodepool-centos-7
|
||||
parent: ansible-role-nodepool
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: ansible-role-nodepool-fedora-26
|
||||
parent: ansible-role-nodepool
|
||||
nodeset: fedora-26
|
||||
|
||||
- job:
|
||||
name: ansible-role-nodepool-ubuntu-xenial
|
||||
parent: ansible-role-nodepool
|
||||
nodeset: ubuntu-xenial
|
||||
|
||||
- project:
|
||||
name: openstack/ansible-role-nodepool
|
||||
templates:
|
||||
- windmill-jobs-fedora-26
|
||||
- windmill-jobs-xenial
|
||||
check:
|
||||
jobs:
|
||||
- ansible-role-nodepool-centos-7
|
||||
- ansible-role-nodepool-fedora-26
|
||||
- ansible-role-nodepool-ubuntu-xenial
|
||||
- tox-linters
|
||||
gate:
|
||||
jobs:
|
||||
- ansible-role-nodepool-centos-7
|
||||
- ansible-role-nodepool-fedora-26
|
||||
- ansible-role-nodepool-ubuntu-xenial
|
||||
- tox-linters
|
@ -1,2 +0,0 @@
|
||||
[defaults]
|
||||
roles_path = ../..
|
@ -1,2 +1 @@
|
||||
[all]
|
||||
localhost
|
||||
|
@ -12,16 +12,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- hosts: localhost
|
||||
- hosts: all
|
||||
vars:
|
||||
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
|
||||
pre_tasks:
|
||||
# Make sure OS does not have a stale package cache.
|
||||
- name: Update apt cache.
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: ansible_os_family == 'Debian'
|
||||
nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool"
|
||||
nodepool_git_update: false
|
||||
rolename: ansible-role-nodepool
|
||||
|
||||
roles:
|
||||
- "{{ rolename }}"
|
||||
@ -142,7 +137,7 @@
|
||||
|
||||
- name: Register nodepool_git_dest_stat.
|
||||
stat:
|
||||
path: /opt/ansible-role-nodepool/git/openstack-infra/nodepool
|
||||
path: /home/zuul/src/git.openstack.org/openstack-infra/nodepool
|
||||
register: nodepool_git_dest_stat
|
||||
|
||||
- name: Assert nodepool_git_dest tests.
|
||||
|
Loading…
Reference in New Issue
Block a user