deployment to author's test environment

Victor Gonzalez
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!
March 2, 2018

I would like to run test deployment to commit's author environment and can't figure out how to configure it.

To simplify, repository owner is a team and each member of that team have a specific test environment, let's say, each committer owns an AWS S3 bucket like <common>-test-<username>. I'd like to configure test deployment to S3 bucket of the user that made commit before production deployment to common S3 bucket.

Environment variables are resolved from repository's owner, in that case, team's environment variables or repositories variables but not from committer's own variables.

I figure out that I could solve it by configuring different manually-triggered deployment steps per user like 'test deployment to <username>' with specific set of variables for each user like <username>_S3BUCKETNAME but this manually-triggered solution is not the prefered approach.

Is there any way to set up that environment?

Any help would be appreciate

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

Hi Victor,

Bitbucket Pipelines has no built in way to distinguish *who* triggered a pipeline.

The best suggestion I can make is to extract the Git commit author and use that to map to an S3 environment.

For example:

git show -s --format='%an'

You may be able to extract other information from Git which may be more useful for you.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events