generator-jhipster: Gateway with gradle doesn't work with Gitlab CI
Overview of the issue
Created a gateway application with gradle, works fine when compiled from the command line, but fails with Gitlab CI (jhipster ci-cd)
Please see the stackoverflow question
Reproduce the error
Create a 6.9 gateway application with JDL and gradle, run jhipster ci-cd and then send it to a Gitlab runner.
JHipster Version(s)
6.9
JHipster configuration
INFO! Using JHipster version installed locally in current project’s node_modules INFO! Executing jhipster:info INFO! Options: from-cli: true Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
gatewayu@0.0.1-SNAPSHOT /home/michele/gitlab/upowernetguard/gatewayu
└── generator-jhipster@6.9.0
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
"generator-jhipster": {
"authenticationType": "uaa",
"cacheProvider": "ehcache",
"clientFramework": "angularX",
"serverPort": "8080",
"serviceDiscoveryType": "eureka",
"skipUserManagement": false,
"baseName": "gatewayu",
"buildTool": "gradle",
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"jhiPrefix": "jhi",
"languages": ["en", "it", "fr", "de", "es"],
"messageBroker": false,
"nativeLanguage": "en",
"prodDatabaseType": "mysql",
"searchEngine": false,
"skipClient": false,
"testFrameworks": [],
"websocket": false,
"applicationType": "gateway",
"packageName": "com.rps.png",
"packageFolder": "com/rps/png",
"uaaBaseName": "uaa",
"jhipsterVersion": "6.9.0",
"creationTimestamp": 1590083280536,
"skipServer": false,
"clientPackageManager": "npm",
"clientTheme": "none",
"clientThemeVariant": "",
"useSass": true,
"embeddableLaunchScript": false,
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [],
"blueprints": []
},
"entities": ["Device"]
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Device {
address String unique required,
protocol Protocol required,
port Integer,
name String,
icon Integer,
tags String,
status Status,
uptime Duration,
lastchecked Instant
}
enum Protocol {
SNMPV1,
SNMPV2C,
SNMPV3,
JSON
}
enum Status {
OK,
INFO,
MINOR,
MAJOR,
CRITICAL,
COMMLOST
}
service Device with serviceClass
microservice Device with powerbacku
filter Device
Environment and Tools
openjdk version “11.0.6” 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1deb10u1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-1deb10u1, mixed mode, sharing)
git version 2.20.1
node: v12.16.1
npm: 6.14.5
yeoman: 3.1.1
yarn: 1.22.4
Docker version 19.03.8, build afacb8b7f0
docker-compose version 1.25.4, build 8d51620a
identical .jhipster/Device.json INFO! Congratulations, JHipster execution is complete!
If you have a JDL please wrap it in below structure
JDL definitions
deployment {
deploymentType docker-compose
appsFolders [uaa, powerbacku, gatewayu, realgraphu, snmpju]
dockerRepositoryName "10.1.10.58:5000"
}
application {
config {
baseName uaa
applicationType uaa,
serviceDiscoveryType eureka,
packageName com.rps.png,
buildTool gradle
}
}
application {
config {
baseName gatewayu
applicationType gateway,
packageName com.rps.png,
authenticationType uaa,
uaaBaseName “uaa”,
// clientTheme Solar,
// clientThemeVariant Dark,
nativeLanguage en,
languages [en, it, fr, de, es]
buildTool gradle
}
entities *
}
application {
config {
baseName powerbacku
applicationType microservice,
packageName com.rps.png,
authenticationType uaa,
uaaBaseName “uaa”,
prodDatabaseType mysql,
devDatabaseType mysql,
// clientTheme Solar,
nativeLanguage en,
languages [en, it, fr, de, es]
buildTool gradle,
serverPort 8081
}
entities *
}
application {
config {
baseName realgraphu
applicationType microservice,
packageName com.rps.png,
authenticationType uaa,
uaaBaseName “uaa”,
databaseType no,
// clientTheme Solar,
nativeLanguage en,
languages [en, it, fr, de, es]
buildTool gradle,
serverPort 8081
}
entities *
}
application {
config {
baseName snmpju
applicationType microservice,
packageName com.rps.png,
authenticationType uaa,
uaaBaseName “uaa”,
databaseType no,
// clientTheme Solar,
nativeLanguage en,
languages [en, it, fr, de, es]
buildTool gradle,
serverPort 8081
}
entities *
}
enum Protocol {
SNMPV1, SNMPV2C, SNMPV3, JSON
}
enum Status {
OK, INFO, MINOR, MAJOR, CRITICAL, COMMLOST
}
entity Device {
address String unique required
protocol Protocol required
port Integer
name String
icon Integer
tags String
status Status
uptime Duration
lastchecked Instant
}
filter Device
microservice Device with powerbacku
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
- Checking this box is mandatory (this is just to show you read everything)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- make sure gradle package works in gitlab ci for non docker environments out of box closes #11854 [skip-ci] — committed to atomfrede/generator-jhipster by atomfrede 4 years ago
Thanks for reporting this. It looks indeed like a bug on our side.