ogcore/Jenkins/Jenkinsfile-deb-pkg

29 lines
699 B
Plaintext

pipeline {
agent {
label 'jenkins-slave'
}
environment {
DEBIAN_FRONTEND = 'noninteractive'
BUILD_DIR = "${WORKSPACE}/source"
}
stages {
stage('Checkout') {
steps {
script {
sh "mkdir -p ${BUILD_DIR}" // Creamos el directorio
dir("${BUILD_DIR}") {
checkout scm // Hacemos el checkout en el subdirectorio
}
}
}
}
stage('Build') {
steps {
dir ("${BUILD_DIR}") {
sh 'dpkg-buildpackage -us -uc'
}
}
}
}
}