diff --git a/Jenkins/Jenkinsfile-deb-pkg b/Jenkins/Jenkinsfile-deb-pkg new file mode 100644 index 0000000..1b4de1c --- /dev/null +++ b/Jenkins/Jenkinsfile-deb-pkg @@ -0,0 +1,27 @@ +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' + } + } + } + } +}