mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:23:09 +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 {
|
plugins {
|
||||||
id 'de.undercouch.download' version '3.3.0'
|
id 'de.undercouch.download' version '3.3.0'
|
||||||
id "cz.malohlava" version "1.0.3"
|
id "cz.malohlava" version "1.0.3"
|
||||||
|
id "io.github.http-builder-ng.http-plugin" version "0.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
@ -608,14 +609,17 @@ task uploadBreakpadDumpSymsRelease(dependsOn: runBreakpadDumpSymsRelease) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task uploadBreakpadDumpSymsDebug(type:io.github.httpbuilderng.http.HttpTask, dependsOn: zipDumpSymsDebug) {
|
||||||
task uploadBreakpadDumpSymsDebug(dependsOn: zipDumpSymsDebug) {
|
config {
|
||||||
doLast {
|
request.uri = 'https://gcalero998.sp.backtrace.io:6098'
|
||||||
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()
|
post {
|
||||||
if (p.exitValue() != 0) {
|
request.uri.path = '/post'
|
||||||
println "Upload breakpad symbols: curl exited with status " + p.exitValue()
|
request.uri.query = [format: 'symbols', token: 'd65d0d184789ac40c121952001fd91dfba7e149899b1eeccd68ccffe91dd2fd0']
|
||||||
println p.getErrorStream().text
|
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