Changes in Makefile and Jenkinsfile to follow the rest of repos
[osm/RO.git] / Jenkinsfile
1 pipeline {
2         agent any
3         stages {
4                 stage("Build") {
5                         agent {
6                                 dockerfile true
7                         }
8                         steps {
9                                 sh 'make package'
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") {
22                         steps {
23                                 unstash "deb-files"
24                                 sh '''
25                                         mkdir -p pool/RO
26                                         mv .build/*.deb pool/RO/
27                                         mkdir -p dists/$RELEASE/unstable/RO/binary-amd64/
28                                         apt-ftparchive packages pool/RO > dists/$RELEASE/unstable/RO/binary-amd64/Packages
29                                         gzip -9fk dists/$RELEASE/unstable/RO/binary-amd64/Packages
30                                         '''
31                                 archiveArtifacts artifacts: "dists/**,pool/RO/*.deb"
32                         }
33                 }
34         }
35 }