How to ssh server and run one python script (which will get the i/ps from json file and json file will get the i/p from Jenkins job/pipeline)

Parametrized build from master to client server by Jenkins :

How to ssh server and run one python script (which will get the i/ps from json file and json file will get the i/p from Jenkins job/pipeline)

Perquisites:

  1. Git Project with one json file, one shell script, one python script.
  2. Jenkins side: need to do below configuration for ssh to server (ref : https://www.serverkaka.com/2018/08/send-build-artifacts-over-ssh-jenkins.html )
  3. Add ssh servers and add the server hostname and key.
  4. In Jenkins, add build step , send exec over ssh.

Leave a comment