jenkins - 詹金斯返回“魅力”不是内部或外部命令,但是当我在本地运行时它运行成功
问题描述
下面是我的 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');
请帮助我该怎么做才能让它在我的詹金斯上运行。
提前致谢..!
解决方案
推荐阅读
- docker - docker mediawiki localsettings 与 docker run
- c# - 如何使用windbg转储.NET JIT-ed泛型方法?
- ubuntu - 在 ubuntu 16.04 上运行融合时遇到错误
- android - workmanager 监听器立即调用
- sql - 替换两个分隔符之间的子字符串或直到字符串的结尾
- python - 如果相应的 Ids 熊猫中仅存在值,则删除 NaN
- swift - Swift 4 按键访问元组
- c++ - 分配二维数组时 cudaMalloc 崩溃
- c# - 如何获取 Datagrid SelectedItem
- java - 如何将值存储在最佳 Java 集合结构中