问题
Below is exception stacktrace which I see in Jenkins console log which is built/ rather kicked off automatically on push event.
Push event to branch master Connecting to https://Gihub-private-repo/api/v3 using vinId/****** (vinId_pass) Obtained Jenkinsfile from 02f2d3a422dd46cb25bc7bad6c7f9ac1aedd58e7 Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /home/jenkins2/.jenkins/workspace/teGhe_JenStUpdGhe_JenStUp_master [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential vinId_pass
/usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository /usr/bin/git config remote.origin.url https://Gihub-private-repo/vinId/JenStUp.git # timeout=10 Fetching without tags Fetching upstream changes from https://Gihub-private-repo/vinId/JenStUp.git /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials vinId_pass /usr/bin/git fetch --no-tags --progress -- https://Gihub-private-repo/vinId/JenStUp.git +refs/heads/master:refs/remotes/origin/master # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://Gihub-private-repo/vinId/JenStUp.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:899) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1114) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1145) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --no-tags --progress -- https://Gihub-private-repo/vinId/JenStUp.git +refs/heads/master:refs/remotes/origin/master" returned status code 128: stdout: stderr: fatal: Unable to find remote helper for 'https' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2372) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1985) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:80) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:563) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:897) ... 11 more [Pipeline] }
Installing libcurl package per other post suggestion, but no luck in getting this worked.
Does this need more dependent packages or change in way of running in Jenkins?
来源:https://stackoverflow.com/questions/61082940/github-branch-source-jenkins-integration-fails-running-with-error-stderr-fata