There are instances when our Sauce OnDemand Plugin for Jenkins does not behave as expected. In order for our Support team to get to the bottom of this, it's useful to not only provide the Jenkins build console output, but also the debug log that can be created by the plugin itself. This is not turned on by default, so you'll need to set it up, and then re-run the problem build to generate the debug log.
- Create a new Log Recorder following the instructions in the official Jenkins documentation.
This screenshot shows an example of the Logger classes needed for the OnDemand plugin.
- Once Log Recorder is created, re-run your build where the issue occured.
- Go back to the Logger page, and copy and send the new logs that were generated.
If using a Jenkins Slave, your log page may minimize the logs produced inside the slave, which need to be expanded before being sent to Sauce Labs Support.