Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50711

plugin doesn't work with ssh link to git repo

    Details

    • Similar Issues:

      Description

      I have an error:

      "Command "/usr/bin/git ls-remote -h git@gitlab.site.com:name/project.git" returned status code 128: stdout: stderr: /tmp/ssh5744210594072786682.sh: line 6: ssh: command not found fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

       

      As a result, I have a build error: 
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      If I fill the field "Default value" to "master" instead of "**" - I don't have Revision error in build process, but "Git Parameter Plugin's" error above, still exist and I can't choose the branch.

      I use:

      Git Parameter Plug-In: 0.9.1

      Git plugin: 3.8.0

      Git client plugin: 2.7.1

        Attachments

          Issue Links

            Activity

            14163314 Serg Pr created issue -
            14163314 Serg Pr made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-47399 [ JENKINS-47399 ]
            14163314 Serg Pr made changes -
            Attachment parameter-plugin-bug.txt [ 42135 ]
            klimas7 Boguslaw Klimas made changes -
            Labels ssh_error
            klimas7 Boguslaw Klimas made changes -
            Link This issue duplicates JENKINS-45480 [ JENKINS-45480 ]
            klimas7 Boguslaw Klimas made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jelion John Elion made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            securitykernel René Korthaus made changes -
            Link This issue is caused by JENKINS-56558 [ JENKINS-56558 ]
            wild_gitler Wild Gitler made changes -
            Comment [ Is there any other workaround other than https? 
             * The default value has been returned
             * An error occurred while download data
             * Command "git ls-remote -h ssh://git@*********************" returned status code 128:
            stdout: 
            stderr: /tmp/**********************: 6: /tmp/*****************************.sh: ssh: not found
            fatal: Could not read from remote repository.

            Please make sure you have the correct access rights
            and the repository exists.
             * Please look at the Log
             * Please check the configuration ]
            klimas7 Boguslaw Klimas made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            klimas7 Boguslaw Klimas made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            klimas7 Boguslaw Klimas made changes -
            Link This issue relates to JENKINS-56558 [ JENKINS-56558 ]
            klimas7 Boguslaw Klimas made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                klimas7 Boguslaw Klimas
                Reporter:
                14163314 Serg Pr
              • Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: