From b949ca66a032bf0b27772ebcec7d8d7e0f1786e7 Mon Sep 17 00:00:00 2001 From: vgallegoiz Date: Sun, 5 May 2024 20:06:18 +0200 Subject: [PATCH] Test Jenkinsfile --- Jenkinsfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e1ccc6..4f85c4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,20 @@ pipeline { agent any + stages { - stage("Hello") { + stage('Checkout') { steps { - echo "Hello world" + // Hace un checkout del repositorio Git + git 'https://ruta-al-repositorio.git' + } + } + + stage('Pull') { + steps { + // Ejecuta un Git Pull en la carpeta deseada + script { + sh 'cd /home/userpi/Status && git pull' + } } } }