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

When multiple TAP files with same basename match pattern, only one is processed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • tap-plugin
    • None

    Description

      When multiple TAP files with same filename match pattern, only one is processed.

      Given the pattern:

      test/regression/output/**/testresult.tap

      with files test/regression/output/A/testresult.tap and test/regression/output/B/testresult.tap existing in the workspace, only one of them is processed. This used to work without problems in the past.

      The issue seems to be related to both matches having the same basename, because the following works:

      test/regression/output/**/*-testresult.tap

      matches and processes both test/regression/output/A/A-testresult.tap and test/regression/output/B/B-testresult.tap

      Attachments

        Activity

          There is a process of moving files from slaves to master. In order to ensure the files are always in the right place to be served later by the master, we copy everything from the slave back into the master.

          However, the files are put in the directory, without keeping the existing directories.

          Increased the priority to critical. The fix for this bug should be available by the next weekend.

          Thanks for reporting this bug.

          kinow Bruno P. Kinoshita added a comment - There is a process of moving files from slaves to master. In order to ensure the files are always in the right place to be served later by the master, we copy everything from the slave back into the master. However, the files are put in the directory, without keeping the existing directories. Increased the priority to critical. The fix for this bug should be available by the next weekend. Thanks for reporting this bug.

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/tap4j/plugin/TapPublisher.java
          http://jenkins-ci.org/commit/tap-plugin/50853ef30862775cfa3d21ade4154ea924714c15
          Log:
          [FIXED JENKINS-15907] Fixed critical issue with TAP plugin overwriting files when copying from slave to master.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/tap4j/plugin/TapPublisher.java http://jenkins-ci.org/commit/tap-plugin/50853ef30862775cfa3d21ade4154ea924714c15 Log: [FIXED JENKINS-15907] Fixed critical issue with TAP plugin overwriting files when copying from slave to master.

          Fixed in 1.8. This version will be available from update manager within few hours.

          kinow Bruno P. Kinoshita added a comment - Fixed in 1.8. This version will be available from update manager within few hours.

          People

            kinow Bruno P. Kinoshita
            wolfwolfswinkel Wolf Wolfswinkel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: