You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the last line (and the line before): 2022-11-01 16:35:10,693 DEBUG [ connectionpool | _new_conn ] Starting new HTTP connection (1): docker.mywebsite.com:80
You can see, instead of the IP address + 8080 port number, it changes.
I also tried with Jenkins(jenkins_url, auth=(user, token), allow_redirects=False, verify=False) but doubting I did it right and/or if it did anything. I got the kwargs from here which redirected me to here.
I saw this previous GitHub issue, but unsure how to understand the conversation at the end -- a bit vague.
The text was updated successfully, but these errors were encountered:
exsell-jc
changed the title
In Jenkins(jenkins_url, auth=(user,token)), jenkins_url obeys /etc/hosts too strictly
In Jenkins(jenkins_url, auth=(user,token)), jenkins_url changes port to 80
Nov 2, 2022
The API obeys the port number set in Manage Jenkins -> Configure System -> Jenkins URL, but not the subdirectory.
It seems that api4jenkins doesn't have a way to POST to a subdirectory.
@exsell-jc where do you run the Jenkins, and what's the value of Manage Jenkins -> Configure System -> Jenkins URL ?
if your jenkins run with subpath, add the subpath in to url as well, see doc of this property
Optionally specify the HTTP address of the Jenkins installation, such as http://yourhost.yourdomain/jenkins/ . This value is used to let Jenkins know how to refer to itself, ie. to display images or to create links in emails.
the issue #9 was because he started Jenkins in vm with port 8080 map 9090 of host, so if post request from vm, the Jenkins URL should be localhost:8080, if post from host it should be localhost:9090
At first, the Jenkins API makes the connection well. However, when it gets to post, it changes.
Is it possible to make the Jenkins API just strictly follow the input parameter
http://1.2.3.4:8080/jenkins
instead?In the last line (and the line before):
2022-11-01 16:35:10,693 DEBUG [ connectionpool | _new_conn ] Starting new HTTP connection (1): docker.mywebsite.com:80
You can see, instead of the IP address + 8080 port number, it changes.
I also tried with
Jenkins(jenkins_url, auth=(user, token), allow_redirects=False, verify=False)
but doubting I did it right and/or if it did anything. I got the kwargs from here which redirected me to here.I saw this previous GitHub issue, but unsure how to understand the conversation at the end -- a bit vague.
The text was updated successfully, but these errors were encountered: