Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50398

Error when running browserstack jobs in folders

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins ver. 2.107.1
      Folders Plugin 6.4
      BrowserStack 1.0.10

      Jobs in folders get an invalid local identifier passed to the BrowserStack binary, resulting in this error message:

      [BrowserStack] Local: Starting BrowserStack Local...
      FATAL: For security reasons identifier can only have alphanumeric characthers with combination of hiphen(-), underscore(_) and dot(.). Please rename the identifier.
      

      It looks like the buildTag which is passed to the plugin to use as part of the identifier contains a ยป character.

          [JENKINS-50398] Error when running browserstack jobs in folders

          Graham Lyons added a comment -

          Graham Lyons added a comment - Pull request created to fix this: https://github.com/jenkinsci/browserstack-integration-plugin/pull/13

          We've just ran into this too. The job is indeed in a folder.

          Any eta on a fix?

          David Sanftenberg added a comment - We've just ran into this too. The job is indeed in a folder. Any eta on a fix?

          Code changed in jenkins
          User: Kunal Shah
          Path:
          pom.xml
          src/main/java/com/browserstack/automate/ci/jenkins/local/JenkinsBrowserStackLocal.java
          src/test/java/com/browserstack/automate/ci/jenkins/local/JenkinsBrowserStackLocalTest.java
          http://jenkins-ci.org/commit/browserstack-integration-plugin/80169d1368b7bd3a726f34dcee593022f602a9e5
          Log:
          Merge pull request #13 from grahamlyons/JENKINS-50398-jobs-in-folders-fix

          Replace all invalid characters in local identifier

          Compare: https://github.com/jenkinsci/browserstack-integration-plugin/compare/4f1c56d7f544...80169d1368b7
          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kunal Shah Path: pom.xml src/main/java/com/browserstack/automate/ci/jenkins/local/JenkinsBrowserStackLocal.java src/test/java/com/browserstack/automate/ci/jenkins/local/JenkinsBrowserStackLocalTest.java http://jenkins-ci.org/commit/browserstack-integration-plugin/80169d1368b7bd3a726f34dcee593022f602a9e5 Log: Merge pull request #13 from grahamlyons/ JENKINS-50398 -jobs-in-folders-fix Replace all invalid characters in local identifier Compare: https://github.com/jenkinsci/browserstack-integration-plugin/compare/4f1c56d7f544...80169d1368b7 * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

            browserstack BrowserStack Integrations
            grahamlyons Graham Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: