From 609ea84d1b20e10612a9163f96ed73c92deef7a9 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Thu, 18 Oct 2018 21:14:43 -0700 Subject: [PATCH] Mark build task changed only when wheels are built Only set the 'Build wheels for the packages to be installed into the venv' task to changed when new wheels are built or saved. Change-Id: Iec1818c54f4a40791cbb69d9cc726960c905c069 --- tasks/python_venv_wheel_build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/python_venv_wheel_build.yml b/tasks/python_venv_wheel_build.yml index e06c3d5..80caeae 100644 --- a/tasks/python_venv_wheel_build.yml +++ b/tasks/python_venv_wheel_build.yml @@ -85,5 +85,7 @@ {{ (venv_default_pip_packages + venv_pip_packages) | join(' ') }} register: _build_python_wheels until: _build_python_wheels is success + changed_when: (_build_python_wheels.stdout.find('Successfully built') != -1) or + (_build_python_wheels.stdout | regex_search('Saved \S*\.whl')) retries: 5 delay: 2