requirements/playbooks/requirements-check.yaml
Eyal 1c270c8dd5 Requirements-check fails
openstack_requirements is installed in python2
project-requirements-change.py is run in python3

see:
https://openstack.fortnebula.com:13808/v1/AUTH_e8fd161dc34c421a979a9e6421f823e9/zuul_opendev_logs_91b/694233/1/check/requirements-check/91b72b0/job-output.txt

Change-Id: If5de7301d998bc0ec5034afd853426ae393d1064
2019-11-14 12:58:33 +02:00

12 lines
639 B
YAML

- hosts: all
tasks:
- name: Install openstack_requirements
command: "pip3 install --user {{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}"
- name: Run requirements check script
# Use command module here instead of script since Zuul gets output
# with command into job-output.txt file.
# Command expects the file to be at the remote system - the system
# running the tests. Ask zuul variables for the path.
command: "{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/playbooks/files/project-requirements-change.py {{ zuul.project.src_dir }} {{ zuul.branch }}"