Output auto deploy tag name before tagging Omnibus

parent 3dc8de97
......@@ -53,8 +53,12 @@ module ReleaseTools
omnibus_ref: commit.id
)
project = ReleaseTools::Project::OmnibusGitlab
$stdout.puts "Creating `#{project}` tag `#{tag_name}`".indent(4)
ReleaseTools::GitlabClient.create_tag(
ReleaseTools::Project::OmnibusGitlab,
project,
tag_name,
commit.id
)
......@@ -64,7 +68,7 @@ module ReleaseTools
pipeline_id = ENV.fetch('CI_PIPELINE_ID', 'pipeline_id_unset')
branch_name = "#{ref}-#{pipeline_id}"
$stdout.puts "Creating branch #{branch_name}"
$stdout.puts "Creating `#{project}` branch `#{branch_name}`"
ReleaseTools::GitlabDevClient.create_branch(branch_name, ref, project)
ReleaseTools::Pipeline.new(
......@@ -73,7 +77,7 @@ module ReleaseTools
version_map
).trigger
$stdout.puts "Deleting branch #{branch_name}"
$stdout.puts "Deleting `#{project}` branch `#{branch_name}`"
ReleaseTools::GitlabDevClient.delete_branch(branch_name, project)
end
......
......@@ -69,7 +69,7 @@ describe ReleaseTools::PassingBuild do
service.trigger_build(version_map)
end
it 'tags Omnibus' do
it 'tags Omnibus', :silence_stdout do
commit = double('Commit', id: 'abcdefg')
expect(service).to receive(:update_omnibus)
......
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