ExportXMLWordPrintable

      Using Jenkins Pipeline syntax for execution stage as per below, the Jenkins job is getting the error, "Unknown parameter(s) found for class type 'com.saucelabs.jenkins.pipeline.SauceConnectStep': useLatestSauceConnect".

       

      stage('Saucelabs test trigger') {
        steps {
          sauce(credentialsId: 'sauceid') {
            #Open the Sauce Connection
            sauceconnect(optionsSC5: "--tls-passthrough-domains ^.*\\.mytest.com\$ --tunnel-domains ^.*\\.(mytest.com)\$  --tunnel-pool --tunnel-name ${TUNNEL_NAME}", sauceConnectPath: '', useLatestSauceConnect: true, verboseLogging: true) {
              sh '''  
              echo "Sauce Connect is Success"
              cd ${WORKSPACE}
              npm run ${TENVIRONMENT} -- --suite ${TESTSUITE} --service ${SERVICE} --browserName ${BROWSERNAME}
              '''
      }}}

      I've checked Sauce Labs documentation (https://docs.saucelabs.com/basics/integrations/jenkins/) but there is no mention on how to configure "useLatestSauceConnect" for pipeline script.

      What is the correct way to enable "useLatestSauceConnect"?

            Assignee:
            Yeh Fang
            Reporter:
            Victor T
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: