Files
Status/Jenkinsfile
vgallegoiz 11863b4561
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
Test Jenkinsfile
2024-05-05 21:04:03 +02:00

22 lines
696 B
Groovy

pipeline {
agent any
stages {
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', branch: 'main'
}
}
stage('Pull') {
steps {
script {
// Ejecutar un Git Pull en el servidor remoto
sshagent(credentials: ['userpiSSH']) {
sh 'ssh -v userpi@192.168.1.39 "cd /home/userpi/Status && git pull"'
}
}
}
}
}
}