lib/sauce/cucumber.rb in sauce-cucumber-3.5.1 vs lib/sauce/cucumber.rb in sauce-cucumber-3.5.2
- old
+ new
@@ -112,13 +112,17 @@
output << "\nSauceOnDemandSessionID=#{session_id}"
# The duplication in the scenario_name comes from the fact that the
# JUnit formatter seems to do the same, so in order to get the sauce
# OnDemand plugin for Jenkins to co-operate, we need to double it up as
# well
+ browser = caps[:browser]
+ version = caps[:browser_version]
+ os = caps[:os]
+
job_name = "job-name=#{Sauce::Capybara::Cucumber.jenkins_name_from_scenario(scenario)}"
- job_name << " (#{browser} #{version} on #{os}" if ENV["TEST_ENV_NUMBER"]
output << job_name
puts output.join(' ')
+ puts " (#{browser} #{version} on #{os})" if ENV["TEST_ENV_NUMBER"]
end
job = SauceWhisk::Job.new('id' => session_id,
'name' => job_name,
'custom-data' => custom_data)