| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 1 | pipeline { |
| Mike Marchetti | d1da1d6 | 2017-06-20 20:33:20 -0400 | [diff] [blame] | 2 | agent any |
| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 3 | stages { |
| 4 | stage("Build") { |
| 5 | agent { |
| 6 | dockerfile true |
| 7 | } |
| 8 | steps { |
| garciadeblas | d40e551 | 2017-04-21 15:09:26 +0200 | [diff] [blame] | 9 | sh 'make package' |
| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 10 | stash name: "deb-files", includes: ".build/*.deb" |
| 11 | } |
| 12 | } |
| 13 | stage("Unittest") { |
| 14 | agent { |
| 15 | dockerfile true |
| 16 | } |
| 17 | steps { |
| 18 | sh 'echo "UNITTEST"' |
| 19 | } |
| 20 | } |
| 21 | stage("Repo Component") { |
| garciadeblas | 10b81cf | 2017-04-24 15:55:26 +0200 | [diff] [blame] | 22 | agent any |
| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 23 | steps { |
| 24 | unstash "deb-files" |
| 25 | sh ''' |
| 26 | mkdir -p pool/RO |
| garciadeblas | d40e551 | 2017-04-21 15:09:26 +0200 | [diff] [blame] | 27 | mv .build/*.deb pool/RO/ |
| garciadeblas | 515dbae | 2017-04-24 11:41:29 +0200 | [diff] [blame] | 28 | mkdir -p dists/ReleaseOne/unstable/RO/binary-amd64/ |
| 29 | apt-ftparchive packages pool/RO > dists/ReleaseOne/unstable/RO/binary-amd64/Packages |
| 30 | gzip -9fk dists/ReleaseOne/unstable/RO/binary-amd64/Packages |
| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 31 | ''' |
| 32 | archiveArtifacts artifacts: "dists/**,pool/RO/*.deb" |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | } |