拉源代码时出错,请问这是什么问题?日志如下:
Started by user admin
Replayed #56
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Agent nodejs-36972 is provisioned from template nodejs
apiVersion: “v1”
kind: “Pod”
metadata:
annotations: {}
labels:
jenkins: “slave”
jenkins/label-digest: “a07e4fc8024cdd05444fc99eb2c7567d6958a339”
jenkins/label: “nodejs”
name: “nodejs-36972”
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: “node-role.kubernetes.io/worker”
operator: “In”
values:
- “ci”
weight: 1
containers:
- args:
- “********”
- “nodejs-36972”
command:
- “jenkins-slave”
env:
- name: “JENKINS_SECRET”
value: “********”
- name: “JENKINS_TUNNEL”
value: “ks-jenkins-agent.kubesphere-devops-system:50000”
- name: “JENKINS_AGENT_NAME”
value: “nodejs-36972”
- name: “JENKINS_NAME”
value: “nodejs-36972”
- name: “JENKINS_AGENT_WORKDIR”
value: “/home/jenkins/agent”
- name: “JENKINS_URL”
value: “http://ks-jenkins.kubesphere-devops-system:80/”
image: “jenkins/jnlp-slave:3.27-1”
imagePullPolicy: “IfNotPresent”
name: “jnlp”
resources:
limits:
memory: “1536Mi”
requests:
memory: “400Mi”
cpu: “50m”
tty: false
volumeMounts:
- mountPath: “/root/.yaml”
name: “volume-0”
readOnly: false
- mountPath: “/root/.npm”
name: “volume-3”
readOnly: false
- mountPath: “/root/.yarn”
name: “volume-2”
readOnly: false
- mountPath: “/root/.sonar/cache”
name: “volume-4”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-1”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
- command:
- “cat”
image: “kubesphere/builder-nodejs:v3.1.0”
imagePullPolicy: “IfNotPresent”
name: “nodejs”
resources:
limits:
ephemeral-storage: “10Gi”
memory: “8192Mi”
cpu: “4000m”
requests:
ephemeral-storage: “1Gi”
memory: “100Mi”
cpu: “100m”
tty: true
volumeMounts:
- mountPath: “/root/.yaml”
name: “volume-0”
readOnly: false
- mountPath: “/root/.npm”
name: “volume-3”
readOnly: false
- mountPath: “/root/.yarn”
name: “volume-2”
readOnly: false
- mountPath: “/root/.sonar/cache”
name: “volume-4”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-1”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
workingDir: “/home/jenkins/agent”
nodeSelector: {}
restartPolicy: “Never”
securityContext:
fsGroup: 1000
tolerations:
- effect: “NoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
- effect: “PreferNoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
volumes:
- hostPath:
path: “/var/data/jenkins_deployment_build”
name: “volume-0”
- hostPath:
path: “/var/data/jenkins_nodejs_yarn_cache”
name: “volume-2”
- hostPath:
path: “/var/run/docker.sock”
name: “volume-1”
- emptyDir:
medium: ""
name: “workspace-volume”
- hostPath:
path: “/var/data/jenkins_sonar_cache”
name: “volume-4”
- hostPath:
path: “/var/data/jenkins_nodejs_npm_cache”
name: “volume-3”
Running on nodejs-36972 in /home/jenkins/agent/workspace/devops-webxk2hj/devops-tm-manage
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout scm)
[Pipeline] git
The recommended git tool is: NONE
using credential gitlab-id
Cloning the remote Git repository
ERROR: Error cloning remote repo ‘origin’
hudson.plugins.git.GitException: Command “git fetch –tags –progress – https://gitlab.goto-recovery.com/forestage/projects/tm-manage.git +refs/heads/:refs/remotes/origin/” returned status code 128:
stdout:
stderr: fatal: unable to access ‘https://gitlab.goto-recovery.com/forestage/projects/tm-manage.git/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:802)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
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 hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Thread.java:748)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 100.127.13.82/100.127.13.82:58172
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:1001)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy118.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
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)
... 1 more
Cloning repository https://gitlab.goto-recovery.com/forestage/projects/tm-manage.git