Registered users can ask their own questions, contribute to discussions, and be part of the Community!
I can't seem to find a way to programmatically get the git references for any git managed plugins. If there is a git managed library, the below code will return the git url, branch, last hash etc.
Is there a way to do this for plugins too? I have looked in /app/dss/config/plugins/<project_key>/<plugin_key>/settings.json - but the 'gitConfig' is always empty.
import osimport dataikuimport json
project_key = dataiku.Project().project_keyinstallation_path = dataiku.get_custom_variables().get("dss_installation_path")lib_dir = os.path.join(installation_path, 'config', 'projects', project_key, 'lib', 'external-libraries.json')
with open(lib_dir) as f:refs = json.load(f)