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=