Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Release with maven + gitflow

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.

like image 812
LeoCBS Avatar asked Mar 03 '15 16:03

LeoCBS


People also ask

What does Gitflow release do?

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.

What is Gitflow Maven plugin?

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.

What is Gitflow?

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.


1 Answers

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.

like image 50
LeoCBS Avatar answered Sep 30 '22 10:09

LeoCBS