powertrain-build/playbooks/powertrain-build-blackduck-pre.yaml
Anton Lutteman b75de51122 Adding dependency scan
Change-Id: I768004272e3f700af6ab6e42e95a5418dc977989
2024-08-26 15:04:43 +02:00

28 lines
654 B
YAML

---
- name: Blackduck pre
hosts: all
roles:
- role: ensure-java
- role: ensure-pip
tasks:
- name: Fetch detect
ansible.builtin.get_url:
url: https://detect.synopsys.com/detect8.sh
dest: "{{ zuul.project.src_dir }}/detect8.sh"
mode: "0755"
- name: Install requirements from requirements files
ansible.builtin.pip:
requirements: "{{ item }}"
args:
chdir: "{{ zuul.project.src_dir }}"
loop:
- requirements.txt
- test-requirements.txt
- name: Install unzip
ansible.builtin.package:
name: unzip
state: present
become: true