Move job 'publish-training-labs-scripts' definition in tree
openstack/training-labs repo is retired and job 'publish-training-labs-scripts' used in stable branch of this repo is defined in project-config. Moving this job definition here so that we can clean it from project-config. - https://review.opendev.org/c/openstack/project-config/+/817507/4 Change-Id: Icc03e9e5cfe9822969ff2f69db7ebbfd74988195
This commit is contained in:
parent
83f1df0a0c
commit
63f4f18b06
11
.zuul.yaml
11
.zuul.yaml
@ -1,3 +1,14 @@
|
||||
- job:
|
||||
name: publish-training-labs-scripts
|
||||
parent: publish-openstack-artifacts
|
||||
description: |
|
||||
Publish training-labs tarball to tarballs.openstack.org.
|
||||
pre-run: playbooks/training-labs/pre.yaml
|
||||
run: playbooks/training-labs/run.yaml
|
||||
post-run: playbooks/training-labs/post.yaml
|
||||
allowed-projects:
|
||||
- openstack/training-labs
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
|
9
playbooks/training-labs/post.yaml
Normal file
9
playbooks/training-labs/post.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Collect generate-labs generated files
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.work_root }}/artifacts"
|
||||
mode: pull
|
||||
src: "src/{{ zuul.project.canonical_name }}/build/"
|
||||
verify_host: true
|
6
playbooks/training-labs/pre.yaml
Normal file
6
playbooks/training-labs/pre.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: bindep
|
||||
bindep_dir: "{{ zuul_work_dir }}"
|
||||
- test-setup
|
||||
- revoke-sudo
|
6
playbooks/training-labs/run.yaml
Normal file
6
playbooks/training-labs/run.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Run tools/generate-labs
|
||||
command: bash -xe tools/generate-labs '{{ zuul.branch }}'
|
||||
args:
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
Loading…
Reference in New Issue
Block a user