HTML-отчет Jenkins успешно опубликован в журнале, но не отображается в левой части меню страницы сборки Jenkins. - PullRequest
0 голосов
/ 26 октября 2018

журнал показывает успешную публикацию отчета в формате HTML, но не отображается на странице сборки Jenkins.но я смог увидеть вчера, возможно, я сделал небольшие изменения в коде, это приведет к исчезновению отчета HTML?другие отчеты HTML все еще доступны, только несколько определенных отчетов HTML не появляются, но журнал в порядке.Есть идеи?

LOG:

[Pipeline] publishHTML [htmlpublisher] Архивация отчетов HTML ... [htmlpublisher] Архивация на уровне BUILD / opt / jenkins_slave / workspace /xxxxx / target / site / jacoco / testng to / var / jenkins_home / jobs / xxxx-service / филиалы / development / builds / 615 / htmlreports / Coverage_Report_for_Integrated_Testing_ (TestNG) [конвейер] sh

код Дженкинса:

  steps {     
                unstash "${microServiceName}_sonarqube"  
                configFileProvider([configFile(fileId: 'xxxxx', variable: 'xxxxxx')]) {  
                     withSonarQubeEnv('SonarQube') {         
                      sh "mvn -f ${microServiceName}/pom.xml -s $xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true  jacoco:dump -Djacoco.destFile=target/jacoco-testng.exec -Djacoco.address=${jacoco_dump_node_ip} -Djacoco.port=${jacoco_dump_node_port} "                    

                      sh "mvn -f ${microServiceName}/pom.xml -s $xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true jacoco:report@testng-coverage-report -Djacoco.dataFile=target/jacoco-testng.exec"

                      publishHTML([allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "${microServiceName}/target/site/jacoco/testng", reportFiles: 'index.html', reportName: 'Coverage Report for Integrated Testing (TestNG)', reportTitles: 'Code Coverage (Jacoco) Report for Integrated Testing (TestNG)'])  

                      sh "mvn -f ${microServiceName}/pom.xml -s $xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true jacoco:merge@merge"

                      sh "mvn -f ${microServiceName}/pom.xml -s $xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true jacoco:report@consolidated-coverage-report -Djacoco.dataFile=target/jacoco-consolidated.exec"

                      publishHTML([allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "${microServiceName}/target/site/jacoco/consolidated", reportFiles: 'index.html', reportName: 'Consolidated Coverage Report (TestNG + JUnit)', reportTitles: 'Consolidated Coverage Report (TestNG + JUnit)'])  

                      sh "mvn -f ${microServiceName}/pom.xml -s $xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true sonar:sonar -Dsonar.jacoco.reportPaths=target/jacoco-consolidated.exec"                       
                     }
                }  
        }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...