lib/vx/builder/script_builder/prepare.rb in vx-builder-0.4.0 vs lib/vx/builder/script_builder/prepare.rb in vx-builder-0.5.0
- old
+ new
@@ -38,20 +38,20 @@
i << upload_sh_command(git_ssh_file, git_ssh)
i << "chmod 0750 #{git_ssh_file}"
i << "export GIT_SSH=#{git_ssh_file}"
- i << scm.fetch_cmd
+ i << "#{scm.fetch_cmd} || exit 1"
i << "unset GIT_SSH"
i << 'echo "starting SSH Agent"'
i << 'eval "$(ssh-agent)" > /dev/null'
i << "ssh-add $VX_PRIVATE_KEY 2> /dev/null"
i << "cd #{repo_path}"
i << 'echo "download latest version of vxvm"'
- i << "curl --fail --silent --show-error https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm > $VX_ROOT/bin/vxvm"
+ i << "curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm"
i << "chmod +x $VX_ROOT/bin/vxvm"
end
env.after_script_init.tap do |i|
i << 'export VX_ROOT=$(pwd)'