9. # JENKINS_SSHD_PORT=[sshd port on master]
# JENKINS_HOSTNAME=[Jenkins master hostname]
$ ssh -p $JENKINS_SSHD_PORT $JENKINS_HOSTNAME
declarative-linter < Jenkinsfile
SSH
10. # Assuming "anonymous read access" has been enabled on
your Jenkins instance.
# JENKINS_URL=[root URL of Jenkins master]
# JENKINS_CRUMB is needed if your Jenkins master has CRSF
protection enabled as it should
$ 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
curl