Retrieve commit SHA / commit message when updating project shared code from git

Solved!
julesbertrand
Level 2
Retrieve commit SHA / commit message when updating project shared code from git

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

0 Kudos
1 Solution
AlexT
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. 

View solution in original post

1 Reply
AlexT
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.