FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CI Templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Continuous Delivery
CI Templates
Commits
2c2e0363
Commit
2c2e0363
authored
3 months ago
by
Roy Harrington
Browse files
Options
Downloads
Plain Diff
Merge branch '95-fix-tf-plan-job' into 'master'
fix: .terraform-plan job Closes
#95
See merge request
!111
parents
7ce4cade
5179de24
No related branches found
Branches containing commit
Tags
v6.4.1
Tags containing commit
1 merge request
!111
fix: .terraform-plan job
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
terraform-pipeline-base.yml
+1
-1
1 addition, 1 deletion
terraform-pipeline-base.yml
with
8 additions
and
1 deletion
CHANGELOG.md
+
7
−
0
View file @
2c2e0363
...
...
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [6.4.1] - 2024-12-10
### Fixed
-
Fixed an "integer expression expected" issue in a
`.terraform-plan`
job in the
`terraform-pipeline-base.yml`
file by removing subshell
`( ... )`
from a command.
## [6.4.0] - 2024-12-05
### Changed
...
...
This diff is collapsed.
Click to expand it.
terraform-pipeline-base.yml
+
1
−
1
View file @
2c2e0363
...
...
@@ -69,7 +69,7 @@ variables:
#
# By allowing this job to exit with exit code 2 we are able to show an amber warning icon in the GitLab UI. This
# makes it easy to spot when an environment requires changes following a plan job.
(
terraform plan $TF_PLAN_ARGS -out=${TF_DATA_DIR}/${CI_COMMIT_REF_SLUG}-${DEPLOYMENT_ENVIRONMENT}.tfplan -detailed-exitcode && exit_code=$?
)
|| exit_code=$?
terraform plan $TF_PLAN_ARGS -out=${TF_DATA_DIR}/${CI_COMMIT_REF_SLUG}-${DEPLOYMENT_ENVIRONMENT}.tfplan -detailed-exitcode && exit_code=$? || exit_code=$?
if [ "$exit_code" -eq 1 ]; then exit 1; fi
if [ -f "${TF_DATA_DIR}/${CI_COMMIT_REF_SLUG}-${DEPLOYMENT_ENVIRONMENT}.tfplan" ]; then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment