Info management endpoint improvements #53
Info management endpoint improvements #53
Conversation
18d5fc6
to
55b99bc
Compare
In my tests this does work (tested for maven/gradle/angular/react) but we need to first my merge the PR to the lib. Sadly the PR to the lib fails because it is incompatible with the master branch (as I removed some configprops that will become obsolete with this feature). |
@PierreBesson does it work with |
@PierreBesson : I'll do my best to test and merge this. I understand that the build failed, and I don't see a proper way to automate the tests for these PR in this specific case. |
Nice work @PierreBesson ! {
"display-ribbon-on-profiles": "dev",
"git": {
"commit": {
"id": {
"abbrev": "a9e1e98",
"describe": "a9e1e98"
}
},
"branch": "master"
},
"build": {
"version": "0.0.1-SNAPSHOT",
"artifact": "jhmono",
"name": "Jhmono",
"group": "io.github.pascalgrimaud",
"time": "2018-04-02T16:26:02.164Z"
},
"activeProfiles": [
"prod",
"swagger"
]
} |
@PierreBesson : I did more tests tonight and saw some issues. You can look my Travis build, using this branch and your PR: https://travis-ci.org/pascalgrimaud/jhipster/builds/361251919 Here a resume of what it didn't work:
So in this code,
I think there is a missing
|
7f9e639
to
3724f37
Compare
@pascalgrimaud I think everything is OK now. But when I tried to sync branches across repos with Travis like you do it failed. |
It's because your branch didn't use jhipster-framework. You need to update your |
I made some tests and there are still some issues:
In dev: {
"display-ribbon-on-profiles" : "dev"
} In prod: {"display-ribbon-on-profiles":"dev","git":{"commit":{"id":{"abbrev":"346a30b","describe":"346a30b-dirty"}},"branch":"master"},"build":{"version":"0.0.1-SNAPSHOT","artifact":"jhipster","name":"Jhipster","group":"io.github.pascalgrimaud","time":"2018-04-22T10:15:35.882Z"}} |
I think I fixed all issues. |
You are the best @pascalgrimaud ! |
@PierreBesson : here my PR against your branch PierreBesson#1 |
Here for the generator-jhipster: PierreBesson/generator-jhipster#4 |
…ment-endpoint-improvements Move to jhipster-framework folder and fix Conditional Bean
Thanks a lot @pascamgrimaud for your efforts getting this merged. Finally we can get commit information in our build and info endpoint. The next step is to use this info to correctly tag the docker image. |
ahahaha, you're welcome ! |
Requirement for : jhipster/generator-jhipster#7050