Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Error invoking build scan buildFinished action #378

Closed
runningcode opened this issue Mar 27, 2025 · 2 comments
Closed

WARNING: Error invoking build scan buildFinished action #378

runningcode opened this issue Mar 27, 2025 · 2 comments
Assignees

Comments

@runningcode
Copy link
Contributor

Issue

In CCUD 2.2 I get the following error when publishing a scan to scans.gradle.com

WARNING: Error invoking build scan buildFinished action
        Cannot query the value of extension 'develocity' property 'server' because it has no value available.

Downgrading to CCUD 2.1 resolves the warning.

Reproduction steps:

You can reproduce this in this repo by adjusting the settings.gradle.kts to publish to scans.gradle.com.

Here is a sample commit which does this: runningcode@a4b0e5f
And then you run ./gradlew help

Here is a build scan with the warning: https://scans.gradle.com/s/x53npb65zlu64/console-log?page=1#L25

@bigdaz bigdaz self-assigned this Mar 27, 2025
@bigdaz
Copy link
Member

bigdaz commented Mar 27, 2025

I can reproduce this with an empty develocity configuration.
No warning is emitted if the develocity block is not present, even with the plugins applied.

bigdaz added a commit to gradle/develocity-agent-adapters that referenced this issue Mar 27, 2025
Accessing an uninitialized Property is illegal, resulting in errors or warnings when
CCUDGP is applied with no value set for 'server'.
This is fixed by providing a default value to use in the case of uninitialized Property.

Fixes gradle/common-custom-user-data-gradle-plugin#378
@runningcode
Copy link
Contributor Author

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants