summaryrefslogtreecommitdiff
path: root/omnibus/jenkins/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'omnibus/jenkins/build.bat')
-rw-r--r--omnibus/jenkins/build.bat36
1 files changed, 36 insertions, 0 deletions
diff --git a/omnibus/jenkins/build.bat b/omnibus/jenkins/build.bat
new file mode 100644
index 0000000000..bbcda327b7
--- /dev/null
+++ b/omnibus/jenkins/build.bat
@@ -0,0 +1,36 @@
+SETLOCAL
+
+ECHO %OMNIBUS_PROJECT_NAME%
+
+if "%OMNIBUS_PROJECT_NAME%"=="" (
+ ECHO "OMNIBUS_PROJECT_NAME environment variable is not set!"
+ EXIT /B 1
+)
+
+IF "%CLEAN%"=="true" (
+ rmdir /Q /S c:\opscode
+ rmdir /Q /S c:\omnibus-ruby
+ rmdir /Q /S .\pkg
+)
+
+set PATH=C:\Ruby193\bin;%PATH%
+set SSL_CERT_FILE=C:\Ruby193\ssl\certs\cacert.pem
+
+call bundle install --without development || GOTO :error
+
+IF "%RELEASE_BUILD%"=="true" (
+
+ call bundle exec omnibus build %OMNIBUS_PROJECT_NAME% -l internal --override append_timestamp:false || GOTO :error
+
+) ELSE (
+
+ call bundle exec omnibus build %OMNIBUS_PROJECT_NAME% -l internal || GOTO :error
+
+)
+
+GOTO :EOF
+
+:error
+ECHO Failed with error level %errorlevel%
+
+ENDLOCAL