forked from takipi-field/overops-event-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
72 lines (61 loc) · 1.74 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
image: overops/overops-gitlab-plugin:2.34.0
variables:
OVEROPS_APPLICATION_NAME: ${CI_PROJECT_NAME}
OVEROPS_DEPLOYMENT_NAME: job-${CI_COMMIT_SHORT_SHA}
OVEROPS_MARK_UNSTABLE: "true"
OVEROPS_NEW_EVENTS: "true"
OVEROPS_RESURFACED_ERRORS: "true"
OVEROPS_MAX_ERROR_VOLUME: 5
OVEROPS_MAX_UNIQUE_ERRORS: 5
OVEROPS_CRITICAL_EXCEPTION_TYPES: "ExampleCaughtException, NullPointerException, SAXParseException"
OVEROPS_PRINT_TOP_ISSUES: 5
OVEROPS_SHOW_EVENTS_FOR_PASSED_GATES: "true"
OVEROPS_DEBUG: "true"
stages:
- build
- test
- overops
compile-assets:
stage: build
script:
- echo Success!
retrieve-test-scripts:
stage: build
script:
- echo Success!
compile-app:
stage: build
script:
- echo Success!
code_quality-reviews:
stage: test
script:
- echo Success!
danger-review:
stage: test
script:
- echo Success!
invoke-collector:
stage: test
script:
- wget -q --content-disposition https://app.overops.com/app/download?t=sa-tgz
- tar xzf takipi-agent-*.tar.gz
- echo takipi.deployment.name=job-${CI_COMMIT_SHORT_SHA} > takipi/agent.properties
- echo takipi.application.name=${CI_PROJECT_NAME} >> takipi/agent.properties
- echo takipi.collector.host=${TAKIPI_COLLECTOR_HOST} >> takipi/agent.properties
- echo takipi.collector.port=${TAKIPI_COLLECTOR_PORT} >> takipi/agent.properties
- echo shutdownGraceTime=20000 >> takipi/agent.properties
- ./mvnw -DargLine=-agentpath:./takipi/lib/libTakipiAgent.so test
overops:
stage: overops
when: on_success
allow_failure: false
artifacts:
name: "OverOps Quality Report $CI_JOB_ID"
when: always
paths:
- quality-report.html
untracked: true
expire_in: 90 days
script:
- /opt/run-quality-report.sh