Test Jenkinsfile
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit

This commit is contained in:
2024-05-05 20:29:35 +02:00
parent 2d3770822b
commit 9c04c8dc79

4
Jenkinsfile vendored
View File

@@ -9,7 +9,7 @@ pipeline {
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'
git credentialsId: 'SSH', url: 'ssh://git@gitssh.mainserverprivate.org:8222/vgallegoiz/Status.git', branch: 'main'
}
}
@@ -17,7 +17,7 @@ pipeline {
steps {
// Ejecuta un Git Pull en el servidor remoto
script {
sshagent(credentials: ['${SSH_CREDENTIALS_ID}']) {
sshagent(credentials: ['SSH']) {
sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"'
}
}