i am using Maven + gitflow to generate releases of my application, but when i try start release i got one error.
Command to start release:
mvn jgitflow:release-start
Error:
Caused by: org.eclipse.jgit.errors.UnsupportedCredentialItem:
ssh://[email protected]:10022: The authenticity of host '127.0.0.1' can't be established.
RSA key fingerprint is 7e:03:51:7b:55:a5:cd:de:4c:7a:0d:1b:43:75:08:68.
Are you sure you want to continue connecting?
at com.atlassian.maven.plugins.jgitflow.util.ConsoleCredentialsProvider.get(ConsoleCredentialsProvider.java:71)
If i change git url for using HTTP protocol, the build finish with success, the error appears only with ssh protocol.
ps: i already clone my repository through public/private key.
Gitflow release branch process overview The release branch represents a complete feature set. The only commits on the release branch are for bug fixes and important chores. The Gitflow release branch is created off the development branch. Gitflow release is merged into master and also back into development.
The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
Gitflow is a legacy Git workflow that was originally a disruptive and novel strategy for managing Git branches. Gitflow has fallen in popularity in favor of trunk-based workflows, which are now considered best practices for modern continuous software development and DevOps practices.
Found the answer, disable ssh check in Ubuntu
In your ~/.ssh/config (if this file doesn't exist, just create it):
Host *
StrictHostKeyChecking no
This will turn it off for all hosts you connect to. You can replace the * with a hostname pattern if you only want it to apply to some hosts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With