add trick for validating jenkinsfile

This commit is contained in:
Morgan 2020-06-23 09:51:57 +02:00 committed by GitHub
parent 4a2f1c5a25
commit da587538d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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=<Jenkinsfile" http://jenkins-url/pipeline-model-converter/validate
```