亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關于 Jenkins 生成 NAN% 和 null 報告 URL 的 Allure 報告

關于 Jenkins 生成 NAN% 和 null 報告 URL 的 Allure 報告

智慧大石 2022-08-27 13:54:50
關于 Jenkins 生成 NAN% 和 null 報告 URL 的 Allure 報告。我下面有一個管道,它正在生成有關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 existsReport successfully generated to /Users/john/.jenkins/null/test/allure-reportAllure report was successfully generated.Creating artifact for the build.Artifact was added to the build.
查看完整描述

1 回答

?
皈依舞

TA貢獻1851條經驗 獲得超3個贊

您正在創建一個位于工作區內的目錄。出于這個原因,allure沒有找到結果,你可以做這樣的事情:dir("${env.HOME}/app"){...}

檢查路徑是否正確,但這將是一個示例:

results: [[path: '$WORKSPACE/${env.HOME}/app/target/allure_results']]


查看完整回答
反對 回復 2022-08-27
  • 1 回答
  • 0 關注
  • 287 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號