Keep a busy-loop going to make sure that Sentry is added to all loggers
Keep a busy-loop going to make sure that Sentry is added to all loggers

When this script executed in production, it hit some thread safety issues.
Hopefully waiting a bit will allow Jenkins to set everything up before we go and
start mutating things.

    Aug 22, 2017 2:44:47 AM jenkins.util.groovy.GroovyHookScript execute
    WARNING: Failed to run script file:/usr/share/jenkins/ref/init.groovy.d/configure-sentry.groovy
    java.util.ConcurrentModificationException
            at java.util.Hashtable$Enumerator.next(Hashtable.java:1378)
            at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2039)
            at org.codehaus.groovy.runtime.dgm$161.invoke(Unknown Source)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
            at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
            at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            at configure-sentry.run(configure-sentry.groovy:14)
            at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
            at jenkins.util.groovy.GroovyHookScript.execute(GroovyHookScript.java:136)
            at jenkins.util.groovy.GroovyHookScript.execute(GroovyHookScript.java:127)
            at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:110)
            at hudson.init.impl.GroovyInitScript.init(GroovyInitScript.java:41)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
            at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
            at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
            at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
            at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
            at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)

CodeValet/codevalet,CodeValet/codevalet,CodeValet/codevalet