maxPoll="200"
username="${env.SF_USERNAME}"
password="${env.SF_PASSWORD}"
serverurl="${env.SF_SERVERURL}"
<% if target.match(/retrieve/) -%>
retrieveTarget="${env.SF_SRC_DIR}"
unpackaged="${env.SF_SRC_DIR}/package.xml"
<% end -%>
<% if target.match(/deploy|check/) -%>
deployRoot="${env.SF_SRC_DIR}"
rollbackOnError="true"
<% end -%>
<% if @check_only -%>
checkOnly="true"
<% end -%>
<% if @run_all_tests -%>
runAllTests="true"
testLevel="RunLocalTests"
<% end -%>
<% if !@run_tests.empty? -%>
testLevel="RunSpecifiedTests"
<% end -%>
<% if !@check_only -%>
<% end -%>
>
<% @run_tests.each do |test| -%>
<%= test %>
<% end -%>
>