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:
Ghanshyam Mann 2021-11-19 14:12:55 -06:00
parent 83f1df0a0c
commit 63f4f18b06
4 changed files with 32 additions and 0 deletions

View File

@ -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:

View 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

View File

@ -0,0 +1,6 @@
- hosts: all
roles:
- role: bindep
bindep_dir: "{{ zuul_work_dir }}"
- test-setup
- revoke-sudo

View 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 }}'