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

Update xpath of reIndex link for Multibranch Pipelines

XMLWordPrintable

      From JENKINS-42581:

      Multibranch pipelines have the option to trigger a re-index and scan again all the branches in the repository.

      While testing the Bitbucket Server Jenkins integration plugin with a Multibranch Pipeline job, when trying to trigger a re-index of branches (from Bitbucket Server SCM) via the WorkflowMultiBranchJob page object, we get a NoSuchElementException because the text() searches currently in the xpaths can't find the re-index link.

      Testing with Jenkins 2.190.1 (run using the jut-server.sh script), the xpath that works in our tests is:

      //div[@class="task"]//*[text()="Scan Multibranch Pipeline Now"]

            Unassigned Unassigned
            alibkord Ali Kord
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: