generator-jhipster-concourse-ci
v0.0.2
Published
Generates concourse pipelines for a JHipster project
Downloads
13
Readme
generator-jhipster-concourse-ci
JHipster module, Generates concourse pipelines for a JHipster project
Introduction
This is a JHipster module, that is meant to be used in a JHipster application to generate concourse ci configuration files.
Prerequisites
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
Installation
With Yarn
To install this module:
yarn global add generator-jhipster-concourse-ci
To update this module:
yarn global upgrade generator-jhipster-concourse-ci
With NPM
To install this module:
npm install -g generator-jhipster-concourse-ci
To update this module:
npm update -g generator-jhipster-concourse-ci
Usage
To generate the concourse ci pipeline and tasks for current JHipster project, just run the following command from the project folder.
yo jhipster-concourse-ci
The expectation is that the credential store(eg: credhub) is populated with the following properties accessible to the pipeline:
- Always: GIT_SSH_KEY to include the private key
- If using semver: AWS_REGION AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY
- If using slack: SLACK_WEBHOOK
Testing
This generator was tested with a project generated using JHipster 5.0.0 and with concourse 4.3.1 To test your pipeline locally before pushing to your corporate concourse, you could test by installing concourse and credhub locally on virtualbox using bucc. Set the appropriate credhub entries as follows:
credhub set -n /concourse/main/GIT_SSH_KEY --type=certificate -p <path to your git ssh private key>
credhub set -n /concourse/main/AWS_REGION --type=value <aws region>
credhub set -n /concourse/main/AWS_ACCESS_KEY --type=value <aws access key>
credhub set -n /concourse/main/AWS_SECRET_ACCESS_KEY --type=value <aws secrett>
credhub set -n /concourse/main/SLACK_WEBHOOK --type=value <slack webhook>
License
Apache-2.0 © Anoop Gopalakrishnan