Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
21 lines
500 B
Groovy
21 lines
500 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
// Hace un checkout del repositorio Git
|
|
git 'https://ruta-al-repositorio.git'
|
|
}
|
|
}
|
|
|
|
stage('Pull') {
|
|
steps {
|
|
// Ejecuta un Git Pull en el servidor remoto
|
|
script {
|
|
sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |