Skip to content

PR environment variables not available during build process #105

@volodymyr-mykhailyk

Description

@volodymyr-mykhailyk

Hello,

maybe it is a configuration issue, but I don't see any environment variables mentioned in description during build process.

The only item I can see is special is that:

  • we using YAML configuration plugin
  • we using custom named scm materials

Here is piece of yaml configuration:

materials:
  repo:
    scm: repo-name.pull-requests
    destination: repo
  ci-scripts:
    pipeline: ops-builds.ci-scripts
    stage: build

Here is list of environment variables set by GOCD during build process:

14:29:17.443 [go] Start to update materials.
14:29:35.390 [go] overriding environment variable 'GO_SERVER_URL' with value 'https://****:8154/go'
14:29:35.390 [go] setting environment variable 'GO_TRIGGER_USER' to value 'changes'
14:29:35.390 [go] setting environment variable 'GO_PIPELINE_NAME' to value 'repo-name.build--pull-requests'
14:29:35.390 [go] setting environment variable 'GO_PIPELINE_COUNTER' to value '4'
14:29:35.390 [go] setting environment variable 'GO_PIPELINE_LABEL' to value '8f7b322c9c'
14:29:35.390 [go] setting environment variable 'GO_STAGE_NAME' to value 'build'
14:29:35.390 [go] setting environment variable 'GO_STAGE_COUNTER' to value '1'
14:29:35.390 [go] setting environment variable 'GO_JOB_NAME' to value 'build_docker_image'
14:29:35.390 [go] setting environment variable 'GO_DEPENDENCY_LABEL_CI_SCRIPTS' to value '16'
14:29:35.390 [go] setting environment variable 'GO_DEPENDENCY_LOCATOR_CI_SCRIPTS' to value 'ops-builds.ci-scripts/16/build/1'
14:29:35.390 [go] setting environment variable 'GO_SCM_REPO_LABEL' to value '8f7b322c9c408eed89f356808e6d18450efc8446'
14:29:35.390 [go] setting environment variable 'GO_SCM_REPO_URL' to value '[email protected]:******.git'
14:29:35.390 [go] setting environment variable 'GO_SCM_REPO_PR_ID' to value '1543'

14:29:35.761 [go] Start to build repo-name.build--pull-requests/8f7b322c9c/build/1/build_docker_image on 89c6dcc038f9 [/go]

Any hints why we don't see target branch environment variables?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions