How to show GitLab pipeline number in Spring Boot actuator info

Bonus: a fix for its sometimes mysterious missing

Gerald Nguyen
Level Up Coding
Published in
4 min readApr 4, 2023

--

Spring Boot Actuator is great. Among its many features, /actuator/info give us information about the application we are running.

Screenshot: http://localhost:8080/actuator/info

The above contains 2 key pieces of information: git info and build info. The Git info tells us the exact git revision…

--

--

Engineering Lead. I write about software development, and sometimes writing itself. Mostly original. https://bit.ly/geraldnguyen