Commit ee5dedad by Calen Pennington

Revert "Use git to get the branch name and commit number, rather than incoming…

Revert "Use git to get the branch name and commit number, rather than incoming environment variables"

This reverts commit d6a57558.
parent d6a57558
...@@ -10,8 +10,8 @@ DEPLOY_DIR = "/opt/packages" ...@@ -10,8 +10,8 @@ DEPLOY_DIR = "/opt/packages"
PACKAGE_NAME = "mitx" PACKAGE_NAME = "mitx"
LINK_PATH = "/opt/wwc/mitx" LINK_PATH = "/opt/wwc/mitx"
VERSION = "0.1" VERSION = "0.1"
COMMIT = `git rev-parse HEAD`.chomp()[0, 10] COMMIT = (ENV["GIT_COMMIT"] || `git rev-parse HEAD`).chomp()[0, 10]
BRANCH = `git symbolic-ref -q HEAD`.chomp().gsub('refs/heads/', '').gsub('origin/', '').gsub('/', '_').downcase() BRANCH = (ENV["GIT_BRANCH"] || `git symbolic-ref -q HEAD`).chomp().gsub('refs/heads/', '').gsub('origin/', '').gsub('/', '_').downcase()
BUILD_NUMBER = (ENV["BUILD_NUMBER"] || "dev").chomp() BUILD_NUMBER = (ENV["BUILD_NUMBER"] || "dev").chomp()
if BRANCH == "master" if BRANCH == "master"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment