Creating node with the REST API Bee Bot July 13, 2022 10:50 Updated The content of this article has moved to the new documentation site. Related articles Creating credentials using Groovy Version number incorrect when upgrading to CloudBees Jenkins Enterprise ElectricFlow Video Catalog Create a custom builder or publisher Select which Java JDK to use in Pipeline Comments 4 comments Sort by Date Votes Owen.liu Please Update March 20, 2019 07:10 Is there a way to delete a slave via remote API? 2 Marco Valente August 07, 2019 09:48 This did not work for me in the scenario of passing a file. Please note that to pass a file as a parameter I had to not specify the content-type and pass -F json=@/etc/jenkins/jnlp-init.json For example 0 Anoop Vijayan September 23, 2020 09:00 Edited Aug. 28,2019: This just does not work. I have spent couple of hours on this and get a NullPointerException. I am giving up here :( Sept. 23,2020: Sorry I was using the url without quotes. The exception details could have been better. Nevertheless, it works now ! 0 Joe Franklin November 05, 2019 15:14 This guy has scripted it and it works well for me: https://gist.github.com/Evildethow/be4614ba27882d8f4627a972a624d525 0 Please sign in to leave a comment.
Comments
4 comments
Is there a way to delete a slave via remote API?
This did not work for me in the scenario of passing a file. Please note that to pass a file as a parameter I had to not specify the content-type and pass
-F json=@/etc/jenkins/jnlp-init.json
For example
Aug. 28,2019:
This just does not work. I have spent couple of hours on this and get a NullPointerException. I am giving up here :(
Sept. 23,2020:
Sorry I was using the url without quotes. The exception details could have been better. Nevertheless, it works now !
This guy has scripted it and it works well for me:
https://gist.github.com/Evildethow/be4614ba27882d8f4627a972a624d525
Please sign in to leave a comment.