Azure Pipeline for Java build - test and deploy to staging
# Trigger the pipeline on changes to the main branch trigger: branches: include: - main # Define the VM image to use for the pipeline pool: vmImage: 'ubuntu-latest' # Pipeline steps stages: - stage: Build jobs: - job: Build steps: # Checkout the code from the repository - checkout: self # Set up Maven - task: UseMaven@1 inputs: mavenVersionOption: 'Default' mavenPomFile: 'pom.xml' goals: 'clean compile' # Run tests - task: Maven@3 ...