具體的提示錯誤信息如下:
uploading "asciidoc/js/jquery-3.2.1.min.js" with {:content_type=>"application/javascript"}/home/travis/.rvm/gems/ruby-2.4.5/gems/aws-sdk-core-2.11.632/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Aws::S3::Errors::PermanentRedirect)
這是因為在我們的配置文件下 travis 將會把數據存儲到 S3 的 us-east-2 存儲區。
如果你的 S3 存儲沒有設置到正確的存儲區的話,你使用 travis 將數據上傳到 S3 將會提示錯誤。
請參考 https://docs.travis-ci.com/user/deployment/s3/ 官方文檔中有關 AWS S3 的配置。
當然你也可以在配置文件中添加
region: eu-west-2
來指定特定的存儲區。
然後再次編譯,你就發現編譯成功的文件已經上傳上去了。