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

Unable to upload test results to ALM. Failed login to ALM Server.Exception: com.hpe.application.automation.tools.common.SSEException: java.net.ConnectException: Connection timed out: connect

    Details

    • Similar Issues:

      Description

      BUILD SUCCESSFULTotal time: 4 minutes 3 seconds
      Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
      Picked up _JAVA_OPTIONS: -Xbootclasspath/a:"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes\jasmine.jar"
      TestNG Reports Processing: START
      Looking for TestNG results report in workspace using pattern: C:/Users/XXXXX/eclipse-workspace/Automation_XXXXX/TestReport/TestNGreport/testng-results.xml
      Saving reports...
      Processing 'C:\Users\XXXXX\.jenkins\jobs\testExe\builds\30\testng\testng-results.xml'
      TestNG Reports Processing: FINISH
      INFO: 'Upload test result to ALM' Post Build Step is being invoked by <username>.
      INFO: 1 test result file found.
      INFO: Start to upload C:\Users\XXXXX\.jenkins\jobs\testExe\builds\30\testng\testng-results.xml
      INFO: Start to parse file: C:\Users\XXXXX\.jenkins\jobs\testExe\builds\30\testng\testng-results.xml
      INFO: parse resut file succeed.
      INFO: Start to login to ALM Server.
      Start login to ALM server.
      Failed login to ALM Server URL:
      https://almxxxxxxxx1253.saas.hpe.com/qcbin/
      . Exception: com.hpe.application.automation.tools.common.SSEException: java.net.ConnectException: Connection timed out: connect
      WARN: there's exception while uploading C:\Users\XXXXX\.jenkins\jobs\testExe\builds\30\testng\testng-results.xml.
      INFO: 'Upload test result to ALM' Completed.
      Build step 'Upload test result to ALM' changed build result to UNSTABLE
      Finished: UNSTABLE

        Attachments

          Activity

          Hide
          krisra03 Rajagopalan VENKATRAMAN KRISHNAMURTHY added a comment -

          Ofir Shaked, Any update on this ticket?

          Show
          krisra03 Rajagopalan VENKATRAMAN KRISHNAMURTHY added a comment - Ofir Shaked , Any update on this ticket?
          Hide
          mhamdi_vf Mohamed Hamdi added a comment -

          Hello,

           

          We have the same problem with "Upload test result to ALM" post-build action. Error message is:

          Login to ALM Server at https://****/qcbin/ failed. Status Code: 302

           

          How can we use this post-build action with proxy (proxy is configured for HTTP and HTTPS in "jenkins.xml" file)?

          Show
          mhamdi_vf Mohamed Hamdi added a comment - Hello,   We have the same problem with "Upload test result to ALM" post-build action. Error message is: Login to ALM Server at  https://****/qcbin/  failed. Status Code: 302   How can we use this post-build action with proxy (proxy is configured for HTTP and HTTPS in "jenkins.xml" file)?
          Hide
          gront Daniel Gront added a comment -

          Mohamed Hamdi,

          for my understanding the proxy should be configured in the Jenkins with a file called proxy.xml which automaticaly is configured when you add proxy in the Jenkins UI.

          Have you tried that?

          Show
          gront Daniel Gront added a comment - Mohamed Hamdi , for my understanding the proxy should be configured in the Jenkins with a file called proxy.xml which automaticaly is configured when you add proxy in the Jenkins UI. Have you tried that?
          Hide
          roy_lu Roy Lu added a comment -

          Currently the hp-application-automation-tools-plugin doesn't support upload through proxy. But it will be in future release.

          Show
          roy_lu Roy Lu added a comment - Currently the hp-application-automation-tools-plugin doesn't support upload through proxy. But it will be in future release.
          Hide
          mhamdi_vf Mohamed Hamdi added a comment - - edited

          Daniel Gront,

           

          From my understanding, Jenkins UI proxy configuration, which is reflected on "proxy.xml" file is used with Plugin Manager (download and update plugins). For example, it doesn't work with Subversion plugin if you are using Subversion in a job to checkout a repo.

           

          You can add java proxy arguments in "jenkins.xml" as the second solution in the following link:

          https://jazz.net/forum/questions/214230/how-do-you-configure-jenkins-to-work-with-a-proxy-server

          We've made both configurations. Plugin manager is working with proxy. Also, Subversion plugin is working with it. However,  "Upload test result to ALM" still doesn't work with the proxy.

           

          Roy Lu has told me in another thread that "Upload test result to ALM" doesn't support proxy for now. We are waiting for it to be added in a future release.

           

          Thanks

          Show
          mhamdi_vf Mohamed Hamdi added a comment - - edited Daniel Gront ,   From my understanding, Jenkins UI proxy configuration, which is reflected on "proxy.xml" file is used with Plugin Manager (download and update plugins). For example, it doesn't work with Subversion plugin if you are using Subversion in a job to checkout a repo.   You can add java proxy arguments in "jenkins.xml" as the second solution in the following link: https://jazz.net/forum/questions/214230/how-do-you-configure-jenkins-to-work-with-a-proxy-server We've made both configurations. Plugin manager is working with proxy. Also, Subversion plugin is working with it. However,  "Upload test result to ALM" still doesn't work with the proxy.   Roy Lu has told me in another thread that "Upload test result to ALM" doesn't support proxy for now. We are waiting for it to be added in a future release.   Thanks
          Hide
          mhamdi_vf Mohamed Hamdi added a comment -

          Hi Roy Lu,

          Status of this issue has been changed to "Resolved". Does "Upload test result to ALM" functionality support proxy now? Which version of plugin?

          Thanks,

          Show
          mhamdi_vf Mohamed Hamdi added a comment - Hi Roy Lu , Status of this issue has been changed to "Resolved". Does "Upload test result to ALM" functionality support proxy now? Which version of plugin? Thanks,
          Hide
          anunagan anu nagan added a comment -

          Hi Roy , 

           

          is this issue fixed, may I know how to resolve it.

          Regards,

          Anu Nagan G

           

          Show
          anunagan anu nagan added a comment - Hi Roy ,    is this issue fixed, may I know how to resolve it. Regards, Anu Nagan G  
          Hide
          anunagan anu nagan added a comment -

          I am following the jenkins to ALM steps , when I gave my sever url without 's' in http I am getting this error  ----- >Failed login to ALM Server URL: /. Exception: com.hpe.application.automation.tools.common.SSEException: java.net.MalformedURLException: no protocol: /rest/is-authenticated -

           

          When I tried with 'https' ----------> I am strucked as I mentioned in the above screenshot. Please let me know if you have any resolution. 

          Show
          anunagan anu nagan added a comment - I am following the jenkins to ALM steps , when I gave my sever url without 's' in http I am getting this error  ----- >Failed login to ALM Server URL: /. Exception: com.hpe.application.automation.tools.common.SSEException: java.net.MalformedURLException: no protocol: /rest/is-authenticated -   When I tried with 'https' ----------> I am strucked as I mentioned in the above screenshot. Please let me know if you have any resolution. 
          Hide
          anunagan anu nagan added a comment -

          Please find my hp alm connection details 

           

          Show
          anunagan anu nagan added a comment - Please find my hp alm connection details   
          Hide
          roy_lu Roy Lu added a comment -

          Hi anu nagan,

          The latest release support it now. Please configure proxy infor in Jenkins proxy settings.

          Show
          roy_lu Roy Lu added a comment - Hi anu nagan , The latest release support it now. Please configure proxy infor in Jenkins proxy settings.

            People

            • Assignee:
              roy_lu Roy Lu
              Reporter:
              krisra03 Rajagopalan VENKATRAMAN KRISHNAMURTHY
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: