Jenkins, you suck! Truly!
declarative_lint () {
declare jenkinsfile="${1:-Jenkinsfile}"
declare jenkins_url="${2:-http://jenkins:8080}"
curl \
-X POST \
-H $(curl -sSL "$jenkins_url/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)") \
-F "jenkinsfile=<$jenkinsfile" \
"$jenkins_url/pipeline-model-converter/validate"
}
Jenkins Dynamic Executor Nodes on AWS - Oteemo
Mike Santangelo talks about Jenkins Dynamic Executors, one of the best ways to expand Jenkins' capacity to bypass the bottlenecks caused by build executors.