Skip to content

Commit

Permalink
Merge pull request #265 from simaishi/create_ref_link
Browse files Browse the repository at this point in the history
Create ref symlink for release build
  • Loading branch information
carbonin authored Apr 26, 2018
2 parents 82ae7bb + 40a51ed commit 173c49f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/vmbuild.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,11 @@ def verify_run(output)
$log.info `ssh #{FILE_SERVER_ACCOUNT}@#{FILE_SERVER} "#{ssh_cmd}"`
end

# Also create relese ref symlink (e.g. gaprindashvili-1)
if cli_options[:type] == "release"
result = FileUtils.ln_s(directory_name, stream_directory.join(cli_options[:reference]), :verbose => true)
$log.info("Created release ref link: #{result}")
end

Build::Uploader.upload(destination_directory, cli_options[:type]) if cli_options[:upload]
end

0 comments on commit 173c49f

Please sign in to comment.