Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Use Team members Pipeline variables on a repository owned by a team

Dave Hahn
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!
January 9, 2019

We have a repo owned by a team.  I can set pipeline variable on the Team and everything works fine. What I would like to do is have a different variable ( username ) for each member, so I was hoping to use the pipe line variable on the members account and not the team account, and depending on who committed the change, use a different variable for the pipeline.  This does not seem to work for me.  Is this possible or if the repository is owner by a team account ONLY the pipeline variable for the Team account and the repository are available.

 

Thanks in advance

1 answer

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 13, 2019

Hi Dave,

Account variables always come from the account that owns the repository, so if the repository is owned by a team then only the variables defined for that team are available.

As an alternative you could try getting user information using git commands inside your build script. Eg. to get the email address of the author of the commit currently being built:

git --no-pager show -s --format='%ae' 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Bitbucket Events