Forum Discussion

vinodkn's avatar
vinodkn
Senior Member
2 years ago

How to configure gitlab pipeline for ReadyAPI from TestRunner

We are trying to configure gitlab pipeline for ReadyAPI from TestRunner commandline , We have added below code into the ".gitlab-ci.yml" file in gitLab
-------------------------------
stages:
- build
- test

build:
stage: build
script:
- echo "Building Pipeline"

test:
stage: test
script:
- echo "Testing Pipeline"
- chmod +x "PATH TO testrunner.bat" -a "-f PATH TO \Test Reports" "-RProject Report" -FPDF -E PATH TO PROJECT FILE
---------------------------------

The code is commited to GitLab.
When i run the Pipeline the execution is failed due to below Reason:
--------------------------------------
chmod: invalid option -- a
BusyBox v1.32.0 (2020-11-23 21:18:59 UTC) multi-call binary.
Usage: chmod [-Rcvf] MODE[,MODE]... FILE...
Each MODE is one or more of the letters ugoa, one of the
symbols +-= and one or more of the letters rwxst
-R Recurse
-c List changed files
-v List all files
-f Hide errors
ERROR: Job failed: exit code 1
------------------------------

Could anyone please provide the solution for this.

Vallalarasu_P 

5 Replies

  • Hi vinodkn, is GitLab running in an environment that has access to a licensed instance of ReadyAPI? 

    • Vallalarasu_P's avatar
      Vallalarasu_P
      Frequent Contributor

      Hi joejoyce,

       

      Can you give us more insights on getting license access on GitLab ?

       

      But currently we have ReadyAPI floating license and we are executing in the machine where the Readyapi and exists. 

       

      FYI.. the Testrunner.bat with the specific project is able to execute in local repo code.

       

      Regards

      Valla

      • Vallalarasu_P's avatar
        Vallalarasu_P
        Frequent Contributor

        Can you please share a Sample ".gitlab-ci.yml" for ReadyAPI ?

    • Vallalarasu_P's avatar
      Vallalarasu_P
      Frequent Contributor

      Yes joejoyce - We have ReadyAPI license access in the environment as its a Floating license.

       

      Also, We are trying to trigger in local machine for now. 

       

      Please share a sample GitLab YML file for ReadyAPI Test.