projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
retrieve key/val method from pkg
[osm/osmclient.git]
/
Jenkinsfile
diff --git
a/Jenkinsfile
b/Jenkinsfile
index
729fd56
..
84611ce
100644
(file)
--- a/
Jenkinsfile
+++ b/
Jenkinsfile
@@
-1,21
+1,30
@@
pipeline {
agent {
pipeline {
agent {
- dockerfile true
+ dockerfile {
+ label 'osm3'
+ }
}
stages {
stage("Checkout") {
steps {
checkout scm
}
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 {
}
}
stage("Test") {
steps {
- sh '
make test
'
+ sh '
tox
'
}
}
stage("Build") {
steps {
}
}
stage("Build") {
steps {
- sh 'make package'
+ sh '''
+ rm -rf deb_dist
+ tox -e build
+ '''
stash name: "deb-files", includes: "deb_dist/*.deb"
}
}
stash name: "deb-files", includes: "deb_dist/*.deb"
}
}
@@
-23,6
+32,8
@@
pipeline {
steps {
unstash "deb-files"
sh '''
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/
mkdir -p pool/osmclient
mv deb_dist/*.deb pool/osmclient/
mkdir -p dists/unstable/osmclient/binary-amd64/