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

TAP plugin requires dot in TAP output filename

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      TAP output files are matched with the pattern "*/.*" (TapPublisher.java:481 in tap-1.24), but on many platforms this only matches filenames containing a dot. Files without a dot in their name are correctly copied to tap-master-files, but are then ignored by the parser.

        Attachments

          Activity

          Hide
          gd_sfc Gregor Dick added a comment -

          The pattern has been interpreted as a formatting directive. It was of course "*/.*".

          Show
          gd_sfc Gregor Dick added a comment - The pattern has been interpreted as a formatting directive. It was of course "* / .*" .
          Hide
          gd_sfc Gregor Dick added a comment -

          Apparently preformatted text is not immune either... that's two stars, slash, star dot star.

          Show
          gd_sfc Gregor Dick added a comment - Apparently preformatted text is not immune either... that's two stars, slash, star dot star.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Sorry for the delay to look into this Gregor Dick

          I remember merging a pull request where the contributor changed that pattern, to use [ant like patterns](https://ant.apache.org/manual/dirtasks.html).

          Just tested and confirmed it has been fixed. Created a freestyle job, with the following shell producing tap streams.

          cat > myfilewithnoextension <<EOF
          1..2
          ok 1
          ok 2 # a comment
          EOF
          
          cat > anotherfile <<EOF
          1..1
          ok 1
          EOF
          

          Then added the tap plug-in post build step, with the following pattern to find test results: **/file. Worked as expected.

          Show
          kinow Bruno P. Kinoshita added a comment - Sorry for the delay to look into this Gregor Dick I remember merging a pull request where the contributor changed that pattern, to use [ant like patterns] ( https://ant.apache.org/manual/dirtasks.html ). Just tested and confirmed it has been fixed. Created a freestyle job, with the following shell producing tap streams. cat > myfilewithnoextension <<EOF 1..2 ok 1 ok 2 # a comment EOF cat > anotherfile <<EOF 1..1 ok 1 EOF Then added the tap plug-in post build step, with the following pattern to find test results: **/ file . Worked as expected.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Attached screen shot of the successfully generated test result page, for the scenario described above.

          You can use 2.0, which supports the pipeline-plugin, and has also this fix

          Show
          kinow Bruno P. Kinoshita added a comment - Attached screen shot of the successfully generated test result page, for the scenario described above. You can use 2.0, which supports the pipeline-plugin, and has also this fix
          Hide
          gd_sfc Gregor Dick added a comment -

          Great, thanks very much! An upgrade to 2.0 was on my to-do list, so now I have more motivation!

          Show
          gd_sfc Gregor Dick added a comment - Great, thanks very much! An upgrade to 2.0 was on my to-do list, so now I have more motivation!
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Great. Hope everything goes smoothly while upgrading your instance. Worth remembering that a test bed server is recommended though I try to avoid breaking (too much) backward compatibility, it's quite easy to forget some XML field serialization handling in Jenkins API, and crash a server. In case you have troubles, just drop me a note, file an new issue, or comment here

          Show
          kinow Bruno P. Kinoshita added a comment - Great. Hope everything goes smoothly while upgrading your instance. Worth remembering that a test bed server is recommended though I try to avoid breaking (too much) backward compatibility, it's quite easy to forget some XML field serialization handling in Jenkins API, and crash a server. In case you have troubles, just drop me a note, file an new issue, or comment here
          Hide
          kinow Bruno P. Kinoshita added a comment -

          2.0.1 released

          Show
          kinow Bruno P. Kinoshita added a comment - 2.0.1 released

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            gd_sfc Gregor Dick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: