Sauce OnDemand Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID sauce-ondemand Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.83
Apr 19, 2014
1.476
javadoc (version:1.0)
copy-to-slave (version:1.4)
maven-plugin (version:1.467)
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
n/a (id: ross)
Usage Installations 2013-Apr 282
2013-May 318
2013-Jun 301
2013-Jul 335
2013-Aug 359
2013-Sep 365
2013-Oct 388
2013-Nov 397
2013-Dec 396
2014-Jan 460
2014-Feb 519
2014-Mar 525

This plugin allows you to integrate Sauce Selenium Testing with Jenkins. Specifically, you can:

  • Automate the setup and tear down of Sauce Connect
  • Integrate the Sauce OnDemand results videos per test

Configuration

After installing a plugin, specify your Sauce OnDemand access credentials in the system configuration page as follows:

Once this is set, on each job configuration page, you can tell Jenkins to launch a Sauce Connect instance for the duration of the build. For more details about the concept of SSH tunnel in the context of Sauce OnDemand, see the documentation.
Unable to render embedded object: File (sauce-job-settings) not found.

Embedded Test Reports

You can show an embedded Sauce OnDemand test report on the test result pages in Jenkins. To enable this, check 'Embed Sauce OnDemand reports' as part of the 'Publish JUnit test result report section'. 

In addition, you will need to output the following line to your for each test that is run using Sauce OnDemand:

SauceOnDemandSessionID=YOUR_SESSION_ID job-name=YOUR_JOB_NAME

where YOUR_SESSION_ID is the SeleniumRC/WebDriver session id and YOUR_JOB_NAME is the name of the test being executed.

Issue Tracking

Please raise any issues you find with the plugin or requests for additional features within the plugin's Jira instance.

Changelog

Version 1.83

  • Use Jenkins proxy information to retrieve list of supported browsers from Sauce Labs

Version 1.80

  • Use latest version of Sauce Connect (both v4 and v3)

Version 1.74

  • Add support for Sauce Connect version 4

Version 1.68

  • Use Jenkins proxy settings when retrieving list of supported browsers from Sauce Labs

Version 1.67

  • Only display the Sauce badge for the applicable build. Set the pass/fail status based on the test result, not the Jenkins build

Version 1.66

  • Performance improvements for parsing and updating jobs

Version 1.65

  • Provide support for specifying Sauce build parameters. Use Jenkins proxy settings when calling Sauce REST API. Resized embedded Sauce report.

Version 1.64

  • Added some extra logging (no new functionality)

Version 1.63

  • Added some extra logic to ensure that Sauce reports are displayed within project/build result pages

Version 1.62

  • Attempt to use username and access key set at main config if no build action available

Version 1.61

  • Return a report if the list if IDs is found without needing the REST API

Version 1.60

  • Use proxy settings set within Jenkins configuration when performing calls to Sauce REST API

Version 1.59

  • Only update metadata for Sauce Jobs if no data already exists on job

Version 1.58

  • Ensure that pass/fail status is only set if it hasn't already been set

Version 1.57

  • Bumped ci-sauce version

Version 1.56

  • Included updates to UI labels
  • Bumped ci-sauce version to fix https protocol issues

Version 1.55

  • Resolve NullPointerException error

Version 1.54

  • Set the pass/fail status based on the build status

Version 1.53

  • Set pass/fail status for all jobs parsed by the plugin

Version 1.52

  • Ensure that logParserMap is not null when decorating logger

Version 1.51

  • JENKINS-17303 Resolve NPE when navigating to non-Sauce projects

Version 1.50

  • Handle null logParser

Version 1.49

  • Use latest version of Sauce Connect

Version 1.48

  • Added Sauce job summary table to project page. Pass through command options to Sauce Connect

Version 1.47

  • Handle null browser when outputting browser JSON

Version 1.46

  • Use latest version of Sauce Connect

Version 1.45

  • Handle null browser

Version 1.44

  • Fixed errors with test connection function

Version 1.43

  • Ensure that spaces aren't used for directories created by multi-config projects

Version 1.42

  • Include Sauce build status badges in Jenkins dashboard list

Version 1.41

  • Updated logic which compared test name with Sauce job

Version 1.40

  • Ensure log parsing is thread safe

Version 1.39

  • Add name column to results table

Version 1.38

  • Use raw platform string as SELENIUM_PLATFORM environment variable

Version 1.37

  • Store build variables set by multi configuration projects as environment variables

Version 1.36

  • Include username and access key in SELENIUM_DRIVER environment variable

Version 1.35

  • Handle invalid characters as part of the base64 encoding of the Sauce REST authentication

Version 1.34

  • For Maven Jenkins projects, store the parent's build number against the Sauce Job using the Sauce REST API

Version 1.33

  • Remove non-alphanumeric characters from the build number stored against the Sauce Job

Version 1.32

  • Invoke the Sauce REST API to find jobs run against a specific build number when displaying the embedded Job results

Version 1.31

Version 1.30

  • Fall back to using InetAddress.getLocalHost() if Computer.currentComputer().getHostName() returns null when storing the SELENIUM_HOST environment variable

Version 1.29

  • Changed Jenkins parent version to 1.439 to cater for Cloudbees Jenkins version

Version 1.28

Version 1.27

  • Included ability to display links to Sauce jobs on the build summary page

Version 1.26

Version 1.25

Version 1.24

Version 1.23

Version 1.22

  • Changed code that handles displaying the embedded Sauce OnDemand results to reference https://saucelabs.com

Version 1.21

  • Updated logic used to close Sauce Connect process

Version 1.20

Version 1.19

Version 1.18

Version 1.17

  • Restored Jenkins version dependency to 1.439

Version 1.16

  • Made variables used by log parser transient so that serialisation errors are resolved

Version 1.15

  • Included an option to specify whether to run Sauce Connect on the Slave or Master node

Version 1.14

Version 1.13

Version 1.12

  • Set the working directory when invoking Sauce Connect. The working directory can be set via the Adminstration interface, and will default to the user home directory if not set.

Version 1.11

  • Updated plugin to provide better support for multi-configuration jobs. The plugin will now launch a single instance of Sauce Connect per user. That is, if a multi-configuration Job is configured to run using multiple browsers, then only one Sauce Connect instance will be launched for the Jobs.
  • The plugin now also allows the user to specify the browser(s) to be used on the Job level.  If multiple browsers are selected, then they will be included in JSON format in a SAUCE_ONDEMAND_BROWSERS environment variable
  • Resolved JENKINS-12880 and JENKINS-12741

Version 1.10

Version 1.9

Version 1.8

  • Rebuilt plugin to include a missing dependency

Version 1.7

  • Updated plugin to reference Sauce CI library, which is logic common across the Jenkins and Bamboo plugins

Version 1.6

  • Integrated Sauce Connect 2 into the plugin
  • The plugin will also perform a check to see if a later version of Sauce Connect is available, which can be updated via the Administration interface

Version 1.5

  • Replaced video and server logs with embedded Sauce OnDemand reports.
  • Upload job information after the build (job name, build number, pass/fail status). This requires selenium-client-factory 1.3.

Version 1.4 (Oct 1, 2010)

  • Extended the time out (until the tunnel endpoint comes up) from 3 minutes to 5 minutes.

Version 1.3 (Sep 1, 2010)

  • Added a custom axis for the matrix projects to choose different browsers. This works in combination with selenium client factory.
  • You can now capture video and server logs into Hudson and watch them from within Hudson

Version 1.2

  • This plugin enables Hudson to manage SSH tunnels.

Labels

Edit
plugin-buildwrapper plugin-buildwrapper Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment