Запуск Jenkins на Windows-машине, как это -
java -jar jenkins.war --httpPort=8080
Сконфигурировал проект с GIT (scm not github) в качестве плагина git. Учетные данные, предоставленные с использованием SSH username with private key
. URL-адрес хранилища выглядит следующим образом - ssh://username@host.domain.com:/data/repo/xyz
Этот репозиторий git находится на компьютере с Linux, где у меня нет доступа с правами root. Нет ошибок при настройке проекта на странице Jenkins. Но сборка завершилась неудачно с приведенной ниже ошибкой:
Git checkout, клон и т. Д. Работают из командной строки на машине с Windows, на которой работает Jenkins.
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress -- ssh:///user@host.domain.com:/data/sde-repo/SOA +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: ssh: connect to host port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2174)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1866)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:78)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:547)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:760)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1815)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE
Мне кажется, что Дженкинс как-то не в состояниираспознать имя хоста, потому что имя хоста пусто в этой ошибке -
ssh: connect to host port 22: Connection refused
Это так? или я иду в неправильном направлении?