Skip to content

Terraform report: artifact name:$CI_JOB_NAME doesn't work

Summary

Given a terraform plan job with the following artifact name configuration, the terraform plan widget should report, "The Terraform report Stack Plane was generated in your pipelines."

Instead, it reports: "The Terraform report $CI_JOB_NAME was generated in your pipelines."

Stack Plan:
  artifacts:
    name: "${CI_JOB_NAME}"

Steps to reproduce

Using https://gitlab.com/gitlab-org/gitlab/blob/caeaea463bc4cde227a470f2b5514f9b5a7910d8/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml#L22 add name: "${CI_JOB_NAME}" on line 43.

What is the expected correct behavior?

The job name and all supported predefined variables as per https://docs.gitlab.com/ce/ci/yaml/#artifactsname

Thanks for the hard work and great feature on #219255 (closed) and !34392 (merged)

Edited by Jeff McCune