Codeship构建失败,尝试安装Drush

时间:2020-03-25 20:57:16

标签: drupal drush codeship

我们正在使用CodeShip将我们的Drupal项目部署到我们的登台服务器和生产服务器,但是最近遇到了一个奇怪的错误,我不太清楚。在代码船克隆了我们的仓库之后,它将尝试使用setup命令下载drush(在“测试设置命令”中):

phpenv local 7.2
composer global require drush/drush:8.*

该错误是尝试安装webmozart时的GitHub API限制错误(我们的存储库位于Bitbucket上)。这是确切的输出:

Changed current directory to /home/rof/.config/composer
10:15
./composer.json has been updated
10:15
Loading composer repositories with package information
10:15
Updating dependencies (including require-dev)
10:15
Package operations: 20 installs, 0 updates, 0 removals
10:15
  - Installing webmozart/path-util (2.3.0): Downloading (connecting...)Downloading (0%)           GitHub API limit (0 calls/hr) is exhausted, could not fetch https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725. Create a GitHub OAuth token to go over the API rate limit. You can also wait until ? for the rate limit to reset.
10:15

10:15
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+bionic_1c08b812-722b-4de8-8cfb-cf1cfd4f8a90_6387dcd5d7c9+2020-03-25+2025
10:15
to retrieve a token. It will be stored in "/home/rof/.config/composer/auth.json" for future use by Composer.
10:15
Token (hidden): 
10:15

10:15

10:15
--------------------------------------------------------------------------------
10:15
  This command didn't output anything for 10 minutes, thus we stopped it.
10:15
  Please make sure your steps regularly print to standard out or standard error.
10:15
  If the error is on our end please inform us so we can help you to fix this.
10:15
--------------------------------------------------------------------------------composer global require drush/drush:8.*

我们已经运行了几年了,在上个月这个问题经常发生。奇怪的是,有时它会出错,而有时却可以正常工作...

关于如何解决此问题的任何想法?

0 个答案:

没有答案