mlabouardy / butler

Export/Import Jenkins jobs & plugins 📤
MIT License
123 stars 34 forks source link

Utility forces http (no SSL support?) #4

Open mtdeguzis opened 6 years ago

mtdeguzis commented 6 years ago

Description

Jenkins can and should be run over SSL/https. This utility does not allow you to specify https. Does it handle the protocol?

./butler jobs export --server https://myhost:port--username mtdeguzis --password $(read -s password && echo $password)

Get http://https//myhost:port/view/all/api/xml: dial tcp: lookup https on *************:53: no such host

Related Issue

Changes proposed

Screenshots

kcwhite commented 6 years ago

Agreed, having the same problem.

mtdeguzis commented 6 years ago

Ended up writing my own for the time being that targets any cluster Jenkins node, can remove/disable/enable a job on either side.

kcwhite commented 6 years ago

Nice. Are you able to share the code?

mtdeguzis commented 6 years ago

I'll see if I can get it approved

icereed commented 6 years ago

This would be solved in #6.

sunkarakamal commented 5 years ago

is there any way to pass nocertificatecheck parameter ,since our Jenkins uses self signed when i run butler command it says "Get https://xxxxxx8443/api/xml: x509: certificate signed by unknown authority"