- Get the config.xml from a pre-created job or create another one according to the need :
➜ curl -X GET http://localhost:8080/job/test-pipeline/config.xml -u admin:admin -o config.xml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1599 100 1599 0 0 18518 0 --:--:-- --:--:-- --:--:-- 18593
- Generate Crumb :
➜ CRUMB=$(curl -s 'http://localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)' -u admin:admin)