diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-12 00:16:08 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-12 00:16:08 -0800 |
commit | 8f60b094a04938a26c0bf73b0d8a855abb57504d (patch) | |
tree | e344ba15b94f49d6755d40f334bc3294acb7884f /app/models/commit.rb | |
parent | 675b52ad5a21ef944a001ae83587a04b1dde1b91 (diff) | |
download | gitlab-ci-8f60b094a04938a26c0bf73b0d8a855abb57504d.tar.gz |
Write tag name into build
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 13630bc..5720b26 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -105,10 +105,11 @@ class Commit < ActiveRecord::Base end end - def create_builds_for_tag + def create_builds_for_tag(tag_name = '') project.jobs.where(build_tags: true).active.map do |job| build = builds.new(commands: job.commands) build.job = job + build.ref = tag_name build.save build end |