Test Jenkinsfile
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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"'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user