Developer

Get Involved. Join the Conversation.

Topic

    Satshah
    DevCS Integration with ALM
    Topic posted August 2, 2018 by Satshah Blue Ribbon: 750+ Points, tagged Build, Deployment, Git, Maven, Testing 
    224 Views, 14 Comments
    Title:
    DevCS Integration with ALM
    Summary:
    DevCS Integration with ALM
    Content:

    Hi All,

    I am looking for integrating DevCS with ALM.

    We were able automate the code deployment however after code gets deployed we want to execute test scripts and log a defect if encountered. do we have this kind of functionality available in DevCS, if not can we integrate it with ALM and do that?

    Regards

    Satya

    Comment

     

    • Shay Shmeltzer

      Yes you can.

      Specifically - DevCS support running JUnit and Selenium tests on an application. You can incorporate these as build jobs and add them to a pipeline.

      Publishing JUnit Results Post Build

      Viewing a Build’s Test Results

       

      As for filing issues automatically - you can create scripts that will do this through the REST API we provide for the Issue tracking system:

      https://docs.oracle.com/en/cloud/paas/developer-cloud/rest-api/index.html

       

    • Satshah

      Thanks Shay,

      Is there any plugin for DevCS hudson to get integrated with HP ALM to be specific, I assume what you are suggesting is the outbox solution

       

       

    • Shay Shmeltzer

      There is no plug-in that I'm familiar with, so the REST approach I mentioned above (or potentially webhooks integration) will be the solution to look at.

    • Satshah

      Hi Shay,

      We are calling REST API (of Yahoo weather) from Developer cloud service through Node JS Script. We are getting an Etimeout error every time. Can you help us how to resolve this timeout issue?

      Regards,

      Satya

    • Shay Shmeltzer
       Have you set the proxy for your Node.js script? You might need to do this based on the proxy environment variables - you can find the info about those variables in the DevCS doc. https://docs.oracle.com/en/cloud/paas/developer-cloud/csdcs/managing-project-jobs-and-builds.html#GUID-B6578385-12FB-442A-B69B-E712AB9FD5B8 ${env.HTTP_PROXY_PORT} ${env.HTTP_PROXY_HOST}
    • Ruchir Nema

      Yes, we have used the proxy environment variables in our code.

      Below is the sample code - 

      var Http = require('http');
              var req = Http.request({
          host: '$HTTP_PROXY_HOST',
          // proxy IP
          port: '$HTTP_PROXY_PORT',
          // proxy port
          method: 'GET',
          path: 'http://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text=%27mumbai%27)%20and%20u=%27c%27&format=json' // full URL as path
          }, function (res) {
              res.on('data', function (data) {
              console.log(data.toString());
          });
      });

      req.end();

      When we execute the above code ,it throws error - $HTTP_PROXY_PORT is not defined.

      We are not able to directly use environment variables.

      Thanks,

      Satya

    • Ruchir Nema

      We are printing environment variables $HTTP_PROXY in console log - 

      console.log("Host value" +${env.HTTP_PROXY_HOST} or console.log("Host value" +${HTTP_PROXY_HOST}.

      We are getting error - Variable not defined.

       

    • Shay Shmeltzer

      Are you using the new Developer Cloud Service (with compute based build servers and pipelines), or are you using "Developer Classic" that uses the shared build executors?

    • Shay Shmeltzer

      Also - does it work with another REST service such as:

      https://restcountries.eu/rest/v2/alpha/us

      Try it from a shell script with curl, and from your code.

    • Satshah

      We tried to hit URL https://restcountries.eu/rest/v2/alpha/us from curl language, but it gives connection timeout error. We are not able to hit any https url from devs, neither through node js nor through curl. Please let me know how we can hit HTTPS url through devcs.

      We are gettting below error for https - 

      curl: (7) couldn't connect to host
      

       

    • Shay Shmeltzer

      Can you check if you are using Developer Classic or the new compute based build VM Developer Cloud Service?

    • Ruchir Nema

      Hi Shay,

      we are still on compute classic. Will this feature be available as part of Gen2 Developer cloud service?

    • Shay Shmeltzer

      I think you'll need to open an SR to track this down.

      I tries on both DevCS Classic and the new DevCS and issuing the following in a build step worked on both:

      curl https://restcountries.eu/rest/v2/alpha/us
      

       

    • Ruchir Nema

      Thanks a lot Shay. It is working now. Your inputs helped a lot.