Fix typo
ogcore-debian-package/pipeline/head There was a failure building this commit
Details
ogcore-debian-package/pipeline/head There was a failure building this commit
Details
parent
fc91dd08ac
commit
57ad3b849c
|
@ -4,25 +4,29 @@ pipeline {
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
DEBIAN_FRONTEND = 'noninteractive'
|
DEBIAN_FRONTEND = 'noninteractive'
|
||||||
BUILD_DIR = "${WORKSPACE}/ogcore"
|
|
||||||
}
|
}
|
||||||
opfions {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Prepare Workspace') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh "mkdir -p ${BUILD_DIR}" // Creamos el directorio
|
env.BUILD_DIR = "${WORKSPACE}/ogcore"
|
||||||
dir("${BUILD_DIR}") {
|
sh "mkdir -p ${env.BUILD_DIR}"
|
||||||
checkout scm // Hacemos el checkout en el subdirectorio
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
dir("${env.BUILD_DIR}") {
|
||||||
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
dir ("${BUILD_DIR}") {
|
dir("${env.BUILD_DIR}") {
|
||||||
sh '''
|
sh '''
|
||||||
composer require symfony/flex
|
composer require symfony/flex
|
||||||
dpkg-buildpackage -us -uc
|
dpkg-buildpackage -us -uc
|
||||||
|
@ -35,10 +39,15 @@ pipeline {
|
||||||
stage ('Publish to Debian Repository') {
|
stage ('Publish to Debian Repository') {
|
||||||
agent { label 'debian-repo' }
|
agent { label 'debian-repo' }
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
sh "mkdir -p ${WORKSPACE}/debian-repo"
|
||||||
|
}
|
||||||
copyArtifacts projectName: env.JOB_NAME, filter: 'artifacts/*.deb', fingerprintArtifacts: true, target: 'debian-repo/'
|
copyArtifacts projectName: env.JOB_NAME, filter: 'artifacts/*.deb', fingerprintArtifacts: true, target: 'debian-repo/'
|
||||||
sh '''
|
dir("${WORKSPACE}/debian-repo") {
|
||||||
aptly repo add opengsnys-devel debian-repo/*.deb
|
sh '''
|
||||||
'''
|
aptly repo add opengnsys-devel *.deb
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue