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') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
// Hace un checkout del repositorio Git utilizando las credenciales SSH
|
// 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 {
|
steps {
|
||||||
// Ejecuta un Git Pull en el servidor remoto
|
// Ejecuta un Git Pull en el servidor remoto
|
||||||
script {
|
script {
|
||||||
sshagent(credentials: ['${SSH_CREDENTIALS_ID}']) {
|
sshagent(credentials: ['SSH']) {
|
||||||
sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"'
|
sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user