Use shared library
parent
eedc6cb59d
commit
7bf25a86c8
|
@ -1,3 +1,4 @@
|
||||||
|
@Library('jenkins-shared-library') _
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'jenkins-slave'
|
label 'jenkins-slave'
|
||||||
|
@ -12,11 +13,12 @@ pipeline {
|
||||||
stage('Prepare Workspace') {
|
stage('Prepare Workspace') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.BUILD_DIR = "${WORKSPACE}/ogcore"
|
env.BUILD_DIR = "${WORKSPACE}/oggui"
|
||||||
sh "mkdir -p ${env.BUILD_DIR}"
|
sh "mkdir -p ${env.BUILD_DIR}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.BUILD_DIR}") {
|
dir("${env.BUILD_DIR}") {
|
||||||
|
@ -24,6 +26,15 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Generate Changelog') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
generateDebianChangelog(env.BUILD_DIR)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
dir("${env.BUILD_DIR}") {
|
dir("${env.BUILD_DIR}") {
|
||||||
|
@ -34,15 +45,14 @@ pipeline {
|
||||||
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
|
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
// stage ('Publish to Debian Repository') {
|
||||||
}
|
// agent { label 'debian-repo' }
|
||||||
stage ('Publish to Debian Repository') {
|
// steps {
|
||||||
agent { label 'debian-repo' }
|
// sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
|
||||||
steps {
|
// }
|
||||||
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
|
// }
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue