Closed RahulAnita closed 2 years ago
Hello Team,
Allure report is unbale to generate when there is some test cases get's failed, but allure report is getting generated successfully when all the test cases get passed.
I am using below groovy script in my pipeline.
**stage('UI-TEST') { when { expression { params.UI_TEST == "YES" } }
steps { checkout([$class: 'GitSCM', branches: [[name: "${GITREF}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ui-test']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'devops_Gitlab-creds', url: 'https://gitlab.com/breeze-framework/qa-automation/ui-automation.git']]]) sh label: '', script: ''' cd ui-test npm install export ui_service_name=${MICROSERVICE_NAME} npx codeceptjs run -c ${ConfigFile} ''' allure includeProperties: false, jdk: '', results: [[path: 'ui-test/output/']] publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: '', reportFiles: '', reportName: 'HTML Report', reportTitles: 'service_ui_test_report']) emailext attachmentsPattern: '', body: ''' Hi Team, Please follow the link below for ui automation test report for ${MICROSERVICE_NAME} on ${ENV}. Report Link : https://jenkins.alizeh.rocks/job/BREEZE-CI-CD-QA/lastSuccessfulBuild/artifact/allure-report.zip Thanks and Regards, Breeze DevOps''', subject: '[IMP] UI Automation Test Report for ${MICROSERVICE_NAME} on ${ENV}', to: 'rahul.tiwari@gmail.com' } }**
My jenkins version is 2.304 and Allure jenkins plugin 2.29.0 and HTML Publisher plugin 1.28
The issue is resolved now.
Hello Team,
Allure report is unbale to generate when there is some test cases get's failed, but allure report is getting generated successfully when all the test cases get passed.
I am using below groovy script in my pipeline.
**stage('UI-TEST') { when { expression { params.UI_TEST == "YES" } }
My jenkins version is 2.304 and Allure jenkins plugin 2.29.0 and HTML Publisher plugin 1.28