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

Git plugin uses port configured in Publish over SSH

XMLWordPrintable

      Jenkins uses port configured in Publish over SSH host instead of the default one while pulling/cloning/accessing the repo from the git server (or any other git server presumably).

      When setting port explicitly in the repo url everything works fine (but integration with Github stops working).

      Started on Jul 12, 2017 6:46:27 PM
      Started by event from http://jenkins:8080/github-webhook/ on Wed Jul 12 18:46:27 CEST 2017
      Using strategy: Default
      using GIT_SSH to set credentials RepoName
       > git ls-remote -h ssh://git@github.com/username/RepoName.git # timeout=10
      FATAL: hudson.plugins.git.GitException: Command "git ls-remote -h ssh://git@github.com/username/RepoName.git" returned status code 128:
      stdout: 
      stderr: ssh: connect to host github.com port 65514: Connection timed out
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      
      hudson.plugins.git.GitException: Command "git ls-remote -h ssh://git@github.com/username/RepoName.git" returned status code 128:
      

       

            slide_o_mix Alex Earl
            xrogers Lech Groblewicz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: