I think I found a cause, when I remove ansi color wrapper everything works 
:)

W dniu wtorek, 25 lipca 2017 13:43:26 UTC+2 użytkownik Maciej Gąsiorowski 
napisał:
>
> Hi,
>
> I have problem and I have finished with ideas where is problem.
>
> I have shared libraries which build our android appliaction, everything 
> works. But when project uses kotlin and aapt cruncher, cruncher works very 
> slow. My build's timouts after one hour.
>
> When I use the same project with Scripted Pipeline, Freestyle Job, or 
> disable cruncher everything works ok, but not in shared libraries.
>
> How can I find cause of this problem ?
>
> I tried read logs, debug gradle, etc.
>
> My example library looks like this:
>
> def call(body) {
>     // evaluate the body block, and collect configuration into the object
>     def config = [:]
>     body.resolveStrategy = Closure.DELEGATE_FIRST
>     body.delegate = config
>     body()
>
>     timeout(60) {
>         node("${config.nodeLabel}") {
>             stage("Static analysis") {
>                 deleteDir()
>                 unstash "workspace"
>                 wrap([$class: "AnsiColorBuildWrapper", "colorMapName": 
> "VGA"]) {
>                     withEnv(["GRADLE_USER_HOME=${env.WORKSPACE}/.gradle"]) {
>                         sh "chmod +x gradlew"
>                         sh "./gradlew --info --full-stacktrace 
> --refresh-dependencies --continue -PversionCode=${env.BUILD_NUMBER} clean 
> ${config.gradleTasks}"
>                     }
>                 }
>         }
>     }
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/86c0da59-5ce6-49a9-9b94-ba7cc0162141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to