Run build of Machine A from Machine B using Jenkins

前端 未结 3 1955
轻奢々
轻奢々 2021-01-02 05:02

I have 2 computers. Com-A, Com-B.

I have build automation functional script using selenium webdriver,Testng and maven on Com-A.

Com-A has installed everythi

3条回答
  •  悲&欢浪女
    2021-01-02 05:19

    First of all, u don't need to install all thing in COM B.

    Connect with COM A with ssh(secure shell) command and than execute ur project using shell or bash script. In jenkins, u will found all build step under Build option.

    i use the below command to run my project using shell script:

    ssh -l user comAIpaddress(ex. 192.192.192.192) sh SciptLocationInComA.shell
    

    this command first connect with another machine and than execute the shell script to run the project.

    Run a java project using shell or bash script is quite easy..... :)

提交回复
热议问题