报错信息:
Error when executing always post condition: ru.yandex.qatools.allure.jenkins.exception.AllurePluginException: Can not find any allure commandline installation. at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.getCommandline(AllureReportPublisher.java:349) at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:303) at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:231) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
问题描述:
windows下,报错截图如上:
该类问题一般都是allure环境没有配置好,
一、首先检查本地是否已安装了allure
检查办法:cmd命令行下,输入:
allure --version
如下图说明已安装了,没有安装的,pip安装一下即可:pip install allure
二、jenkins下是否已安装了allure,安装步骤如下:
1.系统管理 - > go to plugin manager,如下图:
三、检查Jenkins全局工具配置中,Allure Commandline是否做了配置,是的,你没看错,Jenkins安装了allure插件,这里还是需要配置一下,不然就会报上述错五,本人碰到的就是这类情况,操作如下:
选择 “系统管理” ->全局工具配置,配置如下:
然后再跑一遍jenkins pipeline job就跑成功了。
如果不足之处欢迎指正,共同学习进步~