-
Notifications
You must be signed in to change notification settings - Fork 276
Hardcoded saucelabs/Jenkins pipeline env variables don't work with new Jenkins pipeline #272
Comments
if you use Symfony DependencyInjection 3.2+ in your project when running Behat (probably won't work if you use the phar, as it embeds its own version of the component and I think it is older), you may try to use the new |
Yeah - the port is the main problem; and there's no way to change that. I can look into the DI component, but it may be worth updating the plugin/bundle either way, as the Jenkins plugin has been updated :) EDIT: Plus |
We encountered a completely different, but related problem in our usage of Behat with Jenkins Pipelines. Our branches use slashes for separation, and Jenkins escaped the slash inside the environment variables The Selenium2Factory fetches the first two environment variables and puts them into a DI With a branch name of
Our software does not use any Symfony otherwise, this is only related to "behat/mink-extension" version 2.3.1. |
I found this issue: https://github.com/symfony/symfony-standard/issues/1084 It seems like behat/mink-extension is missing to properly escape the strings it is passing into Symfony di. Now this developed into really being a different issue. I will open my own ticket. |
Hi, so we've started using BlueOcean on Jenkins to configure pipelines, which is awesome. However, the SauceLabsFactory and Selenium2Factory have hardcoded values which mean that we have to creatively add configuration to get it to work properly.
Basically, SauceConnect randomly picks an open port, and generates a tunnel identifier, and sticks them in env variables. Changed in v1.142
SaucelabsFactory:L48
- could we useSELENIUM_PORT
if it's set please, as the default in Jenkins is no longer 4445Selenium2Factory:L72
- could we useTUNNEL_IDENTIFIER
if it's set please (as JOB_NAME has spaces, and changes per branch)Currently we get around this by hardcoding a double port, by it's a bit hacky (but in case anyone else experiences the same issue)
Logs:
Command line arguments: /home/jenkins/sc/bin/sc -u username -k **** -P 37501 -P 4445 -i my_hardcoded_tunnel
and then specifying the tunnel-identifier in the
capabilities
configuration.But I would love a proper solution.
The text was updated successfully, but these errors were encountered: