- FrontendSample // https://github.com/apokochito/frontendSample
- BackendSample // This repository
- SecuritySample // https://github.com/apokochito/securitySample
- ValidationJobSample // https://github.com/apokochito/validationJobSample
Installation steps (by windows option)
- Download Jenkins from https://www.jenkins.io/download/#downloading-jenkins
- Run service as LocalSystem (not recommended)
- Configure port Number 9040 and open chrome using http://localhost:9040
- Set local system password
- Plugins nstallation process...
- Create admin user
- Instance configuration with (http://localhost:9040)
Note: Make sure that you have all necessary plugins, Maven, Git, and Java tools already configured in Jenkins.
Create pipeline
-
From home page, select "New Item" and name it as Backend
-
Select "Freestyle Project"
-
Go to Settings and add the GitHub url for that project
-
Configure GitHub and Heroku repositories/credentials as following...
Github
- Add repository URL
- Add your account credentials
- Add a brief description of those credentials
- Leave ID field empty
Heroku
- Add git repository URL of your app from heroku portal
- Add your account credentials (email), and run this following commands to get your respective password (use your git CLI)
- $ heroku login
- $ heroku auth:token
-
Add a Build (Maven) as "package"
-
Add another build to publish to Heroku "heroku master" (consider that if your build fails is going to be deployed no matter what)
-
Run your build
- CloudKaradka website provide you a free Apache Kafka instance at https://www.cloudkarafka.com
- Don't forget to set env variables for your application
- PENDIENT