为了账号安全,请及时绑定邮箱和手机立即绑定

通过管道脚本生成诱惑报告时,hudson.FilePath 丢失错误

通过管道脚本生成诱惑报告时,hudson.FilePath 丢失错误

守着一只汪 2021-10-19 15:11:53
我向管道添加了新阶段:stage('reports') {    steps {    script {            allure([                    includeProperties: false,                    jdk: '',                    properties: [],                    reportBuildPolicy: 'ALWAYS',                    results: [[path: 'target/allure-results']]            ])        }    }}但作业失败并出现错误:hudson.remoting.ProxyException: org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing    at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:260)    at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262)Caused: hudson.remoting.ProxyException: org.codehaus.groovy.runtime.InvokerInvocationException: org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing测试是写在 Python 和 xml 上生成的报告,但不是诱惑报告。你能帮我解决这个错误吗?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 550 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号