jenkinsci / jenkinsci/subversion-plugin

[JENKINS-70762] Cannot specify default SSH port.

Open
#1,558 0 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.