Add Pipeline to GoCD

Create an empty repo

Clone into new directory thusly:

Create a Dockerfile, contents as follows:

FROM centos:latest

RUN echo “HELLO WORLD”

Commit and push to repo

git add -A

git commit -m “First Post!”

git push -u origin master

Enable a git repository clone key – I’ll spare you the windows details.

Copy clone URL

Create an environent group – I called mine jbreitwieser

Create a new pipeline within this group, I named mine test-centos7

Material type, Git and paste url

Click check connection, ensure it goes green.

Finally, specify the template you wish to use:

set

DOCKER_REPO = jbreitwieser

environment variable

Save

Go under environment, add pipeline.  Unpause it.

build => build details – assigned to a build agent.  Builds and shows output.