0

trying to generate two allure reports while running jenkins pipeline job in paralled mode. tried to implement solution found here Can't split allure report into suites in jenkins pipeline, but no luck. here is my pipeline code that is working. but allure report shows details on test which lasted longer in terms of execution. is there a possibility to create separate folders for different stages? jenkins is running on remote server and i am unable to create dir for allure-report there. maybe there is a mvn command that i can send in steps where allure-report will store artifacts of test execution or something else? please, advice.

pipeline {
    agent any
    tools {
        maven 'Maven 3.8.6' 
    }    
    stages {
        stage('Run Tests') {
            parallel {
                stage('Test on DEV') {
                    agent {
                        label 'node_02_jdk_17'
                    }
                    steps {
                        cleanWs()
                        git branch: 'develop', credentialsId: 'jenkins_git', url: 'https://Jenking_GIT@...-automated-tests.git'
                        sh "mvn test -P UI -Dtarget.env=develop -Dtest=LogIn"
                        allure includeProperties: false, jdk: '', properties: [[key: 'allure.results.directory', value: 'target/allure-results']], report: 'target/allure-report', results: [[path: 'target/allure-results']]
                    }
                }
                stage('Test on QA') {
                    agent {
                        label 'node_02_jdk_17'
                    }
                    steps {
                        cleanWs()
                        git branch: 'develop', credentialsId: 'jenkins_git', url: 'https://Jenking_GIT@...-automated-tests.git'
                        sh "mvn test -P UI -Dtarget.env=qa -Dtest=LogIn2"
                        allure includeProperties: false, jdk: '', properties: [[key: 'allure.results.directory', value: 'target/allure-results']], report: 'target/allure-report', results: [[path: 'target/allure-results']]
                    }
                }
            }
        }
    }
}
Latest
  • 3
  • 3
  • i understand that allure cannot split parallel execution to generate two different reports. maybe at least allure is able to record results of parallel test executions into single allure report? but in my mind that this is really absurdly sounds :) – Latest Oct 07 '22 at 07:43

0 Answers0