The `buildScanPublished` is only called when a build scan is published by the build. Support other invocations by adding a `buildFinished` listener.
The `buildScanPublished` is only called when a build scan is published by the build. Support other invocations by adding a `buildFinished` listener.