Commit acbfe869 authored by SGupta79's avatar SGupta79
Browse files

update the pipeline

parent 0141cfae
Pipeline #26435 failed with stages
in 209 minutes and 44 seconds
...@@ -34,9 +34,6 @@ resources: ...@@ -34,9 +34,6 @@ resources:
- repository: TemplateRepo - repository: TemplateRepo
type: git type: git
name: infra-azure-provisioning name: infra-azure-provisioning
- repository: security-templates
type: git
name: security-infrastructure
variables: variables:
- group: 'Azure - OSDU' - group: 'Azure - OSDU'
...@@ -56,31 +53,42 @@ variables: ...@@ -56,31 +53,42 @@ variables:
value: 'false' value: 'false'
- name: SKIP_DEPLOY - name: SKIP_DEPLOY
value: 'false' value: 'false'
- name: 'MAVEN_CACHE_FOLDER'
value: $(Pipeline.Workspace)/.m2/repository
- name: ssrId
value: 8995
stages: stages:
- template: chart/task/deploy.yml - 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
parameters: parameters:
serviceName: ${{ variables.serviceName }} serviceName: ${{ variables.serviceName }}
chartPath: ${{ variables.chartPath }} chartPath: ${{ variables.chartPath }}
valuesFile: ${{ variables.valuesFile }} valuesFile: ${{ variables.valuesFile }}
skipDeploy: ${{ variables.SKIP_DEPLOY }}
skipTest: ${{ variables.SKIP_TESTS }}
testCoreMavenPomFile: 'testing/schema-test-core/pom.xml' testCoreMavenPomFile: 'testing/schema-test-core/pom.xml'
testCoreMavenGoal: 'clean package' testCoreMavenOptions: '--settings $(System.DefaultWorkingDirectory)/drop/.mvn/community-maven.settings.xml -DskipTests -DskipITs'
integrationTestMavenGoal: 'verify' integrationTestMavenGoal: 'verify'
ssrId: ${{ variables.ssrId }} skipDeploy: ${{ variables.SKIP_DEPLOY }}
mvnCacheFolder: ${{ variables.MAVEN_CACHE_FOLDER }} skipTest: ${{ variables.SKIP_TESTS }}
${{ if eq(variables['Build.SourceBranchName'], 'master') }}: providers:
environments: - name: Azure
- name: "dev" environments: ['demo']
- name: "qa" - template: bootstrap-stage.yml
- name: "prd" parameters:
- name: "weu" serviceName: ${{ variables.serviceName }}
- name: "cvn" providers:
${{ if ne(variables['Build.SourceBranchName'], 'master') }}: - name: Azure
environments: environments: ['demo']
- 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