in that case, I would use the https://plugins.jenkins.io/ssh-agent here you 
have some examples

https://jenkins.io/doc/pipeline/steps/ssh-agent/
https://support.cloudbees.com/hc/en-us/articles/360029470091-How-to-use-the-SSH-Agent-Plugin
https://stackoverflow.com/questions/44237417/how-do-i-use-ssh-in-a-jenkins-pipeline
https://stackoverflow.com/questions/37805901/jenkins-pipeline-sshagent-remote-ssh



El jueves, 6 de febrero de 2020, 12:26:40 (UTC+1), Sanders, Sholom escribió:
>
> I am trying to run a shell script on the remote host from Jenkins using 
> SSH. I am not actually building anything. All my builds are done on the 
> Jenkins machine and the source code comes from GIT. This particular Jenkins 
> job is to distribute the resulting build to various environments as needed. 
> So this job has two parameters, the environment to distribute the build to 
> and the particular build version to distribute. There are five 
> environments. I was able to configure successfully DEV and TSt. The 
> configurations for UAT, STG and PRD fail to connect to server. Each 
> environment has a shell script which copies over the deployment version to 
> that machine.
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c64c73c3-a71f-42cb-b666-a164e7d701fb%40googlegroups.com.

Reply via email to