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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

maven-release-plugin can't push to repo in pipelines


I'm trying to use this in my pipelines as a step

- mvn --batch-mode -DdryRun=true -DscmDevelopmentCommitComment="[maven-release-plugin] prepare next development version [skip ci]" -DpreparationGoals=clean release:clean release:prepare
- mvn --batch-mode -DscmDevelopmentCommitComment="[maven-release-plugin] prepare next development version [skip ci]" -DpreparationGoals=clean release:clean release:prepare

I have in my pom.xml for my developerConnection 


But on the release:prepare stage I'm getting 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project atom: Unable to commit files[ERROR] Provider message:[ERROR] The git-push command failed.[ERROR] Command output:[ERROR] fatal: could not read Username for '': No such device or address[ERROR] -> [Help 1]

My repo is public so you can see the errors in the output here!/results/360

Based on the documentation in I shouldn't need anything specific configured.

You can see the repo and the bitbucket_pipelines.yml file here

Any ideas?

1 answer

@Jim Richards yes, you should pay attention to push to master permissions and USer and Group Access permission in admin repository settings.

And adapt this to your scm block. In logs I see it is trying to push via http, not via git, ssh protocol. Check these permissions for pushing to master or general permission and configure ssh to use







For ssh push back approach you may configure repository ssh keys and use it safely in pipeline (private key will be just )
To get to know more about that , read the doc for using ssh in bitbucket pipelines:
so you can safely use ssh key in the pipeline , using repository ssh keys of that user that is allowed to push to master. Ensure that public key generated need to be added to authorized keys of this user in Account Settings. Also be aware, that private key is not exposed and can be used only in the pipeline.
Regards, Galyna

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

65 views 4 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you