Terraform report name in merge request
Summary
One of our customers is using the feature Terraform integration in Merge Requests
However, when using a variable as an artifact name:
environment:
name: test
artifacts:
name: $CI_ENVIRONMENT_SLUG
paths:
- ./plan.json
reports:
terraform: plan.json
The variable is not expanded in the MR page:
As you can see it lists it as $CI_ENVIRONMENT_SLUG
instead of expanding that variable.
Steps to reproduce
I created an example here:
Example Project
https://gitlab.com/jdasmarinas/terraform-test
What is the current bug behavior?
Shows the variable as the report name.
What is the expected correct behavior?
Should expand the variable instead.
Relevant logs and/or screenshots
See the screenshot above
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)