Add Jenkinsfile to build package
testing/ogcore-api/pipeline/head This commit looks good Details
ogcore-debian-package/pipeline/head This commit looks good Details

fix_mercure_in_containers
Nicolas Arenas 2025-03-13 20:18:46 +01:00
parent eb2c366e59
commit 24f03e4f01
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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'
}
}
}
}
}