Wednesday 22 January 2020

Sigh, Jenkins, I was holding it wrong ...

I've created a Jenkins Pipeline that clones a GitHub repository and ... SHOULD ... execute a bunch o' instructions in a Jenkinsfile in the top-level of the repo ....

SHOULD being the operative word ...

The Pipeline runs, clones the repo, even showing up the most recent Commit message ... and then reports: -

Finished: SUCCESS

What was I doing wrong ?

Yeah, you guessed it ...

When I created the Pipeline, I neglected to choose Pipeline script from SCM, which allows me to specify the Script Path as Jenkinsfile



Which meant that there was NOTHING for the Pipeline to do, apart from clone the GitHub repo ....

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...