From 9c04c8dc7982e17e365b7bf1b91cb4c4916aa5f9 Mon Sep 17 00:00:00 2001 From: vgallegoiz Date: Sun, 5 May 2024 20:29:35 +0200 Subject: [PATCH] Test Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b0c91e6..26aeb27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stage('Checkout') { steps { // Hace un checkout del repositorio Git utilizando las credenciales SSH - git credentialsId: 'SSH', url: 'ssh://git@gitssh.mainserverprivate.org:8222/vgallegoiz/Status.git' + git credentialsId: 'SSH', url: 'ssh://git@gitssh.mainserverprivate.org:8222/vgallegoiz/Status.git', branch: 'main' } } @@ -17,7 +17,7 @@ pipeline { steps { // Ejecuta un Git Pull en el servidor remoto script { - sshagent(credentials: ['${SSH_CREDENTIALS_ID}']) { + sshagent(credentials: ['SSH']) { sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"' } }