Test Jenkinsfile

This commit is contained in:
2024-05-05 20:06:18 +02:00
parent 9355d9b2de
commit b949ca66a0

15
Jenkinsfile vendored
View File

@@ -1,9 +1,20 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage("Hello") { stage('Checkout') {
steps { 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'
}
} }
} }
} }