mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:32:54 +02:00
Debugging gradle script
This commit is contained in:
parent
464f8e128a
commit
ac533a3913
1 changed files with 12 additions and 8 deletions
|
@ -21,6 +21,7 @@ buildscript {
|
|||
plugins {
|
||||
id 'de.undercouch.download' version '3.3.0'
|
||||
id "cz.malohlava" version "1.0.3"
|
||||
id "io.github.http-builder-ng.http-plugin" version "0.1.1"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
@ -608,14 +609,17 @@ task uploadBreakpadDumpSymsRelease(dependsOn: runBreakpadDumpSymsRelease) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
task uploadBreakpadDumpSymsDebug(dependsOn: zipDumpSymsDebug) {
|
||||
doLast {
|
||||
def p = ['curl', '--data-binary', "@"+new File("${appDir}/build/tmp/", "symbols-${RELEASE_NUMBER}.zip").absolutePath, "\"https://gcalero998.sp.backtrace.io:6098/post?format=symbols&token=d65d0d184789ac40c121952001fd91dfba7e149899b1eeccd68ccffe91dd2fd0\""].execute()
|
||||
p.waitFor()
|
||||
if (p.exitValue() != 0) {
|
||||
println "Upload breakpad symbols: curl exited with status " + p.exitValue()
|
||||
println p.getErrorStream().text
|
||||
task uploadBreakpadDumpSymsDebug(type:io.github.httpbuilderng.http.HttpTask, dependsOn: zipDumpSymsDebug) {
|
||||
config {
|
||||
request.uri = 'https://gcalero998.sp.backtrace.io:6098'
|
||||
}
|
||||
post {
|
||||
request.uri.path = '/post'
|
||||
request.uri.query = [format: 'symbols', token: 'd65d0d184789ac40c121952001fd91dfba7e149899b1eeccd68ccffe91dd2fd0']
|
||||
request.body = new File("${appDir}/build/tmp/", "symbols-${RELEASE_NUMBER}.zip").bytes
|
||||
request.contentType = 'application/octet-stream'
|
||||
response.success {
|
||||
println ("${appDir}/build/tmp/symbols-${RELEASE_NUMBER}.zip uploaded")
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue