Skip to content

Fix Gradle Job-Token example (add System.getenv)

Oleksandr Yefremov requested to merge oleksandr.yefremov/gitlab:patch-209 into master

What does this MR do?

Fix small issue in the example of using Job-Token in Gradle:

credentials(HttpHeaderCredentials) {
    name = 'Job-Token'
    // before
    value = '${CI_JOB_TOKEN}' // variable from gradle context, does not exist
    // after
    value = System.getenv()['CI_JOB_TOKEN'] // variable from environment which is what required here
}

Conformity

Merge request reports

Loading