Passing who triggered build to pipelines script

ddr_coinify
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2018

Hi

In our current setup at work we have a deployment module that is triggered as a script in our bitbucket-pipelines setup. It has a slack integration where we want to extend it to also post who triggered the build.
When viewing pipelines on bitbucket.com it is possible to see who triggered each individual built, however I don't  know how to access this information from within the bitbucket-pipelines.yml file (if even possible). Does anyone know if it is possible to get this information and pass it to a script? either as an env variable or direct argument or something like that.

Our current setup looks something like this:


- step:
  name: Deploy to sandbox
  deployment: staging
  script:
    - deploy-service -p production -s <service> -i <build_image>

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events