Slackbot
01/30/2023, 3:30 PMno
01/30/2023, 5:02 PMReusing configuration cache.Iurii Ignatko
01/30/2023, 5:27 PMMike Cumings
01/30/2023, 6:03 PMOperationCompletionListener
• Have the build service manage an AtomicBoolean to indicate whether or not the service was "explicitly started". Expose an explicitStart() method to compareAndSet this from false to true.
• In a plugin, register the above service and call .get().explicitStart(). This will only happen in the configuration phase.
• Thus, due to the above, your service can override onFinish and compareAndSet the explicit start AtomicBooelan from false to true. If this succeeds then you know the configuration phase was skipped, indicating that the configuration was pulled from the config cache.Gabriel Feo
02/01/2023, 4:37 PM/build-export/v2/build/{id}/events?eventTypes=ConfigurationCacheLoadStarted . If response contains a BuildEvent, then cache was reused, else it wasn't.