Commit 0141cfae authored by SGupta79's avatar SGupta79
Browse files

Change the pipiline

parent c27724bb
Pipeline #26411 failed with stages
in 44 seconds
......@@ -34,6 +34,9 @@ resources:
- repository: TemplateRepo
type: git
name: infra-azure-provisioning
- repository: security-templates
type: git
name: security-infrastructure
variables:
- group: 'Azure - OSDU'
......@@ -53,42 +56,31 @@ variables:
value: 'false'
- name: SKIP_DEPLOY
value: 'false'
- name: 'MAVEN_CACHE_FOLDER'
value: $(Pipeline.Workspace)/.m2/repository
- name: ssrId
value: 8995
stages:
- template: /devops/build-stage.yml@TemplateRepo
parameters:
mavenGoal: 'package'
mavenPublishJUnitResults: true
serviceCoreMavenOptions: '-P schema-core --settings .mvn/community-maven.settings.xml'
mavenOptions: '-P schema-azure --settings .mvn/community-maven.settings.xml -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
copyFileContents: |
pom.xml
provider/schema-azure/maven/settings.xml
provider/schema-azure/pom.xml
provider/schema-azure/target/*-spring-boot.jar
.mvn/community-maven.settings.xml
deployments/**
copyFileContentsToFlatten: ''
mavenSettingsFile: '.mvn/community-maven.settings.xml'
serviceBase: ${{ variables.serviceName }}
testingRootFolder: 'testing'
chartPath: ${{ variables.chartPath }}
- template: deploy-stage.yml
- template: chart/task/deploy.yml
parameters:
serviceName: ${{ variables.serviceName }}
chartPath: ${{ variables.chartPath }}
valuesFile: ${{ variables.valuesFile }}
testCoreMavenPomFile: 'testing/schema-test-core/pom.xml'
testCoreMavenOptions: '--settings $(System.DefaultWorkingDirectory)/drop/.mvn/community-maven.settings.xml -DskipTests -DskipITs'
integrationTestMavenGoal: 'verify'
skipDeploy: ${{ variables.SKIP_DEPLOY }}
skipTest: ${{ variables.SKIP_TESTS }}
providers:
- name: Azure
environments: ['demo']
- template: bootstrap-stage.yml
parameters:
serviceName: ${{ variables.serviceName }}
providers:
- name: Azure
environments: ['demo']
\ No newline at end of file
testCoreMavenPomFile: 'testing/schema-test-core/pom.xml'
testCoreMavenGoal: 'clean package'
integrationTestMavenGoal: 'verify'
ssrId: ${{ variables.ssrId }}
mvnCacheFolder: ${{ variables.MAVEN_CACHE_FOLDER }}
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
environments:
- name: "dev"
- name: "qa"
- name: "prd"
- name: "weu"
- name: "cvn"
${{ if ne(variables['Build.SourceBranchName'], 'master') }}:
environments:
- name: "dev"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment