Table of Contents |
---|
Simple Maven Build Pipeline
To build a Mavenised project on Jenkins is quite simple;
- In Jenkins, click the 'New Item' link in the left hand navigation
- Enter the project name and at the bottom enter 'keycloak-client' in the Copy from text box.
- Update project description
- Change the Git Repository URL to match your repository.
- In the Post Steps > Trigger/call builds on other projects, check to make sure that the Predefined parameters match the Maven groupId, artifactId and version (you can use environment variables here if you want to).
- Save and run the build, this should create a docker container for your project.
- Create a second job to run your new docker image using docker-compose. Go to 'New Item' from step 1 and copy 'keycloak-dev-deploy'
- Update the description for the new job
- Change the Build Trigger to listen to your first new job.
- Change the STACK environment variable in the Execute Shell section to match the name of your stack.
- Save and run the job and your containers should start on the dev platform.
Modify Content Security Policy
...