Welcome to mirror list, hosted at ThFree Co, Russian Federation.

16-6-file-type-variable-extension-deprecation.yml « deprecations « data - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8fc9620a888f67052b6c18c411ceeb0b27ad7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- title: "File type variable expansion fixed in downstream pipelines"
  removal_milestone: "17.0"  # (required) The milestone when this feature is planned to be removed
  announcement_milestone: "16.6"  # (required) The milestone when this feature was first announced as deprecated.
  breaking_change: true  # (required) Change to false if this is not a breaking change.
  reporter: jocelynjane  # (required) GitLab username of the person reporting the change
  stage: Verify  # (required) String value of the stage that the feature was created in. e.g., Growth
  issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/419445  # (required) Link to the deprecation issue in GitLab
  body: |  # (required) Do not modify this line, instead modify the lines below.
    Previously, if you tried to reference a [file type CI/CD variable](https://docs.gitlab.com/ee/ci/variables/#use-file-type-cicd-variables) in another CI/CD variable, the CI/CD variable would expand to contain the contents of the file. This behavior was incorrect because it did not comply with typical shell variable expansion rules. The CI/CD variable reference should expand to only contain the path to the file, not the contents of the file itself. This was [fixed for most use cases in GitLab 15.7](https://gitlab.com/gitlab-org/gitlab/-/issues/29407). Unfortunately, passing CI/CD variables to downstream pipelines was an edge case not yet fixed, but which will now be fixed in GitLab 17.0.

    With this change, a variable configured in the `.gitlab-ci.yml` file can reference a file variable and be passed to a downstream pipeline, and the file variable will be passed to the downstream pipeline as well. The downstream pipeline will expand the variable reference to the file path, not the file contents.

    This breaking change could disrupt user workflows that depend on expanding a file variable in a downstream pipeline.