diff --git a/Jenkinsfile b/Jenkinsfile index 26aeb27..1abdb90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,5 @@ pipeline { agent any - - environment { - SSH_CREDENTIALS_ID = 'SSH' - } - stages { stage('Checkout') { steps { @@ -17,7 +12,7 @@ pipeline { steps { // Ejecuta un Git Pull en el servidor remoto script { - sshagent(credentials: ['SSH']) { + sshagent(credentials: ['SSHRaspberryPi1']) { sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"' } }