Forum Discussion

singam's avatar
singam
Visitor
4 years ago

Invoking the ready api in the slave host using jenkins over SSH

I have jenkins master running on the linux host and ssh agent  running on the Windows host, I installed the  "ready api:run functiona test " plugin on the Jenkins master and configured the ssh agent...
  • MarcusJ's avatar
    MarcusJ
    4 years ago

    Hi,

     

    You can run testrunner using ssh if you have ssh-agent running on the Jenkins machine you want to run testrunner on and testrunner is installed there.  You can use a ssh command like the below for a remote start of tesrunner.

     

    ssh username@hostname '(/ReadyAPI/bin/testrunner.sh testrunner_arguments)'

     

    If you have a ssh key you can use the -i argument with the ssh command to specify the ssh key.  The Jenkins job can be a shell script command to do this.

     

     

    Regards,

    Marcus James

    SmartBear Support