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

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

zoltan_zvara 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

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 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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events