Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40867

Allow Terraform files to be written to a workspace subdirectory

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • terraform-plugin
    • None

      I've created a generic "build a cluster" Terraform plan and I'd like to build a generic Jenkins job as well. But I can't right now.

      Assume that developer A wants to come in and run the "build a cluster" job and create Cluster-A. Then assume developer B wants to do the same thing and create Cluster-B. Today, trying to do this with a single job will cause Cluster-A to be destroyed and Cluster-B created.

      So, my ask is to provide an option that specifies into which directory the TF state and variable files are written. If I had that, I could create a parameterized Jenkins job where one parameter was the cluster id. Then I could use that parameter as part of the directory path for the TF files. The TF files for Cluster-A would then be separate from those of Cluster-B.

            dpires David Pires
            clajoie Chad La Joie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: