| 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") { |
| garciadeblas | b3fd885 | 2017-04-24 15:43:04 +0200 | [diff] [blame] | 24 | agent any |
| garciadeblas | c9f7058 | 2017-04-21 14:33:32 +0200 | [diff] [blame] | 25 | steps { |
| 26 | unstash "deb-files" |
| 27 | sh ''' |
| 28 | mkdir -p pool/openvim |
| garciadeblas | dd93363 | 2017-04-24 10:15:33 +0200 | [diff] [blame] | 29 | mv .build/*.deb pool/openvim/ |
| garciadeblas | e1177a6 | 2017-04-24 11:18:59 +0200 | [diff] [blame] | 30 | mkdir -p dists/ReleaseOne/unstable/openvim/binary-amd64/ |
| 31 | apt-ftparchive packages pool/openvim > dists/ReleaseOne/unstable/openvim/binary-amd64/Packages |
| 32 | gzip -9fk dists/ReleaseOne/unstable/openvim/binary-amd64/Packages |
| garciadeblas | c9f7058 | 2017-04-21 14:33:32 +0200 | [diff] [blame] | 33 | ''' |
| 34 | archiveArtifacts artifacts: "dists/**,pool/openvim/*.deb" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | } |