Create tox-tarball job
While this job shouldn't be in the check pipeline, add it today so we can test things. We are still missing publishers, but that is expected since we are missing secrets from zuulv3-dev.o.o. Change-Id: I12a8a0e156cba1c7e5631da5f05478bb0b8ce957 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
@@ -38,6 +38,12 @@
|
||||
parent: tox
|
||||
run: tox/py27
|
||||
|
||||
- job:
|
||||
name: tox-tarball
|
||||
parent: tox
|
||||
run: tox/tarball
|
||||
post-run: tox/tarball-post
|
||||
|
||||
- project:
|
||||
name: openstack-infra/zuul
|
||||
check:
|
||||
@@ -46,3 +52,4 @@
|
||||
- tox-cover
|
||||
- tox-linters
|
||||
- tox-py27
|
||||
- tox-tarball
|
||||
|
||||
2
playbooks/roles/run-tarball/defaults/main.yaml
Normal file
2
playbooks/roles/run-tarball/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
run_tarball_envlist: venv
|
||||
4
playbooks/roles/run-tarball/tasks/main.yaml
Normal file
4
playbooks/roles/run-tarball/tasks/main.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: Execute run-tarball.sh.
|
||||
shell: "/usr/local/jenkins/slave_scripts/run-tarball.sh {{ run_tarball_envlist }}"
|
||||
args:
|
||||
chdir: "{{ zuul_workspace_root }}/src/{{ zuul.project }}"
|
||||
2
playbooks/roles/run-wheel/defaults/main.yaml
Normal file
2
playbooks/roles/run-wheel/defaults/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
run_wheel_envlist: venv
|
||||
4
playbooks/roles/run-wheel/tasks/main.yaml
Normal file
4
playbooks/roles/run-wheel/tasks/main.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: Execute run-wheel.sh.
|
||||
shell: "/usr/local/jenkins/slave_scripts/run-wheel.sh {{ run_wheel_envlist }}"
|
||||
args:
|
||||
chdir: "{{ zuul_workspace_root }}/src/{{ zuul.project }}"
|
||||
10
playbooks/tox/tarball-post.yaml
Normal file
10
playbooks/tox/tarball-post.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Collect tarball artifacts.
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.src_root }}/tarballs"
|
||||
mode: pull
|
||||
src: "{{ zuul_workspace_root }}/src/{{ zuul.project }}/dist/{{ item }}"
|
||||
with_items:
|
||||
- "*.tar.gz"
|
||||
- "*.whl"
|
||||
5
playbooks/tox/tarball.yaml
Normal file
5
playbooks/tox/tarball.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- revoke-sudo
|
||||
- run-tarball
|
||||
- run-wheel
|
||||
Reference in New Issue
Block a user