bugfix: Set git folder for recording repo shas
authorFatih Degirmenci <fatih.degirmenci@est.tech>
Sat, 11 Jul 2020 22:11:08 +0000 (22:11 +0000)
committerFatih Degirmenci <fatih.degirmenci@est.tech>
Sat, 11 Jul 2020 22:11:08 +0000 (22:11 +0000)
Change-Id: I38aa63be3becc39e4dc0673c90779944e8cd8820

playbooks/roles/package/tasks/record-shas.yaml

index 36501bd82e50c876a1067b658960727e93e38c46..ffe5351dd1bffd3d8a8227616308be9d374c82e6 100644 (file)
@@ -30,7 +30,7 @@
     - engine-bifrost
     - engine
   args:
-    chdir: "/tmp/autorelease/git/{{ item }}"
+    chdir: "{{ git_folder }}/{{ item }}"
   changed_when: false
 
 - name: Populate dictionary to map repos to shas
     repos_shas: "{{ repos_shas|default({}) | combine( {item.item | upper | replace('-', '_') + '_SHA': item.stdout} ) }}"
   with_items: "{{ commit_shas.results }}"
 
-- name: Log repos and shas to console
-  debug:
-    msg: "{{ item.key }}={{ item.value }}"
-  with_dict: "{{ repos_shas }}"
-
 - name: Record git SHAs to /tmp/release.properties file
   lineinfile:
     path: /tmp/release.properties