Jenkins git failed to connect to repository error performing command

So what is this issue. Why is n't there anything mentioned about it in the book. I am using Max OSX exactly like the author. Can someone help? otherwise I have to say that I am totally disappoi...

@BruceAli

So what is this issue. Why is n’t there anything mentioned about it in the book. I am using Max OSX exactly like the author. Can someone help? otherwise I have to say that I am totally disappointed buying this book. It gives you problems right from the start and things do not work properly with Git.

@BruceAli

This happens when I try to configure the Jenkins job which is the first one in the book. Where I chose my repository according to the book I should enter git@github.com:j/game-of-life.git for the repository URL and I get the error.Failed to connect to repository : Error performing command: git ls-remote -h git@github.com:j/game-of-life.git HEAD … please someone help. The author has not…!!!!!!!

@wakaleo

This looks like a git configuration issue: can you clone the git repo from the cmd line?

@BruceAli

I tried the git clone command .. because I did clone it using the web page’s clone button I get the following error when I attempt to run the command from a shell window:
Alexs-Mac-Pro:~ eshgholah$ git clone git@github.com:BruceAli/game-of-life.git
fatal: destination path ‘game-of-life’ already exists and is not an empty directory.

@BruceAli

Is there anyway I could purge this clone and retry this command?

@wakaleo

@BruceAli

Alexs-Mac-Pro:.git eshgholah$ git clone git@github.com:BruceAli/game-of-life.git
Cloning into ‘game-of-life’…
remote: Counting objects: 9136, done.
remote: Compressing objects: 100% (2974/2974), done.
remote: Total 9136 (delta 5793), reused 8769 (delta 5544)
Receiving objects: 100% (9136/9136), 17.19 MiB | 377.00 KiB/s, done.
Resolving deltas: 100% (5793/5793), done.

So No problems running the clone.

@wakaleo

In that case it could be an issue with the Jenkins plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

On 15 August 2013 09:34, BruceAli notifications@github.com wrote:

Alexs-Mac-Pro:.git eshgholah$ git clone git@github.com
:BruceAli/game-of-life.git
Cloning into ‘game-of-life’…
remote: Counting objects: 9136, done.
remote: Compressing objects: 100% (2974/2974), done.
remote: Total 9136 (delta 5793), reused 8769 (delta 5544)
Receiving objects: 100% (9136/9136), 17.19 MiB | 377.00 KiB/s, done.
Resolving deltas: 100% (5793/5793), done.

So No problems running the clone.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22675707
.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com


Check out our upcoming _BDD/TDD Master
classes_http://wakaleo.com/training/testing-and-tdd-for-java-developers,
coming
soon to _Sydney_http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses,
_Melbourne_http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses,
_Canberra_http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses,
_Brisbane_http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-coursesand
_Perth_http://wakaleo.com/training/testing-and-tdd-for-java-developers/public-courses


@BruceAli

A lot of people say that there are security issues when it comes to setting up Jenkins on OSX. Does it sound familiar?

@wakaleo

@BruceAli

The reason I asked was because your book is demonstrating it on OSX.

@BruceAli

Now when I run the same command that Jenkins is trying to run from a shell window I do not get any error.Alis-Mac-Alexs-Mac-Pro:~ eshgholah$ git ls-remote -h git@github.com:BruceAli/game-of-life.git HEAD
Alexs-Mac-Pro:~ eshgholah$

But nothing is displayed ( like a success or an error message)

@wakaleo

@BruceAli

you mean the repository dir? game-of-life?

@wakaleo

@BruceAli

I deleted the directory and ran the command

Alexs-Mac-Pro:~ eshgholah$ git ls-remote -h git@github.com:BruceAli/game-of-life.git HEAD
Alexs-Mac-Pro:~ eshgholah$

I got exactly the same result.

@LilyFuWork

I am reading the same book and trying the same example; I was able to clone game-of-life from git bash command line, but from jenkins, it complains Failed to connect to repository; both https://github.com/LilyFuWork/game-of-life.git and git@github.com:LilyFuWork/game-of-life.git

I googled around, people are saying this is a bug in the git plugin (2.0.3) (git client plugin 1.6.3)
I noticed from the book, the git plugin is 1.1.6;

It’s pretty painful to get jenkins connected to GIT repository. Any clue?

@alexincambridge

Permission problem in Jenkins, can be possible.

There’s a bit of trick to doing the former which I’ll cover now:

Login to your box and switch to the Jenkins user. The installation process doesn’t create a password so you’ll need to have root/sudo permissions to do this. Run the command sudo su — jenkins. The ‘-’ specifies a login shell, and will switch you to jenkins’ home directory (for me this was /var/lib/jenkins’).

  1. Create a .ssh directory in the jenkins home directory.
  2. Create the public private key pair. There are many tutorials which cover using the ssh-keygen command to do this. The most important thing is not to set a password, otherwise the jenkins user will not be able to connect to the git repo in an automated way.
  3. Add the public key to your Git repo. We use bitbucket so this was fairly straightforward for me and I imagine anyone reading this will have performed similar actions for all their devs keys in the past.
    Set a git user and email address. This is also mentioned in the git plugin documentation. Run:
    cd /srv/jenkins/jobs/project/workspace
    git config user.email «some@email.com»
    git config user.name «jenkins»

@pradeepe

@idchlife

I had error when git was not installed for user jenkins.

@ChrisXiuxiu

I have the same problem too~~ and i don’t know how to deal with it

@idchlife

@ChrisXiuxiu

I have installed git plugins already

@wakaleo

Jenkins needs git to be installed and configured correctly on the build server to work with git.

@am-firnas

same issue here too, git and github plugins are preinstalled to jenkins.but I think the issue is to deal with ssh, but don’t know how.

Содержание

  1. Failed to connect to repository : Error performing command: git ls-remote -h git@github.com:j /game-of-life.git HEAD #31
  2. Comments
  3. Failed to connect to repository : Command «C:Program FilesGitcmdgit.exe ls-remote -h — my Repository URL HEAD»
  4. Details
  5. Description
  6. Attachments
  7. Attachments
  8. Activity
  9. Jenkins build error while fetch the repo #484
  10. Comments
  11. **`ERROR: Timeout after 10 minutes
  12. Footer
  13. Jenkins. При создании проекта не выполняется git remote на новой ноде

Failed to connect to repository : Error performing command: git ls-remote -h git@github.com:j /game-of-life.git HEAD #31

So what is this issue. Why is n’t there anything mentioned about it in the book. I am using Max OSX exactly like the author. Can someone help? otherwise I have to say that I am totally disappointed buying this book. It gives you problems right from the start and things do not work properly with Git.

The text was updated successfully, but these errors were encountered:

This happens when I try to configure the Jenkins job which is the first one in the book. Where I chose my repository according to the book I should enter git@github.com:j/game-of-life.git for the repository URL and I get the error.Failed to connect to repository : Error performing command: git ls-remote -h git@github.com:j/game-of-life.git HEAD . please someone help. The author has not.

This looks like a git configuration issue: can you clone the git repo from the cmd line?

I tried the git clone command .. because I did clone it using the web page’s clone button I get the following error when I attempt to run the command from a shell window:
Alexs-Mac-Pro:

eshgholah$ git clone git@github.com:BruceAli/game-of-life.git
fatal: destination path ‘game-of-life’ already exists and is not an empty directory.

Is there anyway I could purge this clone and retry this command?

Just delete the directory.

On 15 August 2013 09:23, BruceAli notifications@github.com wrote:

Is there anyway I could purge this clone and retry this command?


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22675212
.

John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

Alexs-Mac-Pro:.git eshgholah$ git clone git@github.com:BruceAli/game-of-life.git
Cloning into ‘game-of-life’.
remote: Counting objects: 9136, done.
remote: Compressing objects: 100% (2974/2974), done.
remote: Total 9136 (delta 5793), reused 8769 (delta 5544)
Receiving objects: 100% (9136/9136), 17.19 MiB | 377.00 KiB/s, done.
Resolving deltas: 100% (5793/5793), done.

So No problems running the clone.

In that case it could be an issue with the Jenkins plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

On 15 August 2013 09:34, BruceAli notifications@github.com wrote:

Alexs-Mac-Pro:.git eshgholah$ git clone git@github.com
:BruceAli/game-of-life.git
Cloning into ‘game-of-life’.
remote: Counting objects: 9136, done.
remote: Compressing objects: 100% (2974/2974), done.
remote: Total 9136 (delta 5793), reused 8769 (delta 5544)
Receiving objects: 100% (9136/9136), 17.19 MiB | 377.00 KiB/s, done.
Resolving deltas: 100% (5793/5793), done.

So No problems running the clone.


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22675707
.

John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

A lot of people say that there are security issues when it comes to setting up Jenkins on OSX. Does it sound familiar?

I don’t recall running into any particular issues. But I rarely run Jenkins
on OSX directly, except for experimenting — usually I run it on Linux or
sometimes Windows.

On 15 August 2013 09:53, BruceAli notifications@github.com wrote:

A lot of people say that there are security issues when it comes to
setting up Jenkins on OSX. Does it sound familiar?


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22676414
.

John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

The reason I asked was because your book is demonstrating it on OSX.

Now when I run the same command that Jenkins is trying to run from a shell window I do not get any error.Alis-Mac-Alexs-Mac-Pro:

eshgholah$ git ls-remote -h git@github.com:BruceAli/game-of-life.git HEAD
Alexs-Mac-Pro:

But nothing is displayed ( like a success or an error message)

Try deleting the directory and then running that command

On 15 August 2013 10:02, BruceAli notifications@github.com wrote:

Now when I run the same command that Jenkins is trying to run from a shell
window I do not get any error.Alis-Mac-Alexs-Mac-Pro:

eshgholah$ git
ls-remote -h git@github.com:BruceAli/game-of-life.git HEAD
Alexs-Mac-Pro:

But nothing is displayed ( like a success or an error message)


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22676812
.

John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

you mean the repository dir? game-of-life?

On 15 August 2013 10:04, BruceAli notifications@github.com wrote:

you mean the repository dir? game-of-life?


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-22676902
.

John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

I deleted the directory and ran the command

eshgholah$ git ls-remote -h git@github.com:BruceAli/game-of-life.git HEAD
Alexs-Mac-Pro:

I got exactly the same result.

I am reading the same book and trying the same example; I was able to clone game-of-life from git bash command line, but from jenkins, it complains Failed to connect to repository; both https://github.com/LilyFuWork/game-of-life.git and git@github.com:LilyFuWork/game-of-life.git

I googled around, people are saying this is a bug in the git plugin (2.0.3) (git client plugin 1.6.3)
I noticed from the book, the git plugin is 1.1.6;

It’s pretty painful to get jenkins connected to GIT repository. Any clue?

Permission problem in Jenkins, can be possible.

There’s a bit of trick to doing the former which I’ll cover now:

Login to your box and switch to the Jenkins user. The installation process doesn’t create a password so you’ll need to have root/sudo permissions to do this. Run the command sudo su — jenkins. The ‘-’ specifies a login shell, and will switch you to jenkins’ home directory (for me this was /var/lib/jenkins’).

Источник

Failed to connect to repository : Command «C:Program FilesGitcmdgit.exe ls-remote -h — my Repository URL HEAD»

Details

Description

When I I copy my Private project link to Jenkins, I get some error like this:

And when I try to build something there, the log of Confirmation failure is like that.

Attachments

Attachments

Activity

pogorman Please don’t create a new issue until you’ve explored the question on the Jenkins users mailing list or on the chat channel. The stack trace that you’ve provided is a strong indication that the problem is specific to your environment. Environment specific questions are best handled in the mailing list or in the chat channels where many more people are watching and many more people are helping.

A bug report only gets the attention of the plugin maintainer. A discussion on the mailing list or in one of the chat channels allows many people that are not maintainers to assist with the question.

For example, in your case, it could be as simple as your repository having grown so large that it needs a longer timeout to complete the clone. It could also be that the workspace has existed for a long enough time with enough incremental updates that it needs a garbage collection from git gc.

Thanks Mark — the work around for us is to use ssh instead of http. I’m not really sure whats happening, all of our builds are done from a clean workspace, requiring a full clone. I can clone on the machine using http when I login as the jenkins user. This issue just came up when I updated the latest jenkins and git-client late last week (2.190.1 & 2.8.6 ). Either way using ssh has fixed the issue

You may want to check the http logs on the git server to see if there is some indication why it is killing the connection from the Jenkins client that is trying to populate the workspace.

Hi, i am getting the same issue and i could not solve it, please help:

  1. I am running jenkins from windows Server2012R2 and trying to add a git project and when i type the repository URL, i see the same error as below:
  2. Failed to connect to repository:Error performing git command: Is -remote -h – https:myrepo stdout: stderr: fatal: Cannot prompt because user interactively has been disabled. fatal:Authentication failed for https:myrepo

amanga please don’t use Jenkins issues to request help with a configuration problem. Very few people read Jenkins issue reports for the git plugin. Many, many more people are available to assist in the Jenkins user mailing list and in the Jenkins chat channels.

When we share the load with many people, more work is accomplished.

Источник

Jenkins build error while fetch the repo #484

Jenkins configuration

configuration system

==============================================================
Gitlab configuration:
Added webhooks in corresponding repository.

If i will commit anything in repo. Jenkins build is running. But its throw the some error.

How to resolve this? Please suggest to me

Regards,
Thangavel E

The text was updated successfully, but these errors were encountered:

This is not a GitLab plugin problem; the build is triggering correctly, but Jenkins is unable to clone your Git repo. I can’t tell why, but, «Timeout after 10 minutes» would suggest to me that maybe Jenkins is unable to connect back to GitLab to clone. I would suggest setting your branch specifier to ‘origin/master’ and running the build manually. Once you get that cloning working, the trigger via the GitLab plugin should also work.

**`ERROR: Timeout after 10 minutes

