Skip to content

[JENKINS-70762] Cannot specify default SSH port. #1558

@jenkins-infra-bot

Description

@jenkins-infra-bot

Please see https://community.jenkins.io/t/how-do-i-use-svn-ssh-with-a-custom-port-and-externals-on-jenkins/5933 for a full description of the problem.

 

In daily use, we use the $HOME/.ssh/config with an entry like this:

HOST subversion
  Hostname subversion.dynautics.local
  IdentityFile ~/.ssh/id_rsa
  User agrowcott
  Port 2223

I need to be able to specify something similar for the Subversion plugin so that all SVN connections over SSH to that specific host use port 2223.

 

I was advised to specify a default Subversion over SSH port by creating /var/lib/jenkins/.subversion/config and populating it with:

[tunnels]
ssh = ssh -p 2223

However, this did not work.

I have checked the documentation for the Subversion plugin for Jenkins, and cannot find any mention of any configuration files to go under /var/lib/jenkins/.subversion (or anywhere else for that matter) or what the contents of any such files should be.

 

 


Originally reported by alastairgrowcott, imported from: Cannot specify default SSH port.
  • status: Open
  • priority: Blocker
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250
Raw content of original issue

Please see https://community.jenkins.io/t/how-do-i-use-svn-ssh-with-a-custom-port-and-externals-on-jenkins/5933 for a full description of the problem.

 

In daily use, we use the $HOME/.ssh/config with an entry like this:

HOST subversion   Hostname subversion.dynautics.local   IdentityFile ~/.ssh/id_rsa   User agrowcott   Port 2223

I need to be able to specify something similar for the Subversion plugin so that all SVN connections over SSH to that specific host use port 2223.

 

I was advised to specify a default Subversion over SSH port by creating /var/lib/jenkins/.subversion/config and populating it with:

[tunnels] ssh = ssh -p 2223

However, this did not work.

I have checked the documentation for the Subversion plugin for Jenkins, and cannot find any mention of any configuration files to go under /var/lib/jenkins/.subversion (or anywhere else for that matter) or what the contents of any such files should be.

 

 

  • environment: Jenkins in Linux docker

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions