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
TerraformTaintPlugin: Support main and master branches
3
8
-[Issue #432](https://github.com/manheim/terraform-pipeline/issues/432) pass TagPlugin through `-var-file={env}-tags.tfvars`
4
9
-[Issue #417](https://github.com/manheim/terraform-pipeline/issues/417) DestroyPlugin & PassPlanFilePlugin - Terraform Destroy can't be called with a plan file
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ A reusable pipeline template to apply terraform configuration serially across mu
9
9
2.`terraform plan`
10
10
3.`terraform apply`
11
11
2. After running a terraform plan, your pipeline will pause. A human must review and confirm the plan before `terraform apply` is run. See: [ConfirmApplyPlugin](./docs/ConfirmApplyPlugin.md).
12
-
3. When running your pipeline on a branch, only the `terraform init` and `terraform plan` commands will be run across all of your environments. `terraform apply` is only made available on the master branch. See: [ConditionalApplyPlugin](./docs/ConditionalApplyPlugin.md).
12
+
3. When running your pipeline on a branch, only the `terraform init` and `terraform plan` commands will be run across all of your environments. `terraform apply` is only made available on the main branch. See: [ConditionalApplyPlugin](./docs/ConditionalApplyPlugin.md).
13
13
4. If your environments might create conflicting resources, a TF_VAR_environment variable is automatically available to your project and can be used to namespace your resources and avoid conflicts. See: [DefaultEnvironmentPlugin](./docs/DefaultEnvironmentPlugin.md).
14
14
5. Import terraform-pipeline as a Jenkinsfile library to your Jenkins instance.
@@ -95,7 +95,7 @@ The example above gives you a bare-bones pipeline, and there may be Jenkinsfile
95
95
### Default Plugins
96
96
*[BuildWithParametersPlugin](./docs/BuildWithParametersPlugin.md): use this plugin to manage the "Build with Parameters" feature of pipelines.
97
97
*[ConfirmApplyPlugin](./docs/ConfirmApplyPlugin.md): pause and review the plan, before applying any changes.
98
-
*[ConditionalApplyPlugin](./docs/ConditionalApplyPlugin.md): only allow apply on master branch.
98
+
*[ConditionalApplyPlugin](./docs/ConditionalApplyPlugin.md): only allow apply on main branch.
99
99
*[DefaultEnvironmentPlugin](./docs/DefaultEnvironmentPlugin.md): automatically set `TF_VAR_environment` variable.
100
100
*[TerraformPlugin](./docs/TerraformPlugin.md): apply version-specific terraform behavior based on the version of terraform in use.
101
101
### Credentials and Configuration Management
@@ -208,7 +208,7 @@ By default, the pipeline jobs are not assigned to a particular Jenkins slave lab
208
208
Jenkinsfile.defaultNodeName = 'myNode'
209
209
```
210
210
211
-
Alternatively, you can assign all of your pipelines to a particular Jenkins slave label without using code, by setting a `DEFAULT_NODE_NAME` environment variable on your Jenkins master.
211
+
Alternatively, you can assign all of your pipelines to a particular Jenkins agent label without using code, by setting a `DEFAULT_NODE_NAME` environment variable on your Jenkins server.
212
212
213
213
# Pipeline Stages
214
214
@@ -403,4 +403,4 @@ If no `.terraform-version` file is found, and no explicit version is provided, t
403
403
2. It should be possible to add behaviors through Plugins and Decorations - this makes behavior addable/removable/extenable.
404
404
3. Think of plugins as interchangeable Lego pieces - you can swap one piece out for another, without fundamentally altering what it is to be a Pipeline.
405
405
4. There should only be one way to Production, and that way should be crystal clear.
406
-
1. The master branch (or its equivalent) is the one-and-only way to Production.
406
+
1. The main branch (or its equivalent) is the one-and-only way to Production.
Copy file name to clipboardExpand all lines: docs/ConditionalApplyPlugin.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,12 @@
2
2
3
3
This plugin is enabled by default.
4
4
5
-
By default, changes are applied through one and only one branch - master. The ConditionalApplyPlugin enforces this by making the "Confirm" and "Apply" steps of a TerraformEnvironmentStage visible only on the master branch. You can continue to use branches and PullRequests, however, branches and PullRequests will only run the Plan step for each environment, and skip over the Confirm/Apply steps.
5
+
By default, changes are applied through one and only one branch - main. The
6
+
ConditionalApplyPlugin enforces this by making the "Confirm" and "Apply" steps
7
+
of a TerraformEnvironmentStage visible only on the main or master branch. You can
8
+
continue to use branches and PullRequests, however, branches and PullRequests
9
+
will only run the Plan step for each environment, and skip over the
10
+
Confirm/Apply steps.
6
11
7
12
This behavior can be changed by using `ConditionalApplyPlugin.withApplyOnBranch()`. This method accepts one or more branches. "Confirm" and "Apply" steps of TerraformEnvironmentStage will then be visible for each of the specified branches. Any branch or PullRequest not in that list will only run the Plan step for each environment, and skip over the Confirm/Apply steps.
Copy file name to clipboardExpand all lines: docs/CredentialsPlugin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Enable this plugin to inject credentials into your stages using the [Jenkins Credentials Plugin](https://wiki.jenkins.io/display/JENKINS/Credentials+Plugin).
4
4
5
5
One-time setup:
6
-
* Install the [Jenkins Credentials Binding Plugin](https://www.jenkins.io/doc/pipeline/steps/credentials-binding/) on your Jenkins master.
6
+
* Install the [Jenkins Credentials Binding Plugin](https://www.jenkins.io/doc/pipeline/steps/credentials-binding/) on your Jenkins server.
7
7
* Define a credential that you want to inject.
8
8
9
9
Add any number of credentials bindings that you want to wrap your stages, with `withBinding`. Each call to this method will cumulatively add more credentials. See the [Credentials Binding Plugin homepage](https://www.jenkins.io/doc/pipeline/steps/credentials-binding/) for the list of supported bindings.
Copy file name to clipboardExpand all lines: docs/ParameterStoreBuildWrapperPlugin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Enable this plugin to inject variables using the [AWS Parameter Store Build Wrapper Plugin](https://plugins.jenkins.io/aws-parameter-store)
4
4
5
5
One-time step:
6
-
* Install the AWS Parameter Store Build Wrapper Plugin on your Jenkins master
6
+
* Install the AWS Parameter Store Build Wrapper Plugin on your Jenkins server
7
7
* For cross-account deployments, create an AWS Credential with the id '<ENVIRONMENT>_PARAMETER_STORE_ACCESS' that provides access to ParameterStore for that account.
8
8
9
9
By default, parameters will be retrieved from the ParameterStore path constructed from your project's Git Organization, Git Repository name, and environment. Eg: If my terraform project were at https://github.com/Manheim/fake-terraform-project, then my 'qa' environment would receive parameters from the ParameterStore path '/Manheim/fake-terraform-project/qa'.
0 commit comments