Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jenkins R2.4.0
-
None
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