Files
Status/Jenkinsfile
vgallegoiz 8720624f1a
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
Test Jenkinsfile
2024-05-05 20:15:22 +02:00

24 lines
593 B
Groovy

pipeline {
agent any
environment {
SSH_CREDENTIALS_ID = 'SSH'
}
stages {
stage('Checkout') {
steps {
// Hace un checkout del repositorio Git
git 'ssh://git@gitssh.mainserverprivate.org:8222/vgallegoiz/Status.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"'
}
}
}
}
}