Add jenkinsfile to make system buildable in jenkins
With the last few CI breaks, we need a better way to ensure code is
buildable.
Change-Id: Id3dcde921650358b300ebe8ee8c02aa071e90ea3
diff --git a/JenkinsFile b/JenkinsFile
new file mode 100644
index 0000000..6114771
--- /dev/null
+++ b/JenkinsFile
@@ -0,0 +1,23 @@
+#!groovy
+stage 'Debug Build'
+sh '''rm -rf build_debug
+ mkdir build_debug
+ cd build_debug
+ cmake .. -DCMAKE_BUILD_TYPE="Debug"
+ cmake --build .'''
+
+//stage 'Debug Test'
+//sh '''cd build_debug
+// ctest -V --output-on-failure'''
+
+stage 'Release Build'
+sh '''rm -rf build_release
+ mkdir build_release
+ cd build_release
+ cmake .. -DCMAKE_BUILD_TYPE="Release"
+ cmake --build .'''
+
+//stage 'Release Test'
+//sh '''cd build_release
+// ctest -V --output-on-failure'''
+