fabric8io / gofabric8

CLI used when working with fabric8 running on Kubernetes or OpenShift
https://fabric8.io/
Apache License 2.0
147 stars 72 forks source link

pipeline build error #622

Open zzq392342084 opened 7 years ago

zzq392342084 commented 7 years ago

when I build app,It outputs:

_Started by user anonymous

Cloning the remote Git repository

Cloning repository http://gogs/gogsadmin/demo2.git

/usr/bin/git init /var/jenkins_home/workspace/demo2@script # timeout=10

Fetching upstream changes from http://gogs/gogsadmin/demo2.git

/usr/bin/git --version # timeout=10

/usr/bin/git fetch --tags --progress http://gogs/gogsadmin/demo2.git +refs/heads/:refs/remotes/origin/

/usr/bin/git config remote.origin.url http://gogs/gogsadmin/demo2.git # timeout=10

/usr/bin/git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10

/usr/bin/git config remote.origin.url http://gogs/gogsadmin/demo2.git # timeout=10

Fetching upstream changes from http://gogs/gogsadmin/demo2.git

/usr/bin/git fetch --tags --progress http://gogs/gogsadmin/demo2.git +refs/heads/:refs/remotes/origin/

/usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10

/usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10

Checking out Revision a253be2249e05d9834aeba47588e1e474ff4882e (refs/remotes/origin/master)

/usr/bin/git config core.sparsecheckout # timeout=10

/usr/bin/git checkout -f a253be2249e05d9834aeba47588e1e474ff4882e

First time build. Skipping changelog.

Loading library github.com/fabric8io/fabric8-pipeline-library@v2.2.311

/usr/bin/git rev-parse --is-inside-work-tree # timeout=10

Setting origin to https://github.com/fabric8io/fabric8-pipeline-library.git

/usr/bin/git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10

Fetching origin...

Fetching upstream changes from origin

/usr/bin/git --version # timeout=10

/usr/bin/git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/

/usr/bin/git rev-parse v2.2.311^{commit} # timeout=10

Cloning the remote Git repository

Cloning repository https://github.com/fabric8io/fabric8-pipeline-library.git

/usr/bin/git init /var/jenkins_home/workspace/demo2@libs/github.com/fabric8io/fabric8-pipeline-library # timeout=10

Fetching upstream changes from https://github.com/fabric8io/fabric8-pipeline-library.git

/usr/bin/git --version # timeout=10

/usr/bin/git fetch --tags --progress https://github.com/fabric8io/fabric8-pipeline-library.git +refs/heads/:refs/remotes/origin/

/usr/bin/git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10

/usr/bin/git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10

/usr/bin/git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10

Fetching upstream changes from https://github.com/fabric8io/fabric8-pipeline-library.git

/usr/bin/git fetch --tags --progress https://github.com/fabric8io/fabric8-pipeline-library.git +refs/heads/:refs/remotes/origin/

Checking out Revision d8af29f8af7a498331a244d245fb321003ef110d (v2.2.311)

/usr/bin/git config core.sparsecheckout # timeout=10

/usr/bin/git checkout -f d8af29f8af7a498331a244d245fb321003ef110d

First time build. Skipping changelog.

[Pipeline] echo

Mounting docker socket to build docker images

[Pipeline] podTemplate

[Pipeline] {

[Pipeline] node

Running on kubernetes-a4b8e088bc7c407b88a58a621a366056-674993d969867 in /home/jenkins/workspace/demo2

[Pipeline] {

[Pipeline] git

Cloning the remote Git repository

Cloning repository http://gogs/gogsadmin/demo2.git

/usr/bin/git init /home/jenkins/workspace/demo2 # timeout=10

Fetching upstream changes from http://gogs/gogsadmin/demo2.git

/usr/bin/git --version # timeout=10

/usr/bin/git fetch --tags --progress http://gogs/gogsadmin/demo2.git +refs/heads/:refs/remotes/origin/

/usr/bin/git config remote.origin.url http://gogs/gogsadmin/demo2.git # timeout=10

/usr/bin/git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10

/usr/bin/git config remote.origin.url http://gogs/gogsadmin/demo2.git # timeout=10

Fetching upstream changes from http://gogs/gogsadmin/demo2.git

/usr/bin/git fetch --tags --progress http://gogs/gogsadmin/demo2.git +refs/heads/:refs/remotes/origin/

/usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10

/usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10

Checking out Revision a253be2249e05d9834aeba47588e1e474ff4882e (refs/remotes/origin/master)

/usr/bin/git config core.sparsecheckout # timeout=10

/usr/bin/git checkout -f a253be2249e05d9834aeba47588e1e474ff4882e

/usr/bin/git branch -a -v --no-abbrev # timeout=10

/usr/bin/git checkout -b master a253be2249e05d9834aeba47588e1e474ff4882e

[Pipeline] stage (Canary release)

Using the ‘stage’ step without a block argument is deprecated

Entering stage Canary release

Proceeding

[Pipeline] echo

NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node

[Pipeline] fileExists

[Pipeline] writeFile

[Pipeline] container

[Pipeline] {

[Pipeline] echo

NOTE: until we support pushing tags to remote repos with correct secrets lets default to use the short commit sha as the version

[Pipeline] sh

[demo2] Running shell script

Executing shell script inside container [clients] of pod [kubernetes-a4b8e088bc7c407b88a58a621a366056-674993d969867]

java.net.ProtocolException: Expected HTTP 101 response but was '403 Forbidden'

at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:122)

at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)

at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)

at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)

at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

[Pipeline] }

[Pipeline] // container

[Pipeline] }

[Pipeline] // node

[Pipeline] }

[Pipeline] // podTemplate

[Pipeline] End of Pipeline

io.fabric8.kubernetes.client.KubernetesClientException: Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy)

at io.fabric8.kubernetes.client.dsl.internal.ExecWebSocketListener.onFailure(ExecWebSocketListener.java:159)

at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:99)

at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)

at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Finished: FAILURE_