Update xpath of reIndex link for Multibranch Pipelines

This issue is archived. You can view it, but you can't modify it. Learn more

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"]

            Assignee:
            Unassigned
            Reporter:
            Ali Kord
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: