Update 'Jenkinsfile'

main
CIzz22 1 year ago
parent fc522d35b1
commit 8673b85c55

7
Jenkinsfile vendored

@ -11,8 +11,11 @@ pipeline {
steps { steps {
sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created sshagent(['backend-server-digitaltwin']) { // Use the credential ID you created
sh ''' sh '''
# Test SSH connection # Print SSH key info
ssh -o StrictHostKeyChecking=no ${SERVER_USER}@${SERVER_IP} 'echo "SSH Connection Successful!" && hostname && date' ssh-add -l
# Try verbose SSH connection
ssh -v -o StrictHostKeyChecking=no aimo@192.168.1.82 'echo test'
''' '''
} }
} }

Loading…
Cancel
Save