是因为网不好么?下载中断了么?看了下日志也再下载,下的下的就报异常了。。。
Branch indexing
Connecting to https://api.github.com using /******
Obtained Jenkinsfile-online from c7d631cbab97f336739b77dcbf4f6221b49ec0c4
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Agent maven-8qw4b is provisioned from template Kubernetes Pod Template
apiVersion: “v1″
kind: “Pod”
metadata:
annotations: {}
labels:
jenkins: “slave”
jenkins/maven: “true”
name: “maven-8qw4b”
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: “node-role.kubernetes.io/worker”
operator: “In”
values:
- “ci”
weight: 1
containers:
- args:
- “********”
- “maven-8qw4b”
command:
- “jenkins-slave”
env:
- name: “JENKINS_SECRET”
value: “********”
- name: “JENKINS_TUNNEL”
value: “ks-jenkins-agent.kubesphere-devops-system:50000”
- name: “JENKINS_AGENT_NAME”
value: “maven-8qw4b”
- name: “JENKINS_NAME”
value: “maven-8qw4b”
- 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”
securityContext:
privileged: false
tty: false
volumeMounts:
- mountPath: “/root/.sonar/cache”
name: “volume-2”
readOnly: false
- mountPath: “/root/.m2”
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
- command:
- “cat”
image: “kubesphere/builder-maven:v2.1.0”
imagePullPolicy: “IfNotPresent”
name: “maven”
resources:
limits:
ephemeral-storage: “10Gi”
memory: “8192Mi”
cpu: “4000m”
requests:
ephemeral-storage: “1Gi”
memory: “100Mi”
cpu: “100m”
securityContext:
privileged: false
tty: true
volumeMounts:
- mountPath: “/opt/apache-maven-3.5.3/conf/settings.xml”
name: “config-volume”
subPath: “settings.xml”
- mountPath: “/root/.sonar/cache”
name: “volume-2″
readOnly: false
- mountPath: “/root/.m2″
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
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/run/docker.sock”
name: “volume-0″
- hostPath:
path: “sonar_cache”
name: “volume-2”
- hostPath:
path: “jenkins_maven_cache”
name: “volume-1”
- emptyDir:
medium: ""
name: “workspace-volume”
- configMap:
items:
- key: “MavenSetting”
path: “settings.xml”
name: “ks-devops-agent”
name: “config-volume”
Running on maven-8qw4b in /home/jenkins/agent/workspace/ct-P2KxO9z2AP5M_demo-cicd_master
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
using credential github-244913
Cloning the remote Git repository
Using shallow clone
Honoring refspec on initial clone
Cloning repository https://github.com/ruicongMa/devops-java-sample.git
git init /home/jenkins/agent/workspace/ct-P2KxO9z2AP5M_demo-cicd_master # timeout=10
Fetching upstream changes from https://github.com/ruicongMa/devops-java-sample.git
git –version # timeout=10
using GIT_ASKPASS to set credentials
git fetch –tags –progress https://github.com/ruicongMa/devops-java-sample.git +refs/heads/master:refs/remotes/origin/master –depth=1 # timeout=20
ERROR: Error cloning remote repo ‘origin’
hudson.plugins.git.GitException: Command “git fetch –tags –progress https://github.com/ruicongMa/devops-java-sample.git +refs/heads/master:refs/remotes/origin/master –depth=1” returned status code 128:
stdout:
stderr: remote: Enumerating objects: 3407, done.
remote: Counting objects: 0% (1/3407)
remote: Counting objects: 1% (35/3407)
remote: Counting objects: 2% (69/3407)
remote: Counting objects: 3% (103/3407)
remote: Counting objects: 4% (137/3407)
remote: Counting objects: 5% (171/3407)
remote: Counting objects: 6% (205/3407)
remote: Counting objects: 7% (239/3407)
remote: Counting objects: 8% (273/3407)
remote: Counting objects: 9% (307/3407)
remote: Counting objects: 10% (341/3407)
remote: Counting objects: 11% (375/3407)
remote: Counting objects: 12% (409/3407)
remote: Counting objects: 13% (443/3407)
remote: Counting objects: 14% (477/3407)
remote: Counting objects: 15% (512/3407)
remote: Counting objects: 16% (546/3407)
remote: Counting objects: 17% (580/3407)
remote: Counting objects: 18% (614/3407)
remote: Counting objects: 19% (648/3407)
remote: Counting objects: 20% (682/3407)
remote: Counting objects: 21% (716/3407)
remote: Counting objects: 22% (750/3407)
remote: Counting objects: 23% (784/3407)
remote: Counting objects: 24% (818/3407)
remote: Counting objects: 25% (852/3407)
remote: Counting objects: 26% (886/3407)
remote: Counting objects: 27% (920/3407)
remote: Counting objects: 28% (954/3407)
remote: Counting objects: 29% (989/3407)
remote: Counting objects: 30% (1023/3407)
remote: Counting objects: 31% (1057/3407)
remote: Counting objects: 32% (1091/3407)
remote: Counting objects: 33% (1125/3407)
remote: Counting objects: 34% (1159/3407)
remote: Counting objects: 35% (1193/3407)
remote: Counting objects: 36% (1227/3407)
remote: Counting objects: 37% (1261/3407)
remote: Counting objects: 38% (1295/3407)
remote: Counting objects: 39% (1329/3407)
remote: Counting objects: 40% (1363/3407)
remote: Counting objects: 41% (1397/3407)
remote: Counting objects: 42% (1431/3407)
remote: Counting objects: 43% (1466/3407)
remote: Counting objects: 44% (1500/3407)
remote: Counting objects: 45% (1534/3407)
remote: Counting objects: 46% (1568/3407)
remote: Counting objects: 47% (1602/3407)
remote: Counting objects: 48% (1636/3407)
remote: Counting objects: 49% (1670/3407)
remote: Counting objects: 50% (1704/3407)
remote: Counting objects: 51% (1738/3407)
remote: Counting objects: 52% (1772/3407)
remote: Counting objects: 53% (1806/3407)
remote: Counting objects: 54% (1840/3407)
remote: Counting objects: 55% (1874/3407)
remote: Counting objects: 56% (1908/3407)
remote: Counting objects: 57% (1942/3407)
remote: Counting objects: 58% (1977/3407)
remote: Counting objects: 59% (2011/3407)
remote: Counting objects: 60% (2045/3407)
remote: Counting objects: 61% (2079/3407)
remote: Counting objects: 62% (2113/3407)
remote: Counting objects: 63% (2147/3407)
remote: Counting objects: 64% (2181/3407)
remote: Counting objects: 65% (2215/3407)
remote: Counting objects: 66% (2249/3407)
remote: Counting objects: 67% (2283/3407)
remote: Counting objects: 68% (2317/3407)
remote: Counting objects: 69% (2351/3407)
remote: Counting objects: 70% (2385/3407)
remote: Counting objects: 71% (2419/3407)
remote: Counting objects: 72% (2454/3407)
remote: Counting objects: 73% (2488/3407)
remote: Counting objects: 74% (2522/3407)
remote: Counting objects: 75% (2556/3407)
remote: Counting objects: 76% (2590/3407)
remote: Counting objects: 77% (2624/3407)
remote: Counting objects: 78% (2658/3407)
remote: Counting objects: 79% (2692/3407)
remote: Counting objects: 80% (2726/3407)
remote: Counting objects: 81% (2760/3407)
remote: Counting objects: 82% (2794/3407)
remote: Counting objects: 83% (2828/3407)
remote: Counting objects: 84% (2862/3407)
remote: Counting objects: 85% (2896/3407)
remote: Counting objects: 86% (2931/3407)
remote: Counting objects: 87% (2965/3407)
remote: Counting objects: 88% (2999/3407)
remote: Counting objects: 89% (3033/3407)
remote: Counting objects: 90% (3067/3407)
remote: Counting objects: 91% (3101/3407)
remote: Counting objects: 92% (3135/3407)
remote: Counting objects: 93% (3169/3407)
remote: Counting objects: 94% (3203/3407)
remote: Counting objects: 95% (3237/3407)
remote: Counting objects: 96% (3271/3407)
remote: Counting objects: 97% (3305/3407)
remote: Counting objects: 98% (3339/3407)
remote: Counting objects: 99% (3373/3407)
remote: Counting objects: 100% (3407/3407)
remote: Counting objects: 100% (3407/3407), done.
remote: Compressing objects: 0% (1/1314)
remote: Compressing objects: 1% (14/1314)
remote: Compressing objects: 2% (27/1314)
remote: Compressing objects: 3% (40/1314)
remote: Compressing objects: 4% (53/1314)
remote: Compressing objects: 5% (66/1314)
remote: Compressing objects: 6% (79/1314)
remote: Compressing objects: 7% (92/1314)
remote: Compressing objects: 8% (106/1314)
remote: Compressing objects: 9% (119/1314)
remote: Compressing objects: 10% (132/1314)
remote: Compressing objects: 11% (145/1314)
remote: Compressing objects: 12% (158/1314)
remote: Compressing objects: 13% (171/1314)
remote: Compressing objects: 14% (184/1314)
remote: Compressing objects: 15% (198/1314)
remote: Compressing objects: 16% (211/1314)
remote: Compressing objects: 17% (224/1314)
remote: Compressing objects: 18% (237/1314)
remote: Compressing objects: 19% (250/1314)
remote: Compressing objects: 20% (263/1314)
remote: Compressing objects: 21% (276/1314)
remote: Compressing objects: 22% (290/1314)
remote: Compressing objects: 23% (303/1314)
remote: Compressing objects: 24% (316/1314)
remote: Compressing objects: 25% (329/1314)
remote: Compressing objects: 26% (342/1314)
remote: Compressing objects: 27% (355/1314)
remote: Compressing objects: 28% (368/1314)
remote: Compressing objects: 29% (382/1314)
remote: Compressing objects: 30% (395/1314)
remote: Compressing objects: 31% (408/1314)
remote: Compressing objects: 32% (421/1314)
remote: Compressing objects: 33% (434/1314)
remote: Compressing objects: 34% (447/1314)
remote: Compressing objects: 35% (460/1314)
remote: Compressing objects: 36% (474/1314)
remote: Compressing objects: 37% (487/1314)
remote: Compressing objects: 38% (500/1314)
remote: Compressing objects: 39% (513/1314)
remote: Compressing objects: 40% (526/1314)
remote: Compressing objects: 41% (539/1314)
remote: Compressing objects: 42% (552/1314)
remote: Compressing objects: 43% (566/1314)
remote: Compressing objects: 44% (579/1314)
remote: Compressing objects: 45% (592/1314)
remote: Compressing objects: 46% (605/1314)
remote: Compressing objects: 47% (618/1314)
remote: Compressing objects: 48% (631/1314)
remote: Compressing objects: 49% (644/1314)
remote: Compressing objects: 50% (657/1314)
remote: Compressing objects: 51% (671/1314)
remote: Compressing objects: 52% (684/1314)
remote: Compressing objects: 53% (697/1314)
remote: Compressing objects: 54% (710/1314)
remote: Compressing objects: 55% (723/1314)
remote: Compressing objects: 56% (736/1314)
remote: Compressing objects: 57% (749/1314)
remote: Compressing objects: 58% (763/1314)
remote: Compressing objects: 59% (776/1314)
remote: Compressing objects: 60% (789/1314)
remote: Compressing objects: 61% (802/1314)
remote: Compressing objects: 62% (815/1314)
remote: Compressing objects: 63% (828/1314)
remote: Compressing objects: 64% (841/1314)
remote: Compressing objects: 65% (855/1314)
remote: Compressing objects: 66% (868/1314)
remote: Compressing objects: 67% (881/1314)
remote: Compressing objects: 68% (894/1314)
remote: Compressing objects: 69% (907/1314)
remote: Compressing objects: 70% (920/1314)
remote: Compressing objects: 71% (933/1314)
remote: Compressing objects: 72% (947/1314)
remote: Compressing objects: 73% (960/1314)
remote: Compressing objects: 74% (973/1314)
remote: Compressing objects: 75% (986/1314)
remote: Compressing objects: 76% (999/1314)
Receiving objects: 53% (1814/3407), 7.68 MiB | 28.00 KiB/s
Receiving objects: 53% (1814/3407), 7.70 MiB | 29.00 KiB/s
Receiving objects: 53% (1814/3407), 7.72 MiB | 31.00 KiB/s
Receiving objects: 53% (1814/3407), 7.75 MiB | 30.00 KiB/s
Receiving objects: 53% (1814/3407), 7.77 MiB | 30.00 KiB/s
Receiving objects: 53% (1819/3407), 7.80 MiB | 26.00 KiB/s
Receiving objects: 53% (1819/3407), 7.82 MiB | 24.00 KiB/s
Receiving objects: 53% (1819/3407), 7.83 MiB | 23.00 KiB/s
Receiving objects: 53% (1819/3407), 7.86 MiB | 22.00 KiB/s
Receiving objects: 53% (1819/3407), 7.87 MiB | 21.00 KiB/s
Receiving objects: 53% (1819/3407), 7.90 MiB | 20.00 KiB/s
Receiving objects: 53% (1819/3407), 7.91 MiB | 20.00 KiB/s
Receiving objects: 53% (1819/3407), 7.92 MiB | 18.00 KiB/s
Receiving objects: 53% (1819/3407), 7.94 MiB | 17.00 KiB/s
Receiving objects: 53% (1819/3407), 7.95 MiB | 14.00 KiB/s
Receiving objects: 53% (1819/3407), 7.96 MiB | 13.00 KiB/s
Receiving objects: 53% (1819/3407), 7.97 MiB | 13.00 KiB/s
Receiving objects: 53% (1819/3407), 7.98 MiB | 10.00 KiB/s
Receiving objects: 53% (1819/3407), 7.99 MiB | 10.00 KiB/s
Receiving objects: 53% (1819/3407), 8.00 MiB | 10.00 KiB/s
Receiving objects: 53% (1819/3407), 8.02 MiB | 11.00 KiB/s
Receiving objects: 53% (1819/3407), 8.04 MiB | 10.00 KiB/s
Receiving objects: 53% (1823/3407), 8.05 MiB | 12.00 KiB/s
Receiving objects: 53% (1823/3407), 8.07 MiB | 12.00 KiB/s
Receiving objects: 53% (1823/3407), 8.10 MiB | 18.00 KiB/s
Receiving objects: 53% (1823/3407), 8.11 MiB | 18.00 KiB/s
Receiving objects: 53% (1827/3407), 8.13 MiB | 18.00 KiB/s
Receiving objects: 53% (1827/3407), 8.14 MiB | 17.00 KiB/s
Receiving objects: 53% (1827/3407), 8.16 MiB | 17.00 KiB/s
Receiving objects: 53% (1827/3407), 8.18 MiB | 19.00 KiB/s
Receiving objects: 53% (1827/3407), 8.21 MiB | 20.00 KiB/s
Receiving objects: 53% (1831/3407), 8.24 MiB | 19.00 KiB/s
Receiving objects: 53% (1831/3407), 8.25 MiB | 19.00 KiB/s
Receiving objects: 53% (1831/3407), 8.26 MiB | 19.00 KiB/s
Receiving objects: 53% (1831/3407), 8.28 MiB | 20.00 KiB/s
Receiving objects: 53% (1831/3407), 8.30 MiB | 19.00 KiB/s
Receiving objects: 53% (1831/3407), 8.31 MiB | 18.00 KiB/s
Receiving objects: 53% (1831/3407), 8.34 MiB | 17.00 KiB/s
Receiving objects: 53% (1831/3407), 8.35 MiB | 17.00 KiB/s
Receiving objects: 53% (1831/3407), 8.36 MiB | 15.00 KiB/s
Receiving objects: 53% (1833/3407), 8.37 MiB | 15.00 KiB/s
Receiving objects: 53% (1836/3407), 8.39 MiB | 16.00 KiB/s
Receiving objects: 53% (1836/3407), 8.40 MiB | 16.00 KiB/s
Receiving objects: 53% (1836/3407), 8.41 MiB | 14.00 KiB/s
Receiving objects: 53% (1836/3407), 8.44 MiB | 15.00 KiB/s
Receiving objects: 53% (1836/3407), 8.46 MiB | 15.00 KiB/s
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:655)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
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 10.244.2.131/10.244.2.131:40290
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:957)
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.$Proxy131.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
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)
... 1 more
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
ERROR: Error cloning remote repo ‘origin’
Finished: FAILURE