2
respostas

Build step 'Build / Publish Docker Image' marked build as failure

Fala pessoal!

Estou com problema para construir o build. Capítulo 2: Build com Docker e Jenkins

Podem me ajudar?

Started by user Aluno Alura
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/jenkins-todo-list-principal
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
using credential github-ssh
Cloning the remote Git repository
Cloning repository https://github.com/Denis-dvps/jenkins-todo-list.git
 > git init /var/lib/jenkins/workspace/jenkins-todo-list-principal # timeout=10
Fetching upstream changes from https://github.com/Denis-dvps/jenkins-todo-list.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
using GIT_SSH to set credentials github-ssh
Verifying host key using known hosts file
You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification.
 > git fetch --tags --progress -- https://github.com/Denis-dvps/jenkins-todo-list.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/Denis-dvps/jenkins-todo-list.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision ce53b70fa6e9409b10253415f0b99c611c00ee12 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f ce53b70fa6e9409b10253415f0b99c611c00ee12 # timeout=10
Commit message: "Meu primeiro commit"
 > git rev-list --no-walk ce53b70fa6e9409b10253415f0b99c611c00ee12 # timeout=10
[jenkins-todo-list-principal] $ /bin/sh -xe /tmp/jenkins6656292806170645301.sh
+ docker run --rm -i hadolint/hadolint
Docker Build
Docker Build: building image at path /var/lib/jenkins/workspace/jenkins-todo-list-principal
ERROR: Build step failed with exception
java.util.NoSuchElementException
    at java.util.ArrayDeque.removeFirst(ArrayDeque.java:285)
    at java.util.ArrayDeque.remove(ArrayDeque.java:452)
    at io.netty.handler.stream.ChunkedWriteHandler.doFlush(ChunkedWriteHandler.java:267)
    at io.netty.handler.stream.ChunkedWriteHandler.flush(ChunkedWriteHandler.java:132)
    at io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:748)
    at io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:740)
    at io.netty.channel.AbstractChannelHandlerContext.access$2200(AbstractChannelHandlerContext.java:59)
    at io.netty.channel.AbstractChannelHandlerContext$Tasks$4.run(AbstractChannelHandlerContext.java:1142)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:750)
Build step 'Build / Publish Docker Image' marked build as failure
Finished: FAILURE
2 respostas

Blz Denis dos Santos Lima, conseguiu resolver? Estou com o mesmo erro.

Opa Jose, blz.

Então, não consegui resolver, mas continue o curso, as vezes é melhor seguir e voltar num outro momento pra testar novamente de cabeça fresca.