Skip to content

Comments

Collect git properties and log them at robot start-up#7

Merged
abhobe merged 1 commit intomainfrom
gnezdo/log-build-commit
Mar 8, 2025
Merged

Collect git properties and log them at robot start-up#7
abhobe merged 1 commit intomainfrom
gnezdo/log-build-commit

Conversation

@blackgnezdo
Copy link
Contributor

Uses gradle-git-properties plugin

Example from running ./gradlew simulateJava:

********** Robot program starting **********
NT: Listening on NT3 port 1735, NT4 port 5810
DataLog: Logging to '/work/logs/FRC_TBD_fc1f1ee06a3833d1.wpilog' (514.0 GiB free space)
git.commit.message.short: Fix all formatting issues with ./gradlew spotlessApply
git.commit.user.email: <elided>
git.commit.user.name: <elided>
git.commit.id.abbrev: fba9a73
git.branch: gnezdo/log-build-commit
git.build.host: e269da2395a7
git.commit.time: 2025-03-07 20:52:42
git.dirty: true

Uses [gradle-git-properties](
https://github.com/n0mer/gradle-git-properties/blob/master/README.md) plugin

Example from running `./gradlew simulateJava`:
```
********** Robot program starting **********
NT: Listening on NT3 port 1735, NT4 port 5810
DataLog: Logging to '/work/logs/FRC_TBD_fc1f1ee06a3833d1.wpilog' (514.0 GiB free space)
git.commit.message.short: Fix all formatting issues with ./gradlew spotlessApply
git.commit.user.email: <elided>
git.commit.user.name: <elided>
git.commit.id.abbrev: fba9a73
git.branch: gnezdo/log-build-commit
git.build.host: e269da2395a7
git.commit.time: 2025-03-07 20:52:42
git.dirty: true
```
@blackgnezdo blackgnezdo requested a review from abhobe March 8, 2025 05:47
@abhobe
Copy link
Contributor

abhobe commented Mar 8, 2025

i think its failing bc the spotless updates aren't included this branch. merge should be fine.

@abhobe abhobe merged commit 50e2d9f into main Mar 8, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants