Fix typo
ogcore-debian-package/pipeline/head This commit looks good
Details
ogcore-debian-package/pipeline/head This commit looks good
Details
parent
57ad3b849c
commit
3b854f822e
|
@ -31,24 +31,19 @@ pipeline {
|
|||
composer require symfony/flex
|
||||
dpkg-buildpackage -us -uc
|
||||
mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/
|
||||
ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo && mkdir -p /var/tmp/opengnsys/debian-repo"
|
||||
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
|
||||
'''
|
||||
}
|
||||
archiveArtifacts artifacts: 'artifacts/*.deb', fingerprint: true
|
||||
|
||||
}
|
||||
}
|
||||
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/'
|
||||
dir("${WORKSPACE}/debian-repo") {
|
||||
sh '''
|
||||
aptly repo add opengnsys-devel *.deb
|
||||
'''
|
||||
}
|
||||
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue