jenkinsci / xray-connector-plugin

Xray Test Management Connector for Jenkins
https://plugins.jenkins.io/xray-connector/
MIT License
16 stars 13 forks source link

Unable to update Test Execution #76

Open ivanfernandezetu opened 1 year ago

ivanfernandezetu commented 1 year ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.401.2 OS: Linux - 5.15.0-1039-aws Java: 11.0.19 - Ubuntu (OpenJDK 64-Bit Server VM) --- ace-editor:1.1 amazon-ecs:1.48 antisamy-markup-formatter:159.v25b_c67cd35fb_ apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 atlassian-jira-software-cloud:2.0.7 authentication-tokens:1.53.v1c90fd9191a_b_ aws-codebuild:0.59 aws-credentials:191.vcb_f183ce58b_9 aws-java-sdk:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-cloudformation:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-codebuild:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-ec2:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-ecr:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-ecs:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-efs:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-elasticbeanstalk:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-iam:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-kinesis:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-logs:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-minimal:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-sns:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-sqs:1.12.481-392.v8b_291cfcda_09 aws-java-sdk-ssm:1.12.481-392.v8b_291cfcda_09 blueocean:1.27.4 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.4 blueocean-commons:1.27.4 blueocean-config:1.27.4 blueocean-core-js:1.27.4 blueocean-dashboard:1.27.4 blueocean-display-url:2.4.2 blueocean-events:1.27.4 blueocean-git-pipeline:1.27.4 blueocean-github-pipeline:1.27.4 blueocean-i18n:1.27.4 blueocean-jwt:1.27.4 blueocean-personalization:1.27.4 blueocean-pipeline-api-impl:1.27.4 blueocean-pipeline-editor:1.27.4 blueocean-pipeline-scm-api:1.27.4 blueocean-rest:1.27.4 blueocean-rest-impl:1.27.4 blueocean-web:1.27.4 bootstrap5-api:5.3.0-1 bouncycastle-api:2.29 branch-api:2.1122.v09cb_8ea_8a_724 build-name-setter:2.2.1 build-timeout:1.31 build-user-vars-plugin:1.9 built-on-column:1.4 caffeine-api:3.1.6-115.vb_8b_b_328e59d8 checks-api:2.0.0 chromedriver:1.2 cloudbees-bitbucket-branch-source:809.vc1d904b_30426 cloudbees-credentials:3.3 cloudbees-disk-usage-simple:182.v62ca_0c992a_f3 cloudbees-folder:6.815.v0dd5a_cb_40e0e cobertura:1.17 code-coverage-api:4.7.0 command-launcher:100.v2f6722292ee8 commons-httpclient3-api:3.1-3 commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-36.vc008c8fcda_7b_ compress-artifacts:98.vb_20f3c77ddf7 conditional-buildstep:1.4.2 config-file-provider:938.ve2b_8a_591c596 configuration-as-code:1647.ve39ca_b_829b_42 convert-to-pipeline:1.0 credentials:1254.vb_96f366e7b_a_d credentials-binding:604.vb_64480b_c56ca_ dashboard-view:2.487.vcf0ff9008a_c0 data-tables-api:1.13.4-3 display-url-api:2.3.7 dtkit-api:3.0.2 durable-task:507.v050055d0cb_dd ec2:2.0.7 echarts-api:5.4.0-5 email-ext:2.99 emailext-template:1.5 embeddable-build-status:395.v96b_260870c38 envinject:2.901.v0038b_6471582 envinject-api:1.199.v3ce31253ed13 external-monitor-job:206.v9a_94ff0b_4a_10 favorite:2.4.2 font-awesome-api:6.4.0-1 forensics-api:2.3.0 generic-webhook-trigger:1.86.3 ghprb:1.42.2 git:5.1.0 git-client:4.4.0 git-parameter:0.9.18 git-server:99.va_0826a_b_cdfa_d github:1.37.1 github-api:1.314-431.v78d72a_3fe4c3 github-branch-source:1728.v859147241f49 greenballs:1.15.1 handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 htmlpublisher:1.31 instance-identity:173.va_37c494ec4e5 ionicons-api:56.v1b_1c8c49374e jackson2-api:2.15.2-350.v0c2f3f8fc595 jacoco:3.3.4 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:233.vdc1a_ec702cff javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:66.vd8fa_64ee91b_d jenkins-cloudformation-plugin:201.vd58a_a_f4a_b_75f jenkins-design-language:1.27.4 jersey2-api:2.40-1 jira:3.10 jjwt-api:0.11.5-77.v646c772fddb_0 jquery:1.12.4-1 jquery3-api:3.7.0-1 jsch:0.2.8-65.v052c39de79b_2 junit:1217.v4297208a_a_b_ce ldap:682.v7b_544c9d1512 liquibase-runner:1.4.10 lockable-resources:1172.v4b_8fc8eed570 mailer:457.v3f72cb_e015e5 matrix-auth:3.1.9 matrix-project:789.v57a_725b_63c79 maven-plugin:3.22 mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_ mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_ momentjs:1.1.1 multiselect-parameter:1.5 node-iterator-api:49.v58a_8b_35f8363 okhttp-api:4.11.0-145.vcb_8de402ef81 pam-auth:1.10 parameterized-trigger:2.46 pipeline-build-step:496.v2449a_9a_221f2 pipeline-github-lib:42.v0739460cda_c4 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:656.va_a_ceeb_6ffb_f7 pipeline-input-step:468.va_5db_051498a_4 pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2141.v5402e818a_779 pipeline-model-definition:2.2141.v5402e818a_779 pipeline-model-extensions:2.2141.v5402e818a_779 pipeline-rest-api:2.33 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2141.v5402e818a_779 pipeline-stage-view:2.33 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:3.3.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 prism-api:1.29.0-7 pubsub-light:1.17 rebuild:320.v5a_0933a_e7d61 resource-disposer:0.22 role-strategy:657.v398b_8a_279c49 run-condition:1.6 saferestart:0.7 scm-api:676.v886669a_199a_a_ script-security:1251.vfe552ed55f8d serenity:1.4 sidebar-link:2.2.4 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sonar:2.15 sse-gateway:1.26 ssh-agent:333.v878b_53c89511 ssh-credentials:305.v8f4381501156 ssh-slaves:2.877.v365f5eb_a_b_eec sshd:3.303.vefc7119b_ec23 structs:324.va_f5d6774f3a_d throttle-concurrents:2.14 timestamper:1.25 token-macro:359.vb_cde11682e0c trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb windows-slaves:1.8.1 workflow-aggregator:596.v8c21c963d92d workflow-api:1223.v41b_0279c361a workflow-basic-steps:1017.vb_45b_302f0cea_ workflow-cps:3697.vb_470e454c232 workflow-cps-global-lib:609.vd95673f149b_b workflow-durable-task-step:1247.v7f9dfea_b_4fd0 workflow-job:1316.vd2290d3341a_f workflow-multibranch:756.v891d88f2cd46 workflow-scm-step:415.v434365564324 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c ws-cleanup:0.45 xray-connector:2.6.1 xunit:3.1.2 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu

Reproduction steps

  1. Step 1: Create a Jenkins pipeline for a cucumber workflow.
  2. Step 2: Export feature files from XRay: step([$class: 'XrayExportBuilder', credentialId: '', filePath: 'etu_parent/etu_ai/features', issues: 'AIP-50', serverInstance: 'CLOUD-2c0cdc36-fccd-4d8b-9a93-a80d8e2f8405'])
  3. Step 3: Run the test and generate json report
  4. Step 4: Import the test execution results: step([$class: 'XrayImportBuilder', endpointName: '/cucumber', importFilePath: 'etu_parent/etu_ai//target/serenity-reports/cucumber_report.json', importToSameExecution: 'true', projectKey: 'AIP', testExecKey: 'AIP-193', serverInstance: 'CLOUD-2c0cdc36-fccd-4d8b-9a93-a80d8e2f8405'])

Expected Results

Expecting existing Test Execution 'AIP-193' to be updated with the test results.

Actual Results

New Test Execution is created AIP-194 with the test results

Anything else?

No response