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 7612977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:03:20+00:00 2026-05-31T02:03:20+00:00

I have two jobs on my Jenkins server. Both are based on git but

  • 0

I have two jobs on my Jenkins server. Both are based on git but only one works and I don’t know why.

Job 1

The first one works with a Github repository. Configuration is as follows :

Repository URL: git://github.com/profilsoft/profilsoft.git

Name: origin

Refspec: +refs/heads/:refs/remotes/origin/

When I launch a build, I can see that in the log :

Building in workspace /var/lib/jenkins/jobs/Profilsoft – Tools/workspace

Checkout:workspace / /var/lib/jenkins/jobs/Profilsoft – Tools/workspace – hudson.remoting.LocalChannel@14a1e7ad

Using strategy: Default

Last Built Revision: Revision 5441ae757daccf1f3bf2edd392a7131eccdf6184 (origin/HEAD, origin/master)

Checkout:workspace / /var/lib/jenkins/jobs/Profilsoft – Tools/workspace – hudson.remoting.LocalChannel@14a1e7ad

Fetching changes from 1 remote Git repository

Fetching upstream changes from git://github.com/profilsoft/profilsoft.git

Seen branch in repository origin/HEAD

Seen branch in repository origin/master

Commencing build of Revision 5441ae757daccf1f3bf2edd392a7131eccdf6184 (origin/HEAD, origin/master)

Checking out Revision 5441ae757daccf1f3bf2edd392a7131eccdf6184 (origin/HEAD, origin/master)

Warning : There are multiple branch changesets here

[workspace] $ ant

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

Buildfile: /var/lib/jenkins/jobs/Profilsoft – Tools/workspace/build.xml

The build success without any trouble

Job 2

The second job have the following configuration

Repository URL: git@192.168.1.12:front

Name: origin

Refspec: +refs/heads/:refs/remotes/origin/

When I launch a build, I can see that in the log :

Building in workspace /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace

Checkout:workspace / /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace – hudson.remoting.LocalChannel@72be8e1

Using strategy: Default

Checkout:workspace / /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace – hudson.remoting.LocalChannel@72be8e1

Cloning the remote Git repository

Cloning repository origin

ERROR: Error cloning remote repo ‘origin’ : Could not clone git@192.168.1.12:front

Caused by: hudson.plugins.git.GitException: Error performing command: /usr/bin/git clone –progress -o origin git@192.168.1.12:front /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace

Command "/usr/bin/git clone –progress -o origin git@192.168.1.12:front /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace" returned status code 128: Cloning into /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace…
No protocol specified

I have tried

  1. I put the content of my ~/.shh on /var/lib/jenkins/.ssh with with the correct permissions (600, jenkins:jenkins)
  2. I ran the command "/usr/bin/git clone –progress -o origin git@192.168.1.12:front /var/lib/jenkins/jobs/profilsoft-wordpress-plugin/workspace" in the console and it works perfectly (repository is cloned)
  3. I have updated the Git Plugin. I have the latest version.
  4. A coworker installed Jenkins and he has set the same configuration. The build has succeeded.

Anyone have any ideas?

  • 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-05-31T02:03:21+00:00Added an answer on May 31, 2026 at 2:03 am

    Please look on https://stackoverflow.com/a/3250131/814304 and https://stackoverflow.com/a/3248848/814304 .

    you can try to add fixed protocol in your settings.

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

Sidebar

Related Questions

I have two jobs in jenkins, both of which need the same parameter. How
I have two tables one with jobs one with managers, when a job ID
i have two models: class Category has many :jobs end class Job belongs_to :category
When I have two mysql servers that have different jobs (holding different databases) but
I have two jobs pulling from a mysql table. They both want to get
I have two tables, one for job deadlines, one for describe a job. Each
I have two tables: jobs & activities. A job consists of zero or more
We have two cron jobs that hit two different dynamic backends and both are
I have two models Jobs and Questions. A job has many questions and questions
I have a CI System setup based on Jenkins on a Windows 2003 server

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.