我有Travis CI build配置为将构建工件上传到S3。我已经按照Travis artifacts文档进行了操作,但是当构建完成时,我收到以下错误(并且S3容器为空)。
Function Newvalues(a As Range, b As Range)
Dim k = b.Count
For i = 1 To a.Count
For j = 1 To b.Count
If a(i) = b(j) And a(i) <> "" And b(j) <> "" Then
k = k - 1
End If
Next j
Next i
Newvalues = k
End Function
我尝试在配置中指定“端点”选项但忽略了它。它似乎试图将文件上传到
以下是我.travis.yml file
相关部分的副本ERROR: failed to upload: /home/travis/build/jonburney/KingsgateMediaPlayer-Android/
app/build/outputs/apk/app-release-unsigned.apk
err: The bucket you are attempting to access must be addressed using the specified
endpoint. Please send all future requests to this endpoint.
我是否错过了此方案的配置选项?任何帮助表示赞赏!
答案 0 :(得分:1)
在向Travis-CI支持团队发送电子邮件并进行一些调查后,这已得到修复。我的.travis.yml文件中的代码已经过修改,以确保“工件”只出现一次,如下所示:
addons:
artifacts:
s3_region: "us-west-2"
paths:
- $(git ls-files -o app/build/outputs | tr "\n" ":")