【发布时间】:2019-12-01 22:52:31
【问题描述】:
我有这个命令:
php artisan config:clear
timeout 15 php artisan queue:work
php artisan queue:restart
作业失败:
+ php artisan config:clear
Configuration cache cleared!
+ timeout 5 php artisan queue:work
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我需要在 15 秒后停止该命令 php artisan queue:work,这就是我使用 timeout 的原因。
为什么会出现这个错误?没有超时,一切正常。
【问题讨论】:
-
@Rob 为什么是重复的?在那个问题中,错误存在
sudo: no tty present and no askpass program specified在我的情况下,我只是有一个超时,然后它退出
标签: jenkins