Skip to content

BUILD_CREATED_BY #8804

Answered by amayer5125
nickhyoti asked this question in Q&A
Discussion options

You must be logged in to vote

If you run this pipeline you will see that one of the put tasks has the BUILD_CREATED_BY environment variable set, and the other does not. I imagine this would be useful if you created a custom resource and wanted to use the user that triggered the pipeline somehow.

resources:
- name: exposed
  type: mock
  expose_build_created_by: true
- name: not-exposed
  type: mock

jobs:
- name: output-env-vars
  plan:
  - put: exposed
    params:
      version: mock
      print_env: true
    no_get: true
  - put: not-exposed
    params:
      version: mock
      print_env: true
    no_get: true

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by taylorsilva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants