Uploaded image for project: 'Xray for Jenkins'
  1. Xray for Jenkins
  2. XRAYJENKINS-122

When importing feature files, the created zip file must just include the folders starting from the path provided

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jenkins R2.4.0
    • Jenkins R2.6.0
    • None
    • UNCOVERED

    Description

      Description

      When importing feature files, the created zip file must just include the folders starting from the path provided.

      Currently, the zip file created before is imported into Jira is created with all the folders from the root. This must be fixed to just include the folders from the path provided in the configuration.

      Pre-conditions

      None

      How to reproduce
      1) Create a new project of any type (freestyle, pipeline, etc...) and run the project (just to create the workspace folder)
      2) Go to the workspace and create the following folders and files (the content is not important)

      workspace/
      ├─ A/
      │  ├─ NOT_INCLUDED.feature
      ├─ B/
      │  ├─ D/
      │  ├─ E/
      │  │  ├─ G/
      │  │  │  ├─ 4.feature
      │  │  ├─ H/
      │  │  │  ├─ 3.feature
      │  │  ├─ I/
      │  │  │  ├─ 5.feature
      │  │  ├─ 2.feature
      │  ├─ F/
      │  ├─ 1.feature
      ├─ C/
      

      3) Add a Xray's Import features build task and import all feature files under the folder "E" (using a relative path)

      Actual result/Attachments

      The zip file will include all folders under the workspace will be included in the zip file (this is wrong). -> We must only include the folder at "B" level or below.
      However, the feature files will only be included if they are under the B folder (correct).

      In the specific case mentioned above, the folder A, B and C must not be in the zip file.

      Version

      • Jenkins' Xray-connector 2.4.0

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            amgt Ana Teixeira
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 1 day, 3 hours Remaining Estimate - 1 hour, 30 minutes
                1h 30m
                Logged:
                Time Spent - 1 day, 3 hours Remaining Estimate - 1 hour, 30 minutes
                1d 3h