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' + } } } }