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
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'
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.