The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Can Git user be changed when pushing back to the repository from Pipelines?

zoltan_zvara
Contributor
December 31, 2022

See the below image that shows that the `bitbucket-pipelines` user is the committer whenever the pipeline is bumping the version automatically after a successful build.

image.png

Can the Author be changed in any way?

I tried to set:

git config user.name
git config user.email

...before pushing, but it did not help.

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 3, 2023

Hi @zoltan_zvara ,

This is possible using the commands you mentioned

- git config user.name 'John Smith'
- git config user.email myemail@domain.com

Please note that the commands need to be executed before the git commit command. The email gets added to a commit's metadata when you do a git commit and not when you push.

Are you using the git config commands after you do a git commit in your build? If so, could you try moving them before the git commit, and let me know if it works?

Kind regards,
Theodora

zoltan_zvara
Contributor
January 4, 2023

You are right; that was the issue; sorry for not being thorough in my investigation!

Thank you for your kind help!

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2023

Hi @zoltan_zvara, you are very welcome and no worries at all, I'm glad I could help!

Please feel free to reach out if you ever need anything else!

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events