Configuration
You can access custom configuration key/values within your script executed in a pipeline. This allows you to store sensitive information to connect your custom API or solution, for example.
Custom configuration must be declared within your custom.ini file. Follow this documentation in order to declare and use properly your custom configuration.
Once declared properly, you can access to your configuration from your script through the wizata_dsapi.Context
like this:
def my_script(context: wizata_dsapi.Context):
value = context.config["SECTION_KEY"]
Only custom configuration is accessible from the context, default configuration is protected. If you need to access default configuration keys, they must be re-declared inside the custom.ini.
Updated 3 months ago