diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-01-31 19:00:19 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-01-31 19:00:19 +0100 |
commit | 9f5516e44887297738b022d68e3f384fca9db248 (patch) | |
tree | f9ce6a0badebb593bba82fb96ef0d64ca8c3ab6b | |
parent | fix generic.yml calling scripts (diff) |
openwrt: always save build log
-rw-r--r-- | roles/openwrt/image/tasks/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openwrt/image/tasks/main.yml b/roles/openwrt/image/tasks/main.yml index df3592f9..17a31ba1 100644 --- a/roles/openwrt/image/tasks/main.yml +++ b/roles/openwrt/image/tasks/main.yml @@ -25,6 +25,7 @@ FILES="{{ openwrt_imgbuilder_files }}" PACKAGES="{{ openwrt_packages }}" {% if openwrt_extra_name is defined %} EXTRA_IMAGE_NAME="{{ openwrt_extra_name }}" {% endif %} + register: openwrt_build - name: Copy newly built OpenWrt image loop: "{{ openwrt_output_image_suffixes }}" @@ -38,6 +39,12 @@ openwrt_output_images: "{{ '[\"' + openwrt_output_dir + '/' + openwrt_output_image_name_base + '-' + (openwrt_output_image_suffixes | join('\", \"' + openwrt_output_dir + '/' + openwrt_output_image_name_base + '-')) + '\"]' }}" always: + - name: save build-log to output directory + when: openwrt_build is defined + copy: + content: "{{ openwrt_build.stdout }}\n" + dest: "{{ openwrt_output_dir }}/build.log" + - name: Delete the temporary build directory file: path: "{{ openwrt_imgbuilder_dir }}" |