Test Jenkinsfile
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -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"'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user