首页 > 解决方案 > 詹金斯返回“魅力”不是内部或外部命令,但是当我在本地运行时它运行成功

问题描述

下面是我的 Allure 命令行代码,它在我的本地成功运行但在 Jenkins 中失败。Jenkins 返回 'allure' 未被识别为内部或外部命令、可运行程序或批处理文件。

 var process = require('../Packages/Process/node_modules/process');
 process.chdir('../Report_File/Output_Reports/Allure_Report');//goes into the Allure_Report folder
 await shell.exec('allure generate ' +'Allure_XML_results'+  ' --clean -o Allure_HTML_report'); 

请帮助我该怎么做才能让它在我的詹金斯上运行。

提前致谢..!

标签: jenkinsallure

解决方案


推荐阅读