Commit 71ddceac authored by Luca Verardo's avatar Luca Verardo
Browse files

Added ssh connection

parent a40f5018
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -84,6 +84,22 @@ pipeline {
                }
            }
        }
		stage('Deploy') {
			steps {
				withCredentials([usernamePassword(credentialsId: 'SSH_VM_MentorArc', passwordVariable: 'SSH_VM_PASS', usernameVariable: 'SSH_VM_USER')]) {

				}
				 def remote = [:]
				remote.name = 'MENTORARC-VM'
				remote.host = '157.26.83.81'
				remote.user = ${SSH_VM_USER}
				remote.password = ${SSH_VM_PASS}
				remote.allowAnyHosts = true

				sshCommand remote: remote, command: "ls -lrt"
				sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done"
			}
		}
        // stage ('Performance') {
        // octoPerfTest credentialsId: 'XXXXXX-XXX-XXX-XXXX', scenarioId: 'XXXXXXX'
        // }