X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Jenkinsfile;h=8c54266da23e02e7cec177ff3c70b943fa2ab791;hb=b6ab5da8fa0f29fba2b71177a909ab814ba190fb;hp=f40d65b51fe1fe420be0a6ce4afa07917331ab35;hpb=952e203c89ffd50b2a4d21ea504d5a6c519ebbf7;p=osm%2Fosmclient.git diff --git a/Jenkinsfile b/Jenkinsfile index f40d65b..8c54266 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,30 @@ pipeline { agent { - dockerfile true + dockerfile { + label 'osm3' + } } stages { stage("Checkout") { steps { checkout scm + sh ''' + groupadd -o -g $(id -g) -r jenkins + useradd -o -u $(id -u) --create-home -r -g jenkins jenkins + ''' } } stage("Test") { steps { - sh 'make -j4 test' + sh 'tox' } } stage("Build") { steps { - sh 'make package' + sh ''' + rm -rf deb_dist + tox -e build + ''' stash name: "deb-files", includes: "deb_dist/*.deb" } } @@ -23,13 +32,15 @@ pipeline { steps { unstash "deb-files" sh ''' + rm -rf pool + rm -rf dists mkdir -p pool/osmclient mv deb_dist/*.deb pool/osmclient/ mkdir -p dists/unstable/osmclient/binary-amd64/ apt-ftparchive packages pool/osmclient > dists/unstable/osmclient/binary-amd64/Packages gzip -9fk dists/unstable/osmclient/binary-amd64/Packages ''' - archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb" + archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb", fingerprint: true } } }