I am looking at different versions of a process in the Cockpit and the associated deployment details. It would be lovely to have the Git commit sha there in the deployment details to easily match a deployment to a specific codebase.
I know how to write the git commit id to a properties file (for example) during build, but is there any way that this can be picked up by Camunda and displayed in the deployment details? Could the Version Tag be used for example?
Other suggestions are welcome.
FYI: we are running camunda version 7.4.5-ee with a shared Tomcat.
where there is a Jenkins file that deploys from Git changes.
You could use the sha in the source but would a little cleaner if you just have a file you edit with the sha before deployment occurs. When you are in the BPMN process view you can select the deployment ID on the right and it will take you to the specific deployment and you can read the file from the UI.
Thanks for your reply.
I cannot see any resources, other than bpmn (and probably .dmn) files, when clicking the Deployment Id link. Hence I do not think it will work to add a file in the classpath that can be viewed in the deployments view.
For the time being I will use the versionTag which is specified in the bpmn file because it is displayed in the UI nicely. However, I suppose this is meant to be the version of the bpmn process, so when deployments are made without changes to the bpmn file it is sort of misleading.
Increasing the version would be great if Camunda also versioned the Java code (delegates etc), but it sadly does not.
Is there any way I can can get my git-commit.properties file pop up in the Camunda GUI without forcing the version to be bumped up? (I know I can find the file in the war package, but I would love to have easier access than that).