Speculative fix for ENOENT error in CWS canary upload
Bug: twpowertools:20
Change-Id: I7ba691b18b8562eff6b3fa6f87c141ffe03e4404
diff --git a/roles/cws-publish/tasks/main.yaml b/roles/cws-publish/tasks/main.yaml
index 66c9ae1..1c79986 100644
--- a/roles/cws-publish/tasks/main.yaml
+++ b/roles/cws-publish/tasks/main.yaml
@@ -32,10 +32,10 @@
ansible.builtin.shell:
cmd: >
chrome-webstore-upload upload --auto-publish --extension-id {{ extension_id }}
- --source {{ zuul.project.src_dir|quote }}/out/{{ zip_file.stdout|quote }}
- --client-id {{ credentials.clientId|quote }} --refresh-token {{ credentials.refreshToken|quote }}
+ --source {{ zip_file.stdout|quote }} --client-id {{ credentials.clientId|quote }}
+ --refresh-token {{ credentials.refreshToken|quote }}
2>cws-log.txt
- chdir: "{{ zuul.project.src_dir }}"
+ chdir: "{{ zuul.project.src_dir }}/out"
no_log: True
register: uploadcmd
failed_when:
diff --git a/roles/fetch-cws-log/tasks/main.yaml b/roles/fetch-cws-log/tasks/main.yaml
index faeb65b..b61abeb 100644
--- a/roles/fetch-cws-log/tasks/main.yaml
+++ b/roles/fetch-cws-log/tasks/main.yaml
@@ -1,14 +1,14 @@
- name: Is there a cws-log.txt
register: stat_log
stat:
- path: "{{ zuul.project.src_dir }}/cws-log.txt"
+ path: "{{ zuul.project.src_dir }}/out/cws-log.txt"
- name: Store on executor
when: stat_log.stat.exists
synchronize:
mode: pull
- src: "{{ zuul.project.src_dir }}/cws-log.txt"
- dest: "{{ zuul.executor.log_root }}/cws-log.txt"
+ src: "{{ zuul.project.src_dir }}/out/cws-log.txt"
+ dest: "{{ zuul.executor.log_root }}/out/cws-log.txt"
verify_host: true
owner: no
group: no