-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
147 lines (129 loc) · 3.38 KB
/
.gitlab-ci.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
include:
- local: '.gitlab-ci-template.yml'
- project: clops/gitlab-ci-pop-analysis
ref: master
file: pop_analysis.yaml
- project: releng/common-gitlab-ci
ref: master
file: sbom-generate.yml
- project: altair/altair-build-common
ref: master
file: gitlab/ci/altair_versioning.yml
- project: altair/altair-build-common
ref: master
file: gitlab/ci/altair_common.yml
- project: qa-automation/test-integrations
ref: main
file: _ci/e2e_azure.yml
# List of job stages in their order of execution.
stages:
- build
- unit_test_and_coverage
- versioning
- analysis
- sbom
- e2e-publish
- e2e-setup
- e2e
- e2e-cleanup
- notification
variables:
BUILD_TOOL: npm
GIT_DEPTH: 10
BD_PRODUCT_GROUP: PolarisNG Projects Group
BD_VERSION_PHASE: DEVELOPMENT
PUBLISHER_ID: E2Etest
ORG_NAME : centralintegrations
TESTNG_FAILED_XML: test-output/testng-failed.xml
DISABLE_POLARIS_CLASSIC_ANALYSIS: "true"
##### MERGE REQUEST PIPELINE #####
build_job:
extends:
- .build
stage: build
unit_test_and_coverage_job:
stage: unit_test_and_coverage
extends:
- .unit_test_and_coverage
dependencies: [build_job]
.export_sbom_variables:
before_script:
- export EXT_VERSION=$(cat vss-extension.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
- export ARTIFACTORY_UPLOAD_REPO=1
- export SBOM_ART_TOKEN_VAULT_PATH=sbom/integrations/synopsys-extension-ci-cd
- export PRODUCT=Integrations
- export GENERATE_CONFIGURATION_FILE=1
- export PRODUCT_ADDON_SBOM_OPTIONS="--output-zipfile synopsys-extension-ci-cd-$EXT_VERSION.zip --debug"
- export GENERATION_OPTIONS="--entry integrations/mirrored-repos/synopsys-extension-ci-cd:synopsys-extension-ci-cd-$EXT_VERSION"
generate_sbom:
extends:
- .export_sbom_variables
- .run_sbom_generation
stage: sbom
only:
refs:
- main
polaris_bridge:
stage: analysis
extends: .polaris_bridge
pop_blackduck:
image: us-docker.pkg.dev/cloudops-artifacts-prd/polaris/ember_cli:3.28.5-node_16.14
variables:
POP_BLACKDUCK_INPROGRESS: 1
extends:
- .new_pop_blackduck
before_script:
- |
apt-get update -y
apt-get install -y rsync make jq python3 python3-pip
pip3 install blackduck requests
export RELEASE_VERSION=$(cat vss-extension.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
e2e-publish:
stage: e2e-publish
tags:
- linux
extends: .extension-publish
e2e-setup:
stage: e2e-setup
dependencies: [e2e-publish]
tags:
- linux
extends: .e2e-setup
e2e-linux:
stage: e2e
dependencies: [e2e-publish,e2e-setup]
tags:
- linux
extends: .e2e-extension
variables:
XML_PATH_IN_JAR: $XML
RUNNER_NAME: "Linux"
RUNNER_OS: "Linux"
e2e-mac:
stage: e2e
dependencies: [e2e-publish,e2e-setup]
tags:
- linux
extends: .e2e-extension
variables:
XML_PATH_IN_JAR: $XML
RUNNER_NAME: "Darwin"
RUNNER_OS: "Mac"
e2e-windows:
stage: e2e
dependencies: [e2e-publish,e2e-setup]
tags:
- linux
extends: .e2e-extension
variables:
XML_PATH_IN_JAR: $XML
RUNNER_NAME: "Windows_NT"
RUNNER_OS: "Windows"
e2e-clean-up:
stage: e2e-cleanup
dependencies: [e2e-publish,e2e-setup,e2e-linux,e2e-mac,e2e-windows]
tags:
- linux
extends: .e2e-clean-up
rules:
- when: always