Issue Type: Bug Bug
Affects Versions: current
Assignee: Kohsuke Kawaguchi
Components: sauce-ondemand
Created: 29/May/14 8:23 AM
Description:

I am not getting job-name updated on SauceLabs. Also the build name is off.

My job logs have something like this:
2014-05-29 01:00:35 INFO MyTest:10 - SauceOnDemandSessionID=2[...]4 job-name=com.test.MyTest

But in plugin's log I see:

May 29, 2014 12:59:24 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction hasSauceOnDemandResults
Inside hasSauceOnDemandResults v1.64
May 29, 2014 12:59:24 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction hasSauceOnDemandResults
Checking to see if project has Sauce results
May 29, 2014 12:59:24 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction hasSauceOnDemandResults
Found Sauce results
May 29, 2014 12:59:27 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction hasSauceOnDemandResults
Inside hasSauceOnDemandResults v1.64
May 29, 2014 12:59:27 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction hasSauceOnDemandResults
Checking to see if project has Sauce results
May 29, 2014 12:59:27 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandProjectAction getSauceBuildActions
No Sauce Build Action found for myJenkinsJob #595 adding a new one
May 29, 2014 12:59:28 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper setUp
Setting up Sauce Build Wrapper
May 29, 2014 12:59:28 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$1 buildEnvVars
Creating Sauce environment variables
May 29, 2014 1:00:39 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper processBuildOutput
Adding build action to myJenkinsJob #595
May 29, 2014 1:00:39 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher processBuildOutput
Adding build action to myJenkinsJob/com.company:git-repo #595
May 29, 2014 1:00:39 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandBuildAction retrieveJobIdsFromSauce
Performing Sauce REST retrieve results for myJenkinsJob__595
May 29, 2014 1:00:41 AM INFO hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher processBuildOutput

Notice how the build name differs in SauceOnDemandReportPublisher (wrong one - with "/com.company:git-repo" appended) vs SauceOnDemandBuildWrapper (correct one).

And finally, when the plugin performs the REST update - not only does it set the build number to a wrong name, but also does not set the job name.
Here's the sample JSON body for an update:

{"passed":true,"build":"myJenkinsJob_com_company_git_repo__595","public":true}

This used to work for me back in 1.74 I think. I do not remember any changes in between that could have broken this on our end.

Environment: Jenkins ver. 1.565 / plugin version 1.87
Project: Jenkins
Priority: Major Major
Reporter: Michał Matyjek
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to