[英]Allure report on Jenkins producing NAN% and null report URL
引誘報告 Jenkins 產生 NAN% 和 null 報告 URL。 我在下面有一個管道,它正在生成關於 URL /null/ 的報告。 在我的目錄中添加 ${env.HOME} 之前它工作正常。 但現在它不起作用
pipeline {
agent {
label {
label ""
customWorkspace "${env.HOME}/test"
}
}
tools {nodejs "node"}
stages {
stage('Checkout App') {
steps {
dir("${env.HOME}/app") {
echo "Building.."
sh 'git pull'
}
// build shopfloor app
dir("${env.HOME}/app") {
sh "/${env.HOME}/test/App.sh"
}
}
}
}
post('Publish Report') {
always {
script {
allure([
includeProperties: false,
jdk: '',
properties: [],
reportBuildPolicy: 'ALWAYS',
results: [[path: 'target/allure_results']]
])
}
}
}
}
它說魅力報告生成於:
allure-results does not exists
Report successfully generated to /Users/john/.jenkins/null/test/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
您正在工作區中使用dir("${env.HOME}/app"){...}
創建一個目錄。 出於這個原因,誘惑沒有找到結果,你可以這樣做:
檢查路徑是否正確,但這將是一個示例:
results: [[path: '$WORKSPACE/${env.HOME}/app/target/allure_results']]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.