我已经开始尝试本教程:https://dzone.com/articles/how-to-use-the-jenkins-performance-plugin,但是我在本地jenkins (步骤7之后)遇到了一些问题。看来jenkins无法在我的虚拟env中运行bzt有一些问题。
Started by user user
Running as SYSTEM
Building in workspace /Users/user/.jenkins/workspace/jenkinsjob
Performance test: Checking global bzt installation...
[jenkinsjob] $ bzt --help
Performance test: You don't have global bzt installed on this Jenkins host. Installing it globally will speed up job. Run 'sudo pip install bzt' to install it.
Performance test: Checking virtualenv tool availability...
[jenkinsjob] $ /usr/local/bin/virtualenv --help
Performance test: Found virtualenv tool.
Performance test: Creating virtualev at 'taurus-venv'...
[jenkinsjob] $ /usr/local/bin/virtualenv --clear --system-site-packages taurus-venv
Performance test: Done creating virtualenv.
Performance test: Installing bzt into 'taurus-venv'
[jenkinsjob] $ /Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/pip install bzt
Performance test: bzt installed successfully.
Performance test: Checking installed bzt...
[jenkinsjob] $ /Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/bzt --help
Performance test: Failed to run bzt inside virtualenv.
Cannot run program "/Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/bzt" (in directory "/Users/user/.jenkins/workspace/jenkinsjob"): error=2, No such file or directoryBuild step 'Run Performance Test' changed build result to FAILURE
Finished: FAILURE有人面对并解决了这个问题吗?麻烦你帮我一把,好吗?非常感谢。
发布于 2021-11-16 08:45:46
作为解决方案,我为bzt设置了一个不同的版本(与全球安装的版本):

发布于 2021-11-15 07:31:14
我不能用最新的Jenkins和性能插件来重现你的问题。

很可能金牛座安装到维塔列夫的某个地方失败了,我会尝试以下几点:
/Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/pip install bzt命令并检查输出/Users/user/.jenkins/workspace/jenkinsjob/taurus-venv/bin/bzt --help命令并检查输出此外,正如Jenkins所建议的,您可以在全局(针对所有用户)安装金牛座,运行以下命令:
sudo pip install bzt并取消生成配置中的Always use virtualenv框:

通常,您不需要金牛座运行JMeter测试并使用性能插件解析结果,您可以使用构建步骤,然后使用Publish performance test result report构建后操作到生成性能测试报告和趋势图。。
https://stackoverflow.com/questions/69968178
复制相似问题