BUILD_CREATED_BY #8804
BUILD_CREATED_BY
#8804
-
Hello, I have seen that this has been added as an option but does anyone have an actual example of how to use it? |
Beta Was this translation helpful? Give feedback.
Answered by
amayer5125
Feb 15, 2024
Replies: 1 comment
-
If you run this pipeline you will see that one of the 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
taylorsilva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you run this pipeline you will see that one of the
put
tasks has theBUILD_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.