Commit 5efdc79d authored by John Jarvis's avatar John Jarvis

Address review comments

parent 8aebca12
......@@ -164,7 +164,7 @@ create-auto-deploy-branches:
<<: *with-bundle
stage: automation
script:
- bundle exec rake auto_deploy:create_branches
- bundle exec rake auto_deploy:prepare
only:
refs:
- schedules
......
......@@ -20,8 +20,8 @@ unless ENV['CI'] || Rake.application.top_level_tasks.include?('default') || Rele
end
namespace :auto_deploy do
desc "Create auto-deploy branches from the latest green commit on gitlab-ee and omnibus-gitlab"
task :create_branches do
desc "Prepare for auto-deploy by creating branches from the latest green commit on gitlab-ee and omnibus-gitlab"
task :prepare do
pipeline_id = ENV['CI_PIPELINE_IID']
abort('CI_PIPELINE_IID must be set for this rake task'.colorize(:red)) unless pipeline_id
ReleaseTools::Services::AutoDeployBranchService.new(pipeline_id).create_auto_deploy_branches!
......
......@@ -20,7 +20,7 @@ module ReleaseTools
@commit_list ||= @client.commits(
@project.path,
per_page: 1,
sha: 'master'
ref_name: 'master'
)
end
......
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