我無(wú)法在 Maven 中構(gòu)建存儲(chǔ)。設(shè)置文件丟失。jenkinsfile中有這樣的代碼。如果它不在存儲(chǔ)庫(kù)本身中,它如何引用?幫助我理解 stages { stage("Copying credentials files") { steps { withCredentials([file(credentialsId: 'settings.xml', variable: 'SETTINGS'), file(credentialsId: 'settings-security.xml', variable: 'SETTINGS_SECURITY')]) { bat '''COPY %SETTINGS% %WORKSPACE%''' bat '''COPY %SETTINGS_SECURITY% %WORKSPACE%''' } } } stage("Test") { steps { script { try { bat "mvn clean install -s settings.xml -Dsettings.security=settings-security.xml -DTagConfigFile=${configFile} -DTAGS=${tags}" } catch (err) { currentBuild.result = 'FAILURE' throw err } finally { stage("Allure report") { allure([ commandline : '2.8.0', includeProperties: false, jdk : '', properties : [], reportBuildPolicy: 'ALWAYS', report : 'target/allure-report', results : [[path: 'target/allure-results']] ]) } } } } } }}
為什么 .settings 文件丟失
滄海一幻覺(jué)
2023-09-06 14:52:01