Test Jenkinsfile
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -1,9 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage("Hello") {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
echo "Hello world"
|
// Hace un checkout del repositorio Git
|
||||||
|
git 'https://ruta-al-repositorio.git'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Pull') {
|
||||||
|
steps {
|
||||||
|
// Ejecuta un Git Pull en la carpeta deseada
|
||||||
|
script {
|
||||||
|
sh 'cd /home/userpi/Status && git pull'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user