mockersf / jenkins-api.rs

Rust client for Jenkins API
MIT License
26 stars 17 forks source link

Can't get home #50

Closed darlaam closed 4 years ago

darlaam commented 4 years ago

Got a panick trying to call get_home() on Jenkins : Error(Json(Error("invalid value: integer-1, expected u32", line: 1, column: 7271)))

If I check directly through the Jenkins API, the only field returned for Home with this value is the slaveAgentPort field. If the Enable TCP Port for JNLP agents is set to disabled, then the slaveAgentPort is set to -1. So the field for the Home struct should be of a type accepting negative values.