Test Jenkinsfile

This commit is contained in:
2024-05-05 20:39:09 +02:00
parent 9c04c8dc79
commit 83a90849ae

7
Jenkinsfile vendored
View File

@@ -1,10 +1,5 @@
pipeline {
agent any
environment {
SSH_CREDENTIALS_ID = 'SSH'
}
stages {
stage('Checkout') {
steps {
@@ -17,7 +12,7 @@ pipeline {
steps {
// Ejecuta un Git Pull en el servidor remoto
script {
sshagent(credentials: ['SSH']) {
sshagent(credentials: ['SSHRaspberryPi1']) {
sh 'ssh usuario@192.168.1.39 "cd /home/userpi/Status && git pull"'
}
}