diff --git a/Jenkinsfile b/Jenkinsfile index abb1c2f..d1387cb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,11 +10,13 @@ pipeline { stage('Pull') { steps { - // Ejecuta un Git Pull en el servidor remoto script { - sshagent(credentials: 'test') { - sh 'ssh -v userpi@192.168.1.39 "cd /home/userpi/Status && git pull"' - } + // Establecer credenciales + def username = 'tu_usuario' + def password = 'tu_contraseƱa' + + // Ejecutar un Git Pull en el servidor remoto + sh "sshpass -p '${password}' ssh -o StrictHostKeyChecking=no ${username}@192.168.1.39 'cd /home/userpi/Status && git pull'" } } }