-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Hey there,
I'm willing to use the Sauce Labs European data center and according to this documentation I should be able to configure the saucePublisher step by setting SAUCE_REST_ENDPOINT environment variable (which seems right according to the source code). However, I'm unable to succeed so far.
Using the following pipeline...
pipeline { agent 'any' environment { SAUCE_REST_ENDPOINT = "https://eu-central-1.saucelabs.com" SAUCE_CREDENTIALS = credentials('sauce-labs') } stages { stage('Run') { steps { sauce('sauce-labs') { sh 'echo "SauceOnDemandSessionID=1234567890abdcefghijklmnopqrstuv job-name=test"' } } post { always { saucePublisher() } } } } }
... the saucePublisher step produces the following log entry:
Error retrieving Sauce Results
java.io.FileNotFoundException: https://saucelabs.com/rest/v1/USERNAME/jobs/1234567890abdcef
Note that the base URL is https://saucelabs.com instead of https://eu-central-1.saucelabs.com.