Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Component/s: git-parameter-plugin
-
Labels:
-
Similar Issues:
Description
We have a job and it is configured as "Build with Parameters".
We have chosen "GIT Parameter" when we try to list "Branches/tags" while click build option it is not listing instead showing error message.
But when we try build job able to clone with SSH keys:
Command "git ls-remote -h ssh://server.de.xyz.com:7999/xdk/xdk110.git" returned status code 128: stdout: stderr: error: cannot run ssh: No such file or directory fatal: unable to fork
We were using:
- Jenkins LTS version "2.46.2"
- Git plugin -->3.3.1
- Git client plugin --->2.4.6
- Git Parameter Plug-In--->0.8.0
Attachments
Issue Links
- is duplicated by
-
JENKINS-52051 git-parameter exec: nc: not found.
-
- Reopened
-
-
JENKINS-48242 Error List Branch
-
- Resolved
-
-
JENKINS-50711 plugin doesn't work with ssh link to git repo
-
- Resolved
-
-
JENKINS-50650 Git parameter show error after cancel job in windows slave
-
- Resolved
-
-
JENKINS-47399 Using of ssh url with new version of git-parameter plugin
-
- Resolved
-
-
JENKINS-51512 Git parameter plugin does not work with Windows agent
-
- Resolved
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Mark Waite [ markewaite ] |
Component/s | git-client-plugin [ 17423 ] |
Resolution | Not A Defect [ 7 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Component/s | git-parameter-plugin [ 16113 ] |
Assignee | Mark Waite [ markewaite ] | |
Resolution | Not A Defect [ 7 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Component/s | git-parameter-plugin [ 16113 ] | |
Component/s | git-plugin [ 15543 ] |
Assignee | Mark Waite [ markewaite ] | Boguslaw Klimas [ klimas7 ] |
Status | Reopened [ 4 ] | Open [ 1 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Attachment | Windows_slave_configuration.png [ 40306 ] |
Attachment | Credentional_configuration.png [ 40307 ] |
Attachment | github_key_add.png [ 40308 ] |
Attachment | Job_Test_B.png [ 40309 ] |
Attachment | Job_test_B_output.png [ 40310 ] |
Attachment | Job_Test_B.png [ 40311 ] |
Attachment | Job_Test_B.png [ 40309 ] |
Attachment | Job_Test_2B.png [ 40312 ] |
Attachment | Job_Test_2B_out.png [ 40313 ] |
Attachment | Zaznaczenie_010.png [ 40426 ] |
Attachment | Zaznaczenie_010.png [ 40426 ] |
Attachment | Zaznaczenie_010.png [ 40427 ] |
Attachment | Zaznaczenie_010.png [ 40428 ] |
Attachment | Zaznaczenie_010.png [ 40428 ] |
Attachment | Zaznaczenie_010.png [ 40427 ] |
Attachment | few_builds.png [ 40429 ] |
Attachment | config.xml [ 40430 ] |
Attachment | config-no-flyweight.xml [ 40431 ] | |
Attachment | config-windows-flyweight.xml [ 40432 ] |
Attachment | config.xml [ 40430 ] |
Attachment | image-2017-11-20-08-59-44-472.png [ 40435 ] |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Labels | ssh_error |
Link | This issue is duplicated by JENKINS-52051 [ JENKINS-52051 ] |
Link |
This issue is duplicated by |
Resolution | Cannot Reproduce [ 5 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Attachment | chrome_2019-02-20_18-34-30.png [ 46132 ] |
Attachment | chrome_2019-02-20_18-34-30.png [ 46133 ] |
Attachment | chrome_2019-02-20_18-41-40.png [ 46134 ] |
Attachment | image-2019-03-06-09-41-20-264.png [ 46287 ] |
Attachment | image-2019-03-06-11-03-41-468.png [ 46290 ] |
Description |
Hi, We have a job and it is configured as "Build with Parameters" We have chosen "GIT Parameter" when we try to list "Branches/tags" while click build option it is not listing instead showing error message. But when we try build job able to clone with SSH keys. {code:java} Command "git ls-remote -h ssh://server.de.xyz.com:7999/xdk/xdk110.git" returned status code 128: stdout: stderr: error: cannot run ssh: No such file or directory fatal: unable to fork {code} We were using Jenkins LTS version "2.46.2" Git plugin -->3.3.1 Git client plugin --->2.4.6 Git Parameter Plug-In--->0.8.0 Thanks Senthil |
We have a job and it is configured as "Build with Parameters". We have chosen "GIT Parameter" when we try to list "Branches/tags" while click build option it is not listing instead showing error message. But when we try build job able to clone with SSH keys: {noformat} Command "git ls-remote -h ssh://server.de.xyz.com:7999/xdk/xdk110.git" returned status code 128: stdout: stderr: error: cannot run ssh: No such file or directory fatal: unable to fork {noformat} We were using: * Jenkins LTS version "2.46.2" * Git plugin -->3.3.1 * Git client plugin --->2.4.6 * Git Parameter Plug-In--->0.8.0 |
This is most likely not a bug in the git plugin or the git client plugin, but a configuration error on either the agent or the master.
That message usually happens when a Windows agent has defined the git location incorrectly. The preferred way to define the location of git (for Windows and for Linux) is "git" and then allow the operating system path configuration on the agent to find command line git using the operating system path.
Do not define the path to the Windows git executable as "C:\Program Files\GIt\git-cmd.exe" or "C:\Program Files\Git\git-bash.exe", since those are two Windows specific programs which don't work with the git plugin. If you're Windows specific, use either "git" (preferred) or "git.exe" or "git.cmd".
If this is not windows, then you may have exhausted open files or some other system level resource limit on your agent.
Another possible cause on Linux might be that the file system is mounted with "noexec". That seems quite unlikely, but might cause that symptom.