gojenkins icon indicating copy to clipboard operation
gojenkins copied to clipboard

the jobUrl end with / and string contact with double /

Open ns-cn opened this issue 2 years ago • 0 comments

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]
}

ns-cn avatar Dec 29 '22 00:12 ns-cn