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>