CRUMB=$(curl -s "http://${USER}:${TOKEN}@localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)")
# to update the job
curl -X POST -H "$CRUMB" \
"http://${USER}:${TOKEN}@localhost:8080/job/NewJob/config.xml" \
-d @jenkins.xml \
-H "Content-Type:application/xml"
# to create the job
curl -X POST -H "$CRUMB" \
"http://${USER}:${TOKEN}@localhost:8080/createItem?name=NewJob2" \
-d @jenkins.xml \
-H "Content-Type:application/xml"
# to start the job
curl -X POST -H "$CRUMB" -u ${USER}:${TOKEN} \
http://localhost:8080/job/NewJob/buildWithParameters?PASSWORD=123
-
Notifications
You must be signed in to change notification settings - Fork 1
verydapeng/spring-boot-web-sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published