AnsweredAssumed Answered

Devtest Integration with Jenkins

Question asked by Sona0703 on Jun 27, 2018
Latest reply on Aug 20, 2018 by Koustubh.Warty

Hi All,


We are trying to integrate devtest with Jenkins for CI/CD. As per the available posts on community, came to know about LISA Invoke APIs as one of the ways. I have tried the same but getting below error while triggering a build in jenkins. LISA registry is on remote server. Do I need to configure DevTest machine as slave in jenkins to use LISA Invoke??


Pipeline script:


node ('LINUX_SLAVE'){

sh('curl -F file=@/Projects/GIT/Project/Tests/XYZ.tst GET http://HOST:1505/lisa-invoke/runTest?testCasePath=Projects/GIT/Project/Tests/XYZ.tst&stagingDocPath=Projects/GIT/Project/Tests/StagingDocs/Run1User1Cycle.stg')


error in Jenkins:


[DevTest_PipeLine] Running shell script + stagingDocPath=Projects/GIT/Project/Tests/StagingDocs/Run1User1Cycle.stg + curl -F file=@Projects/GIT/Project/Tests/XYZ.tst GET http://Host:1505/lisa-invoke/runTest?testCasePath=Projects/GIT/Project/Tests/XYZ.tst % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: GET [Pipeline] } //node [Pipeline] Allocate node : End [Pipeline] End of Pipeline Finished: SUCCESS


Can someone please help to rectify this issue.