Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jhipster ci-cd prompts for unnecessary answers #24564

Closed
mraible opened this issue Dec 14, 2023 · 3 comments · Fixed by #24568
Closed

jhipster ci-cd prompts for unnecessary answers #24564

mraible opened this issue Dec 14, 2023 · 3 comments · Fixed by #24568
Milestone

Comments

@mraible
Copy link
Contributor

mraible commented Dec 14, 2023

Overview of the issue

I ran jhipster ci-cd after creating a new demo app tonight and it asked me far too many questions.

Screenshot 2023-12-14 at 00 41 12

Motivation for or Use Case

It used to be much easier.

Reproduce the error

Run jhipster ci-cd in a new v8 project.

JHipster Version(s)
[email protected] /Users/mraible/dev/jhipster8-demo
└── [email protected]
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "blog",
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "angular",
    "clientTestFrameworks": [
      "cypress"
    ],
    "clientTheme": "none",
    "creationTimestamp": 1702525034689,
    "cypressAudit": true,
    "cypressCoverage": true,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "enableGradleEnterprise": null,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entities": [
      "Blog",
      "Post",
      "Tag"
    ],
    "feignClient": false,
    "gradleEnterpriseHost": null,
    "herokuAppName": "jhipster8-demo",
    "herokuDeployType": "git",
    "herokuJavaVersion": "21",
    "jhipsterVersion": "8.1.0",
    "languages": [
      "en",
      "es"
    ],
    "lastLiquibaseTimestamp": 1702525214000,
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "en",
    "packageName": "org.jhipster.blog",
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [],
    "serviceDiscoveryType": false,
    "testFrameworks": [
      "cypress"
    ],
    "websocket": false,
    "withAdminUi": true
  }
}
Environment and Tools

openjdk version "21" 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)

git version 2.39.3 (Apple Git-145)

node: v18.18.2
npm: 9.8.1

Docker version 24.0.7, build afdd53b

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
@ChangelogDate("20231214033814")
entity Blog {
  name String required minlength(3)
  handle String required minlength(2)
}
@ChangelogDate("20231214033914")
entity Post {
  title String required
  content TextBlob required
  date Instant required
}
@ChangelogDate("20231214034014")
entity Tag {
  name String required minlength(2)
}
relationship ManyToOne {
  Blog{user(login)} to User with builtInEntity
  Post{blog(name)} to Blog
}
relationship ManyToMany {
  Post{tag(name)} to Tag{post}
}

search Blog, Post, Tag with no
paginate Post, Tag with infinite-scroll

Congratulations, JHipster execution is complete!
If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/

Thanks for using JHipster!

@mraible
Copy link
Contributor Author

mraible commented Dec 14, 2023

Related: the actions that are generated by jhipster ci-cd need to be updated.

https://github.com/mraible/jhipster8-demo/pulls

Screenshot 2023-12-14 at 00 55 33

@mraible
Copy link
Contributor Author

mraible commented Dec 14, 2023

Two minutes later, dependabot is aggressive!

Screenshot 2023-12-14 at 00 56 24

@atomfrede
Copy link
Member

It looks like a bug as the promp e.g. for inside docker is supposed to not being shown when selecting github actions:

when: includesValue('ciCd', ['jenkins', 'gitlab']),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants