You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[We have provided a handful of examples in our GitHub repository to help you get a jump start with our Delphix Provider.](https://github.com/delphix-integrations/terraform-provider-delphix/tree/main/examples) These examples range from Terraform resource templates, quick Terraform examples, and full Jenkins pipelines. We update this repository based on our implementation experience, so be sure to check back for updates!
5
+
6
+
If you have a suggested template, request, or modification, please submit it in our [GitHub Issues section.](https://github.com/delphix-integrations/terraform-provider-delphix)
The Jenkinsfile presents a simple CI/CD scenario where it provisions a VDB, runs an automated test (like Selenium or JUnit) against that application & dataset, and then destroys the VDB. On testing failure, which will happen every time, a bookmark is created. This Jenksinfile leverages the DCT Terrafrom Provider and an API Curl command to show the full breadth of possibilites. All other steps are mocked out.
3
+
4
+
### Simple Getting Stated
5
+
1) Create a Jenkinsfile Pipeline Job
6
+
2) Insert or reference the associated `Jenkinsfile` file.
7
+
- Note: This Jenkinsfile also references the Terraform files in the `../simple-provision` folder. Feel free to fork, update, and modify those.
8
+
3) Update the following values:
9
+
- DCT_HOSTNAME - Example: `123.0.0.0`
10
+
- DCT_API_KEY - Example: `2.abc...`
11
+
-[Manage this value through the Jenkins' Credentials plugin](https://docs.cloudbees.com/docs/cloudbees-ci/latest/cloud-secure-guide/injecting-secrets)
12
+
- In a pinch, update it directly.
13
+
- SOURCE_VDB - Example: `Oracle_QA`
14
+
4) Run Jenkins Job
15
+
16
+
Note: I suggest you reduce the sleep timers in early testing scenarios .
17
+
18
+
19
+
### Known Issues
20
+
On VDB destroy, the underlying Bookmark's snapshot will be deleted and the Bookmark will become "dangling".
21
+
Instead, I recommend using an "Enable/Disable" command instead of "Provision/Destroy" or skip the destroy VDB on failure.
0 commit comments