add trick for validating jenkinsfile
This commit is contained in:
parent
4a2f1c5a25
commit
da587538d8
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user