Retrieve commit SHA / commit message when updating project shared code from git
julesbertrand
Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 9 Partner
Hi
When deploying a bundle, I need to know what version of the project shared code is in the bundle. My code is hosted on a gitlab repo.
Do you know how I could retrieve a commit sha or something similar to identify what code version was loaded in a bundle (past or new) please ?
Thanks
Jules
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,212 Dataiker
Hi @julesbertrand ,
You can view the last hashes for remote git imported libraries in DSS DATADIR/config/projects/NBO_WEBAPP/lib/external-libraries.json
You would see :
"lastHash": "5c97fd0c4b0b466954633ddad8c1fe0911ffbcae"
Each folder imported from git will have a separate hash so you could have multiple hashes in a single project.
The previous bundle zip files also contain extarnal-libraries.json including the hash under project_config/lib
Hope that helps.