Forum Discussion
DavidL
4 years agoStaff
Can you try
curl -X POST https://mycompany.atlassian.net/rest/api/1.0/automation/execution/cucumber/FL?autoCreateTestCases=false \
--basic --user my_jira_email:my_jira_password -F "file=@output_results.zip"
- Kilimanjaro913 years agoNew Contributor
Hi DavidL
It said using jira username & password is depreciated, is it possible to use Zephyr scale access token as follows?
curl -X POST https://api.zephyrscale.smartbear.com/v2/automations/executions/cucumber?projectKey=FL&autoCreateTestCases=false -H "Authorization: Bearer my_token_string" -H "Content-type: multipart/form-data" -F "file=@cucumber-html-reports.zip"
However, there is an error in the CI/CD build when I tried the new command line.
- Kilimanjaro913 years agoNew Contributor
- run: name: Zephyr integration command: | zip -r test-results.zip ~/test-results curl -X POST --location --request POST 'https://api.zephyrscale.smartbear.com/v2/automations/executions/cucumber?projectKey=FL&autoCreateTestCases=false' \ --header 'Authorization: Bearer my_token' \ --form 'file=@"test-results.zip"' \ --form 'testCycle="{\"name\":\"my_test_cycle_name\",\"folderId\":my_folder_id}";type=application/json' when: always
I updated the tests successfully. However this will create a new test cycle whenever the build runs
- DavidL3 years agoStaff
Glad to hear that you updated your script successfully.
As of today, we only provide a way to upload results to a new test cycle created when calling the automation endpoint.
We will probably work on enabling the upload of results to an existing cycle later this year.Cheers!
Related Content
- 2 years ago
- 3 years ago
- 4 years ago
- 6 years ago
Recent Discussions
- 16 days ago