No Dockerfile found
Failed to fetch the Dockerfile from path
You have a build step in your pipeline that fails with the error message: “Repository does not contain a Dockerfile. Please check the pipeline configuration” or “Failed to fetch the Dockerfile from path”
This error happens when you are trying to build a Docker image and the pipeline step cannot find a Dockerfile. It might be helpful to include a dummy step in your pipeline that prints all files in the workspace. This way you can verify what files are available to the pipeline.
There are two ways to address this error:
First make sure that you have at least one clone step in your pipeline and that its name is
main_clone. This way the current folder will automatically be setup in the project folder of the git repository.
Secondly, if you checkout multiple git repositories or use another name in your git clone step, make sure that the build step looks at the correct directory:
working_directory property of the build step that searches for the Dockefile in the folder named
trivial-go-web instead of the root folder of the pipeline workspace.