add Jenkinsfile to build package in Jenkins
ogcore-debian-package/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details

deb-pkg
Nicolas Arenas 2025-03-13 18:49:13 +01:00
parent 33b8cba802
commit 74456f85a1
1 changed files with 27 additions and 0 deletions

View File

@ -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'
}
}
}
}
}