Test Jenkinsfile
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -1,10 +1,5 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
environment {
|
|
||||||
SSH_CREDENTIALS_ID = 'SSH'
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
@@ -17,7 +12,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']) {
|
sshagent(credentials: ['SSHRaspberryPi1']) {
|
||||||
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