| Mike Marchetti | 4c7e237 | 2017-05-08 16:07:20 -0400 | [diff] [blame] | 1 | node { |
| 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 | } |