How to execute command line script on a different machine from Jenkins -


i access jenkins dashborad located on server called myserver accessing url http://<myserver>:8080/. have written build steps on build part of job configuration page. after completing build steps, need access different server , execute command line script. how run command line script on different server current node?

we have sounds similar situation run automated tests must initiated on non-jenkins host. this, use ssh , keyed authentication, requires bit of setup in execute shell step:

# generic prep eval `ssh-agent -s` ssh-add ~/.ssh/my-agent-key 

at point, key in ssh-agent keyring , can ssh without needing worry passwords account , host accepts key.

ssh testuser@targetmachine "<commands>" 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -