Jenkins-推送部署测试步骤失败

维奈·约瑟夫(Vinay Joseph)

我正在按照Push上的说明进行部署,以使用Jenkins测试和部署以python和Flask编写的Google App Engine应用。

测试位于应用程序的根文件夹中,该文件名为 tests.py

执行外壳步骤中的命令是

nosetests tests.py

我收到以下错误,由于我对Jenkins相当陌生,因此我不确定如何解决此问题。

Started by user User Name
Building remotely on cloud-dev-php in workspace /var/jenkins/workspace/CFC Melbourne production pipeline
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://source.developers.google.com/p/cfc-melbourne-website/ # timeout=10
Fetching upstream changes from https://source.developers.google.com/p/cfc-melbourne-website/
 > git --version # timeout=10
using .gitcredentials to set credentials
 > git config --local credential.helper store --file=/tmp/git7069316934747655973.credentials # timeout=10
 > git -c core.askpass=true fetch --tags --progress https://source.developers.google.com/p/cfc-melbourne-website/ +refs/heads/*:refs/remotes/origin/*
 > git config --local --remove-section credential # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3a8caffa38303b3ae4741aac83e6ac807077b5be (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3a8caffa38303b3ae4741aac83e6ac807077b5be
 > git rev-list 3a8caffa38303b3ae4741aac83e6ac807077b5be # timeout=10
[CFC Melbourne production pipeline] $ /bin/sh -xe /tmp/hudson3364335209750264714.sh
+ nosetests tests.py
/tmp/hudson3364335209750264714.sh: 2: /tmp/hudson3364335209750264714.sh: nosetests: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
克里斯托弗·奥尔

这并不是一个真正的Jenkins问题-正如构建输出所指示的那样,您的shell脚本失败了,因为它找不到nosetests可执行文件:

nosetests: not found

您确定nosecloud-dev-phpJenkins构建机器安装了该文件吗?

如果您正在使用该即按即用映像,则应该已经安装了-但是由于您的构建是在PHP构建计算机而不是Python计算机上运行的,因此可能并非如此。
您应该仔细检查是否已按照说明进行操作,以确保您的Python Jenkins作业在Python构建机器上运行。

如果安装,则可能不在默认设置上PATH,在这种情况下,您可以更改noseteststo的用法/usr/local/bin/nosetests(或任何路径)。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Jenkins-推送部署测试步骤失败

来自分类Dev

Jenkins应用引擎的推送部署设置失败

来自分类Dev

Jenkins应用引擎的推送部署设置失败

来自分类Dev

Jenkins SCM步骤意外失败

来自分类Dev

使用Jenkins的OpenShift部署失败

来自分类Dev

使Jenkins自动运行失败的测试

来自分类Dev

Git 推送在 Jenkins 管道中失败?

来自分类Dev

pytest测试失败时Jenkins Job失败

来自分类Dev

Jenkins WebSphere部署程序插件失败

来自分类Dev

使用最新 jenkins 构建的 RPM 部署失败

来自分类Dev

Jenkins CI配置:构建/测试/部署方案

来自分类Dev

Jenkins CI配置:构建/测试/部署方案

来自分类Dev

Jenkins-部署后触发硒测试

来自分类Dev

如何始终在Jenkins中运行构建步骤并忽略失败

来自分类Dev

如果步骤不稳定,Jenkins管道将失败

来自分类Dev

编写Jenkins groovy脚本-如何确定哪个构建步骤失败

来自分类Dev

编写Jenkins groovy脚本-如何确定哪个构建步骤失败

来自分类Dev

将 DSL 用于 Jenkins 作业时,Ansible AWX 步骤失败

来自分类Dev

Jenkins持续部署错误

来自分类Dev

当Maven单元测试失败时,如何使Jenkins构建失败?

来自分类Dev

成功构建部署后,Jenkins Build失败

来自分类Dev

在openshift中部署修改后的Jenkins映像失败

来自分类Dev

成功构建部署后,Jenkins Build失败

来自分类Dev

将代码从Jenkins部署到弹性beantalk时构建失败

来自分类Dev

Jenkins:Jenkins未运行TestNG测试

来自分类Dev

Jenkins PHP工作失败

来自分类Dev

Jenkins PHP作业失败

来自分类Dev

JHipster Jenkins构建失败

来自分类Dev

Jenkins邮件发送失败