Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Jenkins to connect to git repository
    primarykey
    data
    text
    <p>I'm having trouble getting Jenkins to recognize my git repo. The screenshot is below. I was told using <code>git clone https://blah/blah.git</code> will clone the repo as read-only w/o needing credentials or keys. I want to just pull the code and build it.</p> <p>The funny thing is when I execute the same command from the command line, it works and files get pulled down from the repo.</p> <pre><code>export GIT_SSL_NO_VERIFY=true git clone https://blah.com:8443/blah.git </code></pre> <p>When I enter the url and environment variable in Jenkins, it's says it can't connect to the repository. Does anyone know what I might need to do to get it to work? Thanks in advance for your help.</p> <p><img src="https://i.stack.imgur.com/hVqz9.jpg" alt="enter image description here"></p> <p>UPDATE/CLARIFICATION: The Jenkins install is under a service account, not related to any user within the company.</p> <p>UPDATE#2: Here's the console output. I've sanitized it a little so i apologize if i missed something.</p> <pre><code>Started by user anonymous Building in workspace /home/hduser/.jenkins/workspace/analytics Fetching changes from the remote Git repository Fetching upstream changes from https://blah.com:8443/blah.git FATAL: Failed to fetch from https://blah.com:8443/blah.gitt hudson.plugins.git.GitException: Failed to fetch from https://blah.com:8443/blah.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861) at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557) at hudson.model.Run.execute(Run.java:1665) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:246) Caused by: hudson.plugins.git.GitException: Failed to connect to https://blah.com:8443/blah.git at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getURLWithCrendentials(CliGitAPIImpl.java:1391) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:167) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610) ... 10 more </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload