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
scm:git:http://bitbucket.org/tetsuwantech/atom-project.git
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 'https://bitbucket.org': No such device or address
[ERROR] -> [Help 1]
My repo is public so you can see the errors in the output here
https://bitbucket.org/tetsuwantech/atom-project/addon/pipelines/home#!/results/360
Based on the documentation in https://support.atlassian.com/bitbucket-cloud/docs/push-back-to-your-repository/ I shouldn't need anything specific configured.
You can see the repo and the bitbucket_pipelines.yml file here
https://bitbucket.org/tetsuwantech/atom-project/src/master/
Any ideas?
@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
<scm>
<connection>scm:git:ssh://git@bitbucket.org/tetsuwantech/atom-project.git</connection>
<developerConnection>scm:git:http://bitbucket.org/tetsuwantech/atom-project.git</developerConnection>
<url>https://bitbucket.org/tetsuwantech/atom-project</url>
<tag>HEAD</tag>
</scm>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.