New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

Get Git references for git managed plugins

georgec
Level 1
Get Git references for git managed plugins

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)

0 Kudos
1 Reply
georgec
Level 1
Author

/app/dss/config/plugins/<plugin_key>/settings.json

 

** correction

0 Kudos
Labels (1)
A banner prompting to get Dataiku DSS