Segui todos os passos dado pelo instrutor e fiz a correção sugerida pelos colegas acerca do local do Dockerfile. Ainda assim surgiu um erro que não consegui resolver pesquisando pela internet e compartilho com vocês para verificar se juntos conseguimos resolvê-lo.
Segue todo o log do jenkins
Started by user Jenkins
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
using credential github-ssh
Cloning the remote Git repository
Cloning repository git@github.com:tc2a/alura-jenkins-todo-list.git
> git init /var/lib/jenkins/workspace/jenkins-todo-list-principal # timeout=10
Fetching upstream changes from git@github.com:tc2a/alura-jenkins-todo-list.git
> git --version # timeout=10
using GIT_SSH to set credentials Credenciais para acesso ssh ao github
> git fetch --tags --progress -- git@github.com:tc2a/alura-jenkins-todo-list.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@github.com:tc2a/alura-jenkins-todo-list.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@github.com:tc2a/alura-jenkins-todo-list.git # timeout=10
Fetching upstream changes from git@github.com:tc2a/alura-jenkins-todo-list.git
using GIT_SSH to set credentials Credenciais para acesso ssh ao github
> git fetch --tags --progress -- git@github.com:tc2a/alura-jenkins-todo-list.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 7e740bfc80b2cafdb64dfe87c7cce5ca012ebe9f (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 7e740bfc80b2cafdb64dfe87c7cce5ca012ebe9f # timeout=10
Commit message: "Create teste.txt"
> git rev-list --no-walk 7e740bfc80b2cafdb64dfe87c7cce5ca012ebe9f # timeout=10
[jenkins-todo-list-principal] $ /bin/sh -xe /tmp/jenkins3098159953818186642.sh
+ docker run --rm -i hadolint/hadolint
docker: Error response from daemon: read unix @->@/containerd-shim/moby/e6ad89abdf784774b6052a360be3b50043a49cb0045a7bcd58fa029f3c6f942a/shim.sock: read: connection reset by peer: unknown.
Build step 'Execute shell' marked build as failure
Finished: FAILURE