From da587538d8bee36c62d4d206530cd3daf1d608c2 Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 23 Jun 2020 09:51:57 +0200 Subject: [PATCH] add trick for validating jenkinsfile --- cheat/jenkins.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cheat/jenkins.md b/cheat/jenkins.md index 2d70422..075fdf0 100644 --- a/cheat/jenkins.md +++ b/cheat/jenkins.md @@ -41,3 +41,11 @@ Jenkins.get().allItems().collectMany{ CredentialsProvider.lookupStores(it).toLis } } ``` + +### Validate a Jenkinsfile +Via [Sandro Cirulli](https://sandrocirulli.net/how-to-validate-a-jenkinsfile/) - (2019) How to Validate a Jenkinsfile + +``` +curl --user username:password -X POST -F "jenkinsfile=