Commit a8a4b49d by Calen Pennington

Correctly grab the build number from the environment when packaging

parent b5652552
...@@ -10,7 +10,7 @@ task :package do ...@@ -10,7 +10,7 @@ task :package do
commit = (ENV["GIT_COMMIT"] || `git rev-parse HEAD`).chomp() commit = (ENV["GIT_COMMIT"] || `git rev-parse HEAD`).chomp()
branch = (ENV["GIT_BRANCH"] || `git symbolic-ref -q HEAD`).chomp() branch = (ENV["GIT_BRANCH"] || `git symbolic-ref -q HEAD`).chomp()
branch = branch.gsub('refs/heads/', '').gsub('origin/', '').gsub('/', '_') branch = branch.gsub('refs/heads/', '').gsub('origin/', '').gsub('/', '_')
build_number = (ENV["BRANCH_NUMBER"] || "dev").chomp() build_number = (ENV["BUILD_NUMBER"] || "dev").chomp()
if branch == "master" if branch == "master"
package_name = "mitx" package_name = "mitx"
......
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