-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
63 lines (60 loc) · 2.24 KB
/
.gitlab-ci.yml
File metadata and controls
63 lines (60 loc) · 2.24 KB
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
include:
- template: Jobs/Dependency-Scanning.gitlab-ci.yml
- template: Security/Secret-Detection.gitlab-ci.yml
- component: $CI_SERVER_FQDN/onelitefeather/ci-components/core-stages@0.3.9
- component: $CI_SERVER_FQDN/onelitefeather/ci-components/gradle-build-cache@0.3.9
- component: $CI_SERVER_FQDN/onelitefeather/ci-components/gradle-java-pipeline-versions-rules@0.3.9
- component: $CI_SERVER_FQDN/onelitefeather/ci-components/basic-rules@0.3.9
variables:
SECURE_ANALYZERS_PREFIX: "${HTL_NEXUS_PROXY}/security-products"
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
GRADLE_OPTS: "-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false"
GRADLE_IMAGE: "${HTL_NEXUS_PROXY}/gradle:8.10.2-jdk21"
build:
stage: build
image: $GRADLE_IMAGE
tags:
- saas-linux-medium-amd64
extends:
- .gradle-project-cache
rules:
- !reference [.gradle-java-image-rules, rules]
- !reference [.workflow-rules-run-on-merge-request, rules]
- !reference [.workflow-rules-run-on-default-branch, rules]
- !reference [.workflow-rules-run-on-main, rules]
- !reference [ .workflow-rules-run-on-label-publish, rules ]
- !reference [ .workflow-rules-run-on-tags, rules ]
script:
- gradle build -x test
test:
stage: test
image: $GRADLE_IMAGE
tags:
- saas-linux-medium-amd64
extends:
- .gradle-project-cache
rules:
- !reference [ .gradle-java-image-rules, rules ]
- !reference [ .workflow-rules-run-on-merge-request, rules ]
- !reference [ .workflow-rules-run-on-default-branch, rules ]
- !reference [ .workflow-rules-run-on-main, rules ]
- !reference [ .workflow-rules-run-on-label-publish, rules ]
- !reference [ .workflow-rules-run-on-tags, rules ]
script:
- gradle test
publish gradle:
stage: publish
image: $GRADLE_IMAGE
tags:
- saas-linux-medium-amd64
extends:
- .gradle-project-cache
rules:
- !reference [ .gradle-java-image-rules, rules ]
- !reference [ .workflow-rules-run-on-merge-request, rules ]
- !reference [ .workflow-rules-run-on-default-branch, rules ]
- !reference [ .workflow-rules-run-on-main, rules ]
- !reference [ .workflow-rules-run-on-label-publish, rules ]
- !reference [ .workflow-rules-run-on-tags, rules ]
script:
- gradle publish