generator-jhipster: Gitlab-CI found error with generated .gitlab-ci.yml
Overview of the issue
Pipeline just started, and then found FATAL: file does not exist. And don’t have any clues about the file was referred.
Motivation for or Use Case
The file is fresh generated, and then I modified a bit on chmod +x mvnw for other error I found before on Google. But it’s not related.
Reproduce the error
- Create project
- Run local server for first time
- Generate
.gitlab-ci.ymland push to the repository - Found error on log
JHipster Version(s)
5.8.2
JHipster configuration
JHipster Version(s)
my-project@0.0.0 C:\sandbox\my-project
`-- generator-jhipster@5.8.2
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.comp.proj",
"nativeLanguage": "ja"
},
"jhipsterVersion": "5.8.2",
"applicationType": "monolith",
"baseName": "my-project",
"packageName": "com.comp.proj",
"packageFolder": "com/comp/proj,
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"prodDatabaseType": "postgresql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": "eureka",
"buildTool": "maven",
"enableSwaggerCodegen": false,
"jwtSecretKey": "bXktc2VjcmV0LXRva2VuLXRvLWNoYW5nZS1pbi1wcm9kdWN0aW9uLWFuZC10by1rZWVwLWluLWEtc2VjdXJlLXBsYWNl",
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "npm",
"testFrameworks": ["gatling"],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [],
"enableTranslation": true,
"nativeLanguage": "ja",
"languages": ["ja", "en"]
}
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
Environment and Tools
java version “1.8.0_201” Java™ SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot™ 64-Bit Server VM (build 25.201-b09, mixed mode)
git version 2.21.0.windows.1
node: v11.10.1
npm: 6.9.0
Browsers and Operating System
Windows 10 (1809 update), Chrome, but the issue might not related.
- Checking this box is mandatory (this is just to show you read everything)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (16 by maintainers)
I have forked and tested. It is related to permission issue. Have a detail look at log https://gitlab.com/pmverma/gitlabcibug/-/jobs/173964839 User
jhipstercan not executerootfiles.Pasting the log if repo get deleted.
@pascalgrimaud should (or can) we make the generator call
git update-index --chmod=+x mvnwat the end to make sure the wrapper is executable?I see the build is running. Will check why the wrapper is not executable by default on another machine without my develop environment for jhipster.
Try
git update-index --chmod=+x mvnwsuch that the file is marked as executable and commit & push to your git repository again.@xenogew Can you make the wrapper files executable via windows? If you can it works just fine https://gitlab.com/atomfrede/gitlabcibug/-/jobs/173967808