<%= form_tag rerun_job_with_options_path do |f| %>
Re-run job
If this job is part of a pipeline, that pipeline would not know about the new job you are running.
If you want to update your pipeline results, please re-run the pipeline instead.
The inputs and parameters will be the same as the current job.
Thus, the new job will not reflect any changes made to the pipeline that initiated this job.
<%= radio_button_tag(:script, "use_same", true) %>
<%= label_tag(:script_use_same, "Use same script version as this run") %>
Use the same script version as the current job.
<% if !job_info['supplied_script_version'].nil? and
!job_info['supplied_script_version'].empty? and
job_info['supplied_script_version'] != job_info['script_version'] %>
<%= radio_button_tag(:script, "use_latest") %>
<%= label_tag(:script_use_latest, "Use latest script version") %>
Use the current commit indicated by '<%=job_info['supplied_script_version']%>' in the '<%=job_info['repository']%>' repository.