ERROR: Error cloning remote repo ‘origin’
hudson.plugins.git.GitException: Command «git.exe fetch —tags —progress
returned status code -1:
stdout:
stderr:
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java: 1903)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1622)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:545)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1067)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:415)
ERROR: null
Finished: FAILURE`**

Right GitLab plugin only triggers the job. Also i got this issue so i had just restart my Jenkins server (Jenkins Service), after that it help to build successfully So try and see if it helps in your case.`

@gauravsrivastav I face to the same problem, have you resolves?

@omehegan I’m also facing the same issue how to resolve it?

Same issue just installed Jenkins this morning

i have the same issue

I also ran into this with github (not gitlab) and a restart of the jenkins was a workaround this issue for me. It would be nice to get a root cause and permanent fix.

Failed to connect to repository : Error performing git command: git.exe ls-remote -h https://github.com/rhlpandey1/PythonSeleniumFramework.git HEAD

Getting this while pasting the git repo url

Failed to connect to repository : Error performing git command: git.exe ls-remote -h https://github.com/rhlpandey1/PythonSeleniumFramework.git HEAD

Getting this while pasting the git repo url

Could you fix it? I’m getting the same message


I have no idea 😥 😥 😥
Can somebody help?

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Jenkins. При создании проекта не выполняется git remote на новой ноде

Доброго времени суток. Застрял при работе с нодами в Jenkins. Прошу помощи.

Суть проблемы: добавил ноду с windows для jenkins, всё настроено по мануалу и всё корректно работает. На ноде так же присутствует git с интеграцией в explorer.

При создании проекта для сборки, в разделе с git указываю линк на репозиторий, в ответ:

Failed to connect to repository : Error performing command: git ls-remote -h https://blabla.ru/blabla.git HEAD

Предполагаю, что созданный мною проект в jenkins «трётся» об мастер ноду, которая вообще отключена, да и гита на ней нет.

Нужна ли мастер нода и для чего? Если планируется выделение для каждого проекта своей ноды.

По стандарту есть инстанс. Называется он default и вместо пути указано просто git.

Попробовал отдебажить в консоли добавленной мной slave ноды:

1) println «git ls-remote . ».execute().text

Caused: java.io.IOException: Cannot run program «git»: CreateProcess error=2, The system cannot find the file specified

2) println System.getenv(«PATH»)

3) println «git —help».execute().text

4) Ок. Добавил path до bin. Ребутнул машину. Проверил path: C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesGitcmd;C:Program FilesGitbin;

Попробовал ещё раз вывод: println «git —help».execute().text

5) Удалил путь с bin. Путь до cmd отредактировал до bin. Проверил path в консоли — всё ок. Ребутнул. Попробовал сделать вывод — пусто.

Отсюда вопрос. Как «побороть» ошибку, при создании нового проекта в Jenkins?

Failed to connect to repository : Error performing command: git ls-remote -h https://blabla.ru/blabla.git HEAD

В проекте так же указана новая нода с Windows, которую я ранее добавил в Jenkins, на которой и будет происходить сборка. Git для этой ноды я скачивал и устанавливал с офф. сайта.

Источник


  • Type:


    Bug


  • Priority:


    Major

  • Resolution:

    Fixed


  • Environment:

    jenkins-2.194

When I I copy my Private project link to Jenkins, I get some error like this:

Failed to connect to repository : Command "C:Program FilesGitcmdgit.exe ls-remote -h -- https: returned status code 128:
stdout:
stderr: Logon failed, use ctrl+c to cancel basic credential prompt.
error: cannot spawn C:WINDOWSTEMPpass6522988368209337473.bat: No error
fatal: could not read Username for 'https:: terminal prompts disabled

And when I try to build something there, the log of Confirmation failure is like that.

Started by GitHub push by zzho0631
Running as SYSTEM
Building in workspace C:Program Files (x86)JenkinsworkspaceTeam15
using credential ec3b9de9-638a-472d-a137-668b7c1744f8
Cloning the remote Git repository
Cloning repository https: > git.exe init C:Program Files (x86)JenkinsworkspaceTeam15 # timeout=10
Fetching upstream changes from https: > git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --force --progress -- https:ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git.exe fetch --tags --force --progress -- https: returned status code 128:
stdout: 
stderr: Logon failed, use ctrl+c to cancel basic credential prompt.
error: cannot spawn C:WINDOWSTEMPpass2346010482442283795.bat: No error
fatal: could not read Username for 'https:: terminal prompts disabled

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2172)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1864)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:78)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:545)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:758)
    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:1206)
    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

Доброго времени суток. Застрял при работе с нодами в Jenkins. Прошу помощи.

Суть проблемы: добавил ноду с windows для jenkins, всё настроено по мануалу и всё корректно работает. На ноде так же присутствует git с интеграцией в explorer.

При создании проекта для сборки, в разделе с git указываю линк на репозиторий, в ответ:

Failed to connect to repository : Error performing command: git ls-remote -h https://blabla.ru/blabla.git HEAD

Предполагаю, что созданный мною проект в jenkins «трётся» об мастер ноду, которая вообще отключена, да и гита на ней нет.

Нужна ли мастер нода и для чего? Если планируется выделение для каждого проекта своей ноды.

По стандарту есть инстанс. Называется он default и вместо пути указано просто git.

Попробовал отдебажить в консоли добавленной мной slave ноды:

1) println «git ls-remote …».execute().text

Caused: java.io.IOException: Cannot run program «git»: CreateProcess error=2, The system cannot find the file specified

2) println System.getenv(«PATH»)

C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesGitcmd;

3) println «git —help».execute().text

В ответ пусто.

4) Ок. Добавил path до bin. Ребутнул машину. Проверил path: C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesGitcmd;C:Program FilesGitbin;

Попробовал ещё раз вывод: println «git —help».execute().text

Пусто

5) Удалил путь с bin. Путь до cmd отредактировал до bin. Проверил path в консоли — всё ок. Ребутнул. Попробовал сделать вывод — пусто.

Отсюда вопрос. Как «побороть» ошибку, при создании нового проекта в Jenkins?

Failed to connect to repository : Error performing command: git ls-remote -h https://blabla.ru/blabla.git HEAD

В проекте так же указана новая нода с Windows, которую я ранее добавил в Jenkins, на которой и будет происходить сборка. Git для этой ноды я скачивал и устанавливал с офф. сайта.

Понравилась статья? Поделить с друзьями:
  • Joomla 500 an error has occurred joomla
  • Jom exe error
  • Jojo diamond records ошибка
  • Join error you do not have permission to join this experience error code 524 leave
  • Joi custom error message