jenkinsci / jenkinsci/http-request-plugin
[JENKINS-61342] httprequest plugin: Systemproperties do not work
- Dominant language
- Java
- Stars
- 176
- Forks
- 158
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 3
Description
Dear Jenkins Community,
im using httprequest plugin with systemproperties.
unfortunately, when using proxy from systemproperties, the request does not work.
When giving the proxy dedicated into httprequest dsl method, it works:
Works:
httpRequest httpProxy: 'http://192.105.124.55:8081', authentication: 'GitHubID', url: "https://raw.github.blabla.net/bl-abla/some/master/project/project.properties"
Does not work:
httpRequest authentication: 'GitHubID',
responseHandle: 'NONE', url: "https://raw.github.blabla.net/bl-abla/some/master/project/project.properties" , useSystemProperties: true
The system properties are as follows and should fit to what is required:
http.proxyHost http://192.105.124.55:8081
http.proxyPort 8081
https.proxyHost http://192.105.124.55:8081
https.proxyPort 8081
However, with systemproperties it does not work:
11:34:49 [Pipeline] httpRequest
11:34:50 HttpMethod: GET
11:34:50 URL: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:50 Using authentication: GitHubID
11:34:50 Sending request to url: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:50 Treating UnknownHostException(http://192.105.124.55: Temporary failure in name resolution) as 404 Not Found
And with proxy it works:
11:34:49 [Pipeline] httpRequest
11:34:49 HttpMethod: GET
11:34:49 URL: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:49 Using authentication: GitHubID
11:34:49 Sending request to url: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:49 Response Code: HTTP/1.1 200 OK
Could you help here?
What am i doing wrong?
---
Originally reported by leonbadcam, imported from: httprequest plugin: Systemproperties do not work
janario
Raw content of original issue
Dear Jenkins Community,
im using httprequest plugin with systemproperties.
unfortunately, when using proxy from systemproperties, the request does not work.
When giving the proxy dedicated into httprequest dsl method, it works:Works:
httpRequest httpProxy: 'http://192.105.124.55:8081', authentication: 'GitHubID', url: "https://raw.github.blabla.net/bl-abla/some/master/project/project.properties"Does not work:
httpRequest authentication: 'GitHubID',
responseHandle: 'NONE', url: "https://raw.github.blabla.net/bl-abla/some/master/project/project.properties" , useSystemProperties: trueThe system properties are as follows and should fit to what is required:
http.proxyHost http://192.105.124.55:8081
http.proxyPort 8081
https.proxyHost http://192.105.124.55:8081
https.proxyPort 8081However, with systemproperties it does not work:
11:34:49 [Pipeline] httpRequest
11:34:50 HttpMethod: GET
11:34:50 URL: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:50 Using authentication: GitHubID
11:34:50 Sending request to url: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:50 Treating UnknownHostException(http://192.105.124.55: Temporary failure in name resolution) as 404 Not FoundAnd with proxy it works:
11:34:49 [Pipeline] httpRequest
11:34:49 HttpMethod: GET
11:34:49 URL: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:49 Using authentication: GitHubID
11:34:49 Sending request to url: https://raw.github.blabla.net/bl-abla/some/master/project/project.properties
11:34:49 Response Code: HTTP/1.1 200 OKCould you help here?
What am i doing wrong?
environment
```
http request plugin: 1.8.24
Jenkins: 2.204.2
```
Contributor guide
Assessment
This issue has not been assessed yet.