Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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 os
import dataiku
import json
project_key = dataiku.Project().project_key
installation_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)
/app/dss/config/plugins/<plugin_key>/settings.json
** correction