Move wheel-build scripts out of jenkins/scripts

We only need the three wheel-X scripts from jenkins/scripts and need
them only for the playbook and its roles. Move the scripts in the
roles directory and copy them only if needed - using the scripts module.

Remove copying of complete jenkins/script for this playbook using the
role legacy-copy-project-config-scripts, it's not needed anymore.

Change-Id: I2e481fcf7ca148aac8a36ae99d8598ba26078a25
This commit is contained in:
Andreas Jaeger 2018-02-07 21:34:24 +01:00
parent a62a98dadb
commit 3a806df6c6
6 changed files with 3 additions and 10 deletions

View File

@ -2,7 +2,6 @@
roles:
- bindep
- legacy-install-afs-with-puppet
- legacy-copy-project-config-scripts
pre_tasks:
# NOTE(pabelanger): Needed by puppet-openafs package.

View File

@ -11,10 +11,4 @@
become: yes
- name: Build the wheel mirror
shell:
cmd: ./scripts/wheel-build.sh {{ wheel_dir }} {{ wheel_python }}
executable: /bin/bash
# ANSIBLE0013 complains about shell. TODO(jaegerandi): Use command instead,
# for now we just silence the warning.
tags:
- skip_ansible_lint
script: wheel-build.sh {{ wheel_dir }} {{ wheel_python }}

View File

@ -1,5 +1,5 @@
- name: Copy the wheels to AFS
command: bash -x scripts/wheel-copy.sh {{ wheel_dir }} {{ afs_dir }}
script: wheel-copy.sh {{ wheel_dir }} {{ afs_dir }}
- name: Rebuild mirror index
command: bash -x scripts/wheel-index.sh {{ afs_dir }}
script: wheel-index.sh {{ afs_dir }}