update Makefile, pep8, scaling
- updated Makefile for build using virtualenv
- add requirements.txt for testing
- fix pep8 errors
- adding ability to scale an ns
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..117749d
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,24 @@
+node {
+ stage("Checkout") {
+ checkout scm
+ }
+ stage("Test") {
+ sh 'make test'
+ }
+ stage("Build") {
+ sh 'make package'
+ stash name: "deb-files", includes: "deb_dist/*.deb"
+ }
+ stage("Repo Component") {
+ releaseDir = "ReleaseTWO"
+ unstash "deb-files"
+ sh '''
+ mkdir -p pool/osmclient
+ mv deb_dist/*.deb pool/osmclient/
+ mkdir -p dists/${releaseDir}/unstable/osmclient/binary-amd64/
+ apt-ftparchive packages pool/osmclient > dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
+ gzip -9fk dists/${releaseDir}/unstable/osmclient/binary-amd64/Packages
+ '''
+ archiveArtifacts artifacts: "dists/**,pool/osmclient/*.deb"
+ }
+}