gojenkins
gojenkins copied to clipboard
the jobUrl end with / and string contact with double /
expecting jobURL = "job/JOB1", but I got a jobURL = "job/JOB1/", jobURL ends with "/" and then got a Build URL="job/JOB1//1", request returns 404;
if strings.HasSuffix(jobURL, "/") {
jobURL = jobURL[:len(jobURL)-1]
}