Commit f1b350db authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'fix-commit-sha-variable' into 'master'

Rename CI_COMMIT_REF to CI_COMMIT_SHA

See merge request gitlab-org/gitlab-runner!911
parents 602aa476 2e85691f
Pipeline #22777694 failed with stages
in 33 minutes and 35 seconds
......@@ -157,7 +157,7 @@ func (c *GitLabCiYamlParser) buildDefaultVariables(job *common.JobResponse) (def
{Key: "CI_JOB_STAGE", Value: job.JobInfo.Stage, Public: true, Internal: true, File: false},
{Key: "CI_JOB_TOKEN", Value: job.Token, Public: true, Internal: true, File: false},
{Key: "CI_REPOSITORY_URL", Value: job.GitInfo.RepoURL, Public: true, Internal: true, File: false},
{Key: "CI_COMMIT_REF", Value: job.GitInfo.Sha, Public: true, Internal: true, File: false},
{Key: "CI_COMMIT_SHA", Value: job.GitInfo.Sha, Public: true, Internal: true, File: false},
{Key: "CI_COMMIT_BEFORE_SHA", Value: job.GitInfo.BeforeSha, Public: true, Internal: true, File: false},
{Key: "CI_COMMIT_REF_NAME", Value: job.GitInfo.Ref, Public: true, Internal: true, File: false},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment