blob: 117749da8b3f5d2bef91db9449b3a6787073fec8 [file] [log] [blame]
Mike Marchetti4c7e2372017-05-08 16:07:20 -04001node {
2 stage("Checkout") {
3 checkout scm
4 }
5 stage("Test") {
6 sh 'make test'
7 }
8 stage("Build") {
9 sh 'make package'
10 stash name: "deb-files", includes: "deb_dist/*.deb"
11 }
12 stage("Repo Component") {
13 releaseDir = "ReleaseTWO"
14 unstash "deb-files"
15 sh '''
16 mkdir -p pool/osmclient
17 mv deb_dist/*.deb pool/osmclient/
18 mkdir -p dists/${releaseDir}/unstable/osmclient/binary-amd64/
19 apt-ftparchive packages pool/osmclient > dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
20 gzip -9fk dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
21 '''
22 archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb"
23 }
24}