Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61342

httprequest plugin: Systemproperties do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • http-request-plugin
    • None
    • http request plugin: 1.8.24
      Jenkins: 2.204.2

      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?

            janario Janario Oliveira
            leonbadcam leon gregori
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: