瀏覽代碼

Allowing for build artifacts to persist.

Kenny Woodson 6 年之前
父節點
當前提交
8ac981ba11
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      playbooks/azure/openshift-cluster/launch.yml

+ 12 - 0
playbooks/azure/openshift-cluster/launch.yml

@@ -97,6 +97,18 @@
   - debug:
       msg: "{{ deploy.stderr }}"
 
+  # This code attempts to persist the data to /var/tmp which is bind
+  # mounted into the calling container.  This enables the CI to reuse
+  # the cluster created in the previous steps to perform the e2e tests
+  - name: persist the parameters file
+    copy:
+      src: "{{ item.src }}"
+      dest: "{{ item.dest }}"
+    when: openshift_ci_persist_artifacts | default(False)
+    with_items:
+    - src: "{{ tmp.path }}/_output/{{ openshift_azure_resource_group_name }}/apimodel.json"
+      dest: "/var/tmp/{{ openshift_azure_resource_group_name }}.json"
+
   - name: delete temporary directory
     file:
       path: "{{ tmp.path }}"