Skip to content

Commit

Permalink
Create symlink for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
simaishi committed Apr 26, 2018
1 parent a5613aa commit 40a51ed
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 40a51ed

Please sign in to comment.