rsemcs/Lintjenkinsfile.sh

7 lines
462 B
Bash
Raw Normal View History

2022-01-08 20:23:08 +00:00
#!/bin/sh
# curl (REST API)
# Assuming "anonymous read access" has been enabled on your Jenkins instance.
# JENKINS_CRUMB is needed if your Jenkins controller has CRSF protection enabled as it should
JENKINS_URL="https://dev.sys.reslate.xyz/dev-auto"
JENKINS_CRUMB=`curl "$JENKINS_URL/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)"`
curl -X POST -H $JENKINS_CRUMB -F "jenkinsfile=<Jenkinsfile" $JENKINS_URL/pipeline-model-converter/validate