Test Jenkinsfile

This commit is contained in:
vgallegoiz committed 2024-05-05 21:02:10 +02:00
1 parent 2a85373aa6
commit 7ec9981a83
1 file changed
+3 -5
Vendored
+3 -5
View File
@@ -11,12 +11,10 @@ pipeline {
stage('Pull') {
steps {
script {
// 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'"
sshagent(credentials: ['Test']) {
sh 'ssh -v [email protected] "cd /home/userpi/Status && git pull"'
}
}
}
}