From 238b2aaf6d0289b9a157bbff21afd0f24ec174f0 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 4 Nov 2017 20:25:51 +0100 Subject: [PATCH] Collect npm-shrinkwrap for javascript Collect npm-shrinkwrap.json if it exists. Change-Id: I149dc99b1e9f08403a7f5c16ebf38dd7e734d975 --- roles/fetch-javascript-output/tasks/main.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/fetch-javascript-output/tasks/main.yaml b/roles/fetch-javascript-output/tasks/main.yaml index 5adf33375..b44743107 100644 --- a/roles/fetch-javascript-output/tasks/main.yaml +++ b/roles/fetch-javascript-output/tasks/main.yaml @@ -60,3 +60,16 @@ src: "{{ zuul_work_dir }}/karma.subunit" verify_host: true when: karma_stat.stat.exists + +- name: Check again for shrinkwrap + stat: + path: "{{ zuul_work_dir }}/npm-shrinkwrap.json" + register: shrinkwrap_final + +- name: Collect shrinkwrap file + synchronize: + dest: "{{ log_path }}" + mode: pull + src: "{{ zuul_work_dir }}/npm-shrinkwrap.json" + verify_host: true + when: shrinkwrap_final.stat.exists