Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8039421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:33:50+00:00 2026-06-05T03:33:50+00:00

Problem is simple: the main git repository can be accessed by Jenkins with ssh://ci_ro@server

  • 0

Problem is simple: the main git repository can be accessed by Jenkins with ssh://ci_ro@server (works well), but I have submodules whose URL is different: ssh://server (without defining some user, this is to allow developers to work with this repo and its submodules). I am definitely not allowed (and frankly don’t want to) commit CI – specific .gitmodule files (this would break developer repos), so don’t even mention it please. So Jenkins can pull the main repo but instantly fails with:

Caused by: hudson.plugins.git.GitException: Command "git submodule update --init --recursive" returned status code 1: Cloning into blah/blah...
Host key verification failed.
fatal: The remote end hung up unexpectedly
Clone of 'ssh://server:someport/blah/blah...' into submodule path 'blah/blah' failed

My question: is it possible to tell Jenkins to use ssh://ci_ro@server… URL prefix for submodules instead of the configured ones in .gitmodules? Or any other workarounds, plugins, or hacks available? I looked through the job options and didn’t find any useful option.

UPDATE

Thanks for all the help guys. The resolution was to allow the ‘jenkins’ system user to pull from the specific ssh server/port with git.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:33:52+00:00Added an answer on June 5, 2026 at 3:33 am

    The resolution was to allow the system user running Jenkins to pull with SSH from the specified hosts/ports.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

simple problem with a simple question. I have a string, in C# i can
a possibly simple problem, but weird why I have no idea how to do
I have a simple problem; Here is the code : #include<stdio.h> main(){ int input;
I have a simple problem i have some units in the main folder and
my problem seems simple but I can not manage to find an answer here.
I have a simple problem: I have a main form in win-forms/c#. It has
I've started learning C++. Here's my simple problem. I have a code: int main()
i have a simple problem but it is giving me a big problem im
I have what seems to be a simple problem that I can't solve myself.
I'm facing what I think is a simple problem with Hibernate, but can't solve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.