Get Project Configuration in Compute Engine

I’m currently developing a plugin for SQ, and have run into an issue where I can’t get the configurations rewritten at the project level.
The javadoc for org.sonar.api.config states that CE cannot receive project-specific configurations.
Which brings me to my question : is there any workaround for this?

So far I’ve only found an option with a custom sensor and adding the configs I want to the sensor context. But it seems to me not quite correct solution, maybe there is something more “correct”?

Hey @rostilosfl

Can you go into a bit more detail about what you’re trying to do? I’m not sure what “rewritten” means here.

I created a new property via PropertyDefinition with the .onConfigScopes(PropertyDefinition.ConfigScope.PROJECT). Then I specified the value of the config at the global level in the UI. After that I defined it in the project level settings in the UI.

In the plugin, which is executed on the CE side, I am trying to get the value of this config ( as part of the execution in the class implementing PostProjectAnalysisTask ). But doing it through the class specified in the topic, I get only the global value, while I need the value defined at the project level. While in the context of ScannerEngine execution the config value obtained with org.sonar.api.config.Configuration is exactly the project value

Hello @rostilosfl, thank you for reaching out and for your patience while waiting for our response to your question.
However, we do not have a workaround suggestion, as as you pointed out already, accessing project-level configuration in the CE is currently not supported. The reason for this is that we have not encountered a need for changing this so far, but feel free to share your use case, and we will consider it.

Thanks,
Aleksandra