Quick fix ports in jenkins.go
This bug makes it impossible to use NodePort instead of port.
This commit is contained in:
parent
a612939f33
commit
b75e8de596
|
|
@ -99,7 +99,7 @@ func (j JenkinsAPIConnectionSettings) BuildJenkinsAPIUrl(serviceName string, ser
|
|||
|
||||
// Validate validates jenkins API connection settings
|
||||
func (j JenkinsAPIConnectionSettings) Validate() error {
|
||||
if j.Port >= 0 && j.UseNodePort {
|
||||
if j.Port > 0 && j.UseNodePort {
|
||||
return errors.New("can't use service port and nodePort both. Please use port or nodePort")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue