system jenkins pipeline
Change-Id: Id6d0f202b1aa39844519271a34369a147fa6fcea
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..26ae7d8
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,19 @@
+// input parameters:
+// boolean: BUILD_FROM_SOURCE
+// string: TAG_OR_BRANCH
+
+node {
+ stage("Checkout") {
+ git branch: 'systest', url: 'https://osm.etsi.org/gerrit/osm/devops'
+ }
+ stage("Build") {
+ from_source = ''
+ if ( params.BUILD_FROM_SOURCE )
+ {
+ from_source = '--source'
+ }
+ container_name=params.TAG_OR_BRANCH.replaceAll(/\./,"")
+
+ sh "jenkins/host/start_build system --build-container osm-${container_name} -b ${params.TAG_OR_BRANCH} ${from_source}"
+ }
+}