1 - Create a JSON file where you will define the key of the Test Set you want to link:
2 - Then, go to Jenkins > Build > Choose the "Execute Windows batch command" option
3- Use this curl command
curl -H "Content-Type: multipart/form-data" -u user:password -F "file=@<featurefilename>.feature" -F "testInfo=@<jsonfilename>.json" "http://<serverURL>/rest/raven/1.0/import/feature?projectKey=<projectKey>" |
curl -H "Content-Type: multipart/form-data" -u user:password -F "file=@<featurefilename>.feature" -F "testInfo=@<jsonfilename>.json" "http://<serverURL>/rest/raven/1.0/import/feature?projectKey=<projectKey>"
Please note:
Importing Cucumber Tests - REST