DevOps Classroomnotes 04/Feb/2023

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.
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%