Browse Source

Allowing for build artifacts to persist.

Kenny Woodson 6 years ago
parent
commit
8ac981ba11
1 changed files with 12 additions and 0 deletions
  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 }}"