| garciadeblas | c9f7058 | 2017-04-21 14:33:32 +0200 | [diff] [blame] | 1 | pipeline { |
| garciadeblas | dd93363 | 2017-04-24 10:15:33 +0200 | [diff] [blame] | 2 | agent { |
| 3 | label "pipeline" |
| 4 | } |
| garciadeblas | c9f7058 | 2017-04-21 14:33:32 +0200 | [diff] [blame] | 5 | stages { |
| 6 | stage("Build") { |
| 7 | agent { |
| 8 | dockerfile true |
| 9 | } |
| 10 | steps { |
| 11 | sh 'make package' |
| 12 | stash name: "deb-files", includes: ".build/*.deb" |
| 13 | } |
| 14 | } |
| 15 | stage("Unittest") { |
| 16 | agent { |
| 17 | dockerfile true |
| 18 | } |
| 19 | steps { |
| 20 | sh 'echo "UNITTEST"' |
| 21 | } |
| 22 | } |
| 23 | stage("Repo Component") { |
| 24 | steps { |
| 25 | unstash "deb-files" |
| 26 | sh ''' |
| 27 | mkdir -p pool/openvim |
| garciadeblas | dd93363 | 2017-04-24 10:15:33 +0200 | [diff] [blame] | 28 | mv .build/*.deb pool/openvim/ |
| 29 | mkdir -p dists/$RELEASE/unstable/openvim/binary-amd64/ |
| 30 | apt-ftparchive packages pool/openvim > dists/$RELEASE/unstable/openvim/binary-amd64/Packages |
| 31 | gzip -9fk dists/$RELEASE/unstable/openvim/binary-amd64/Packages |
| garciadeblas | c9f7058 | 2017-04-21 14:33:32 +0200 | [diff] [blame] | 32 | ''' |
| 33 | archiveArtifacts artifacts: "dists/**,pool/openvim/*.deb" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | } |