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'
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.