Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/chtrembl/azure-cloud into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Aug 4, 2021
2 parents b0918af + 6220e57 commit 87b1797
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
37 changes: 37 additions & 0 deletions manifests/azure-petstore-automation-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Deploy to Azure Kubernetes Service
# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
branches:
include:
- main
paths:
include:
- petstore/petstoreautomation/*

resources:
- repo: self

stages:
- stage: Build
displayName: Build & Test Stage
jobs:
- job: Automation
displayName: Build & Execute Automation Tests
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
continueOnError: true
displayName: Build & Execute Automation Tests
inputs:
mavenPomFile: 'petstore/petstoreautomation/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: 'petstore/petstoreautomation/target/surefire-reports/TEST-*.xml'
codeCoverageToolOption: 'jaCoCo'
goals: 'package'
16 changes: 16 additions & 0 deletions manifests/azure-petstoreservice-ci-cd-to-aks-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,19 @@ stages:
$(imagePullSecret)
containers: |
$(containerRegistry)/$(imageRepository):$(tag)
- stage: Automation
displayName: Automation stage
jobs:
- job: Automation
displayName: Automation Testing
pool:
vmImage: 'windows-latest'
steps:
- task: TriggerPipeline@1
inputs:
serviceConnection: 'Automation'
project: '6b3206dd-90b3-40f6-a611-e5a1e5a13593'
Pipeline: 'Build'
buildDefinition: 'azure-petstoreautomation-tests'
Branch: 'main'

0 comments on commit 87b1797

Please sign in to comment.