How do I get the maven release plugin to work with bitbucket pipelines?
Our pipeline is utilizing BITBUCKET_GIT_HTTP_ORIGIN for the configuration of the release with the following steps:
mvn -B release:prepare
mvn -B release:perform
mvn release:prepare works correctly and updates versions and commits it back to origin. However, the release:perform step fails with the following error:
<span>[ERROR] fatal: could not read Username for '<a href="https://bitbucket.org/" target="_blank" rel="noopener noreferrer">https://bitbucket.org</a>': No such device or address</span><span>[ERROR] Cloning into '/opt/atlassian/pipelines/agent/build/target/checkout'...<br></span>
The clone command it is trying to run:
<span>[INFO] Executing: /bin/sh -c cd /opt/atlassian/pipelines/agent/build/target && git clone --branch v1.0.8 <a href="http://bitbucket.org/onix-networking/onix-bom" target="_blank" rel="noopener noreferrer"><</a>private-project-url-removed> /opt/atlassian/pipelines/agent/build/target/checkout</span>
The url that it is using is the same from the other bitbucket commands that were executed from the release:prepare step.