有人知道,我该如何使用GoCD将版本部署到Crashlytics (织物)?
最佳答案
我用了Fastlane上传apk的脚本。
FaSTLaneFile - Android 项目目录内
platform :android do
lane :crashlytics do | options |
gradle(task: ("assembleRelease"+options[:build]))
crashlytics(
api_token: "xxxxxxxxx",
build_secret: "xxxxxxxxx",
notes: loadReleaseNotesCrashlytics()
)
end
def loadReleaseNotesCrashlytics()
file = File.open("../crashlytics/release_note.txt", "r")
data = file.read
file.close
return data
end
end
之后,我将作业 GOCD 放入执行脚本中,使用环境变量和 CI 服务器上的 FaSTLane 路径。我已经成功了。
-c
#{fastlane} crashlytics build:Release
关于mobile - GoCD 部署到 Crashlytics Android 和 IOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42010013/