Spring Pet Clinic Manual Steps for building and packaging
- Manual steps
sudo apt update
sudo apt install openjdk-17-jdk maven -y
git clone https://github.com/spring-projects/spring-petclinic.git
cd spring-petclinic
mvn package
- Whenver any changes are made to the spring pet clinic code we want to repeat the above steps, if it fails the changes done by developer might be wrong, environmental issues should be handled by us.
- Any failure generally will be notified via emails/some alerting mechanism.
Azure DevOps – Pipelines
- Classic Editor:
- The error below is about agent not getting allocated.
-
Now Navigate to Project Setting and Parallel jobs
- Lets try acheiving the same using YAML
---
pool: 'Azure Pipelines'
trigger:
- main
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
goals: 'package'
jdkVersionOption: '1.17'
Azure DevOps Explained
-
Continuous Integration Workflow
-
CI can be failed due to following reasons
- compilation failed
- unit test failed
- Quality Gate rejected the commit (because of quality isses)
- Environmental issues.