You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing this example. I almost got it to work....
I have set this up as a repo in BitBucket Cloud, and am executing it with a Jira Cloud instance.
I have a single test that the pipeline is running, and each pipeline execution adds a test execution with this single testrun indeed, as expected. but the status of the testrun is 'TO DO'.
In Bitbucket, I have configured the pipeline as per the code given here ([https://docs.getxray.app/display/XRAYCLOUD/Integration+with+Bitbucket+Pipelines#IntegrationwithBitbucketPipelines-Cucumberexample] ) --> under the section cucumber example
I am not sure if the problem, is with this project or with XRAY?
Thanks for providing this example. I almost got it to work....
I have set this up as a repo in BitBucket Cloud, and am executing it with a Jira Cloud instance.
I have a single test that the pipeline is running, and each pipeline execution adds a test execution with this single testrun indeed, as expected. but the status of the testrun is 'TO DO'.
In Bitbucket, I have configured the pipeline as per the code given here ([https://docs.getxray.app/display/XRAYCLOUD/Integration+with+Bitbucket+Pipelines#IntegrationwithBitbucketPipelines-Cucumberexample] ) --> under the section cucumber example
I am not sure if the problem, is with this project or with XRAY?
More details:
The yml file to run the bitbucket is this:
`# This is a sample build configuration for Ruby.
Check our guides at https://confluence.atlassian.com/x/8r-5Mw for more examples.
Only use spaces to indent your .yml configuration.
-----
You can specify a custom docker image from Docker Hub as your build environment.
image: ruby:2.6
pipelines:
default:
- step:
caches:
- bundler
script: # Modify the commands below to build your repository.
- |
apt-get update -qq
apt-get install unzip
gem install cucumber
gem install rspec-expectations
export token=$(curl -H "Content-Type: application/json" -X POST --data "{ "client_id": "$client_id","client_secret": "$client_secret" }" https://xray.cloud.getxray.app/api/v1/authenticate| tr -d '"')
curl -H "Content-Type: application/json" --output features/features.zip -X GET -H "Authorization: Bearer ${token}" "https://xray.cloud.getxray.app/api/v2/export/cucumber?keys=$cucumber_keys"
rm -f features/*.feature
unzip -o features/features.zip -d features/
cucumber -x -f json -o data.json
curl -H "Content-Type: application/json" -X POST -H "Authorization: Bearer ${token}" --data @data.json https://xray.cloud.getxray.app/api/v1/import/execution/cucumber
echo "done"
definitions:
caches:
bundler: ./vendor`
The text was updated successfully, but these errors were encountered: