sirineBEJI
sirineBEJI

Reputation: 1220

How to test Jenkinsfile separately from source code?

With the pipeline-as-code introduced with jenkins 2.x, we can review/edit the pipeline definition with the application code source in an SCM, as a jenkinsfile. But when we edit the jenkinsfile and we want to test it, this could have impacts on the rest of the application code source.

How can we test separately the jenkinsfile from the code source?
Any Jenkins Plugin ?

Upvotes: 1

Views: 345

Answers (1)

Jon S
Jon S

Reputation: 16346

Have a look at Jenkins Pipeline Unit, it allows you to write unit tests for your Jenkinsfile.

Upvotes: 2

Related Questions