azure-pipelines.yml 1.6 KB
Newer Older
snehal jagtap's avatar
snehal jagtap committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: $(Date:yyyyMMdd)$(Rev:.r)

trigger:
- master
- feature/*

variables:
  - name: splitPipelineEnabled
    value: true

resources:
  repositories:
  - repository: templates
    type: git
    name: azure-pipeline-templates
    ref: master
  - repository: variables
    type: git
    name: vsts-release-management
    ref: master
  pipelines:
  - pipeline: Automation-Tests
    project: PDI
    source: Automation-Tests
    branch: master
  - pipeline: vsts-testresult-uploader
    project: PDI
    source: vsts-testresult-uploader
    branch: master
  - pipeline: pds-restassured-tests
    project: PDI
    source: pds-restassured-tests
    branch: master

stages:
- template: build-stage.yml@templates
  parameters:
    name: osdu-cloud-data-ingestion

- ${{ if eq( variables['splitPipelineEnabled'], 'false' ) }}:        
  - template: run-deploy-stage-list.yml@templates
    parameters:
      name: osdu-cloud-data-ingestion
      restAssuredSanityTest:
        enabled: true
        tagName: AvocetSanity
      smokeTest:
        enabled: false
      sanityTest:
        enabled: false
        testXMLFile: PDI-SanityTest-AvocetTestHarness.xml
      regressionTest:
        enabled: false

- ${{ if eq( variables['splitPipelineEnabled'], 'true' ) }}:        
  - template: run-deploy-stage-list-sp.yml@templates
    parameters:
      name: osdu-cloud-data-ingestion
      restAssuredSanityTest:
        enabled: true
        tagName: AvocetSanity
      smokeTest:
        enabled: false
      sanityTest:
        enabled: false
        testXMLFile: PDI-SanityTest-AvocetTestHarness.xml
      regressionTest:
        enabled: false