Skip to content

trigger-job-for-provider.py - add $SCRIPT_ARGS CI variable

Bruno Duyé requested to merge add_script-args_arg into master

When testing fetchers in CI env (typically to test correct errors.json generation and integration in dashboard), it's not the worth to download/convert the whole data; only a sample is sufficient. Until now, I created branches that downloaded/converted only a part of data, but downloaders/converters I do always have options for that, so I thought it could be usefull to pass arguments to download/convert scripts.

I didn't managed to pass arguments in an argument, like --script-arguments "--only WGI", this doesn't work when there's spaces in arguments so I implemented the more or less standard way:

For example:

./trigger-job-for-provider.py --ref add_artifacts_generation  download wb -- --only WGI
Edited by Bruno Duyé

Merge request reports