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 {
|
||||
DEBIAN_FRONTEND = 'noninteractive'
|
||||
BUILD_DIR = "${WORKSPACE}/ogcore"
|
||||
}
|
||||
opfions {
|
||||
options {
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
stage('Prepare Workspace') {
|
||||
steps {
|
||||
script {
|
||||
sh "mkdir -p ${BUILD_DIR}" // Creamos el directorio
|
||||
dir("${BUILD_DIR}") {
|
||||
checkout scm // Hacemos el checkout en el subdirectorio
|
||||
}
|
||||
env.BUILD_DIR = "${WORKSPACE}/ogcore"
|
||||
sh "mkdir -p ${env.BUILD_DIR}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
dir("${env.BUILD_DIR}") {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
dir ("${BUILD_DIR}") {
|
||||
dir("${env.BUILD_DIR}") {
|
||||
sh '''
|
||||
composer require symfony/flex
|
||||
dpkg-buildpackage -us -uc
|
||||
|
@ -35,10 +39,15 @@ pipeline {
|
|||
stage ('Publish to Debian Repository') {
|
||||
agent { label 'debian-repo' }
|
||||
steps {
|
||||
script {
|
||||
sh "mkdir -p ${WORKSPACE}/debian-repo"
|
||||
}
|
||||
copyArtifacts projectName: env.JOB_NAME, filter: 'artifacts/*.deb', fingerprintArtifacts: true, target: 'debian-repo/'
|
||||
sh '''
|
||||
aptly repo add opengsnys-devel debian-repo/*.deb
|
||||
'''
|
||||
dir("${WORKSPACE}/debian-repo") {
|
||||
sh '''
|
||||
aptly repo add opengnsys-devel *.deb
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue