We can create Jenkinsfile for our project using the ci-cd sub-generator from JHipster:
- In a Terminal, navigate to the online-store folder first. Now run the following command:
> jhipster ci-cd
- You will be asked to select from a list of options, as follows:
Welcome to the JHipster CI/CD Sub-Generator
? What CI/CD pipeline do you want to generate? (Press <space> to select, <a> to toggle all, <i> to inverse selection)
>◯ Jenkins pipeline
◯ Azure Pipelines
◯ Travis CI
◯ GitHub CI
◯ GitLab CI
- Let's select Jenkins pipeline from it. Next, we can choose to run the build inside a Docker container. Let's choose No here:
Welcome to the JHipster CI/CD Sub-Generator
? What CI/CD pipeline do you want to generate? Jenkins pipeline
? Would you like to perform the build in a Docker...