forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-manual-cleanup.yml
84 lines (77 loc) · 1.86 KB
/
.gitlab-manual-cleanup.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
image: artifactory.tooling.stackstate.io/docker-virtual/stackstate/stackstate-agent-runner-gitlab:latest7
stages:
- manual_cleanup
## prepare stage
clear_deps_deb_cache:
stage: manual_cleanup
before_script: []
cache:
policy: push
key: "deps-deb-$STS_VER-$CI_COMMIT_REF_SLUG"
paths:
- vendor
- venv
script:
- rm -rf $CI_PROJECT_DIR/venv
- rm -rf $CI_PROJECT_DIR/vendor
rules:
- when: manual
clear_deps_rpm_cache:
stage: manual_cleanup
before_script: []
cache:
policy: push
key: "deps-rpm-$STS_VER-$CI_COMMIT_REF_SLUG"
paths:
- vendor
- venv
script:
- rm -rf $CI_PROJECT_DIR/venv
- rm -rf $CI_PROJECT_DIR/vendor
rules:
- when: manual
clear_deps_win_cache:
stage: manual_cleanup
before_script:
- set WIN_CI_PROJECT_DIR=%CD%
- set WORKON_HOME=%WIN_CI_PROJECT_DIR%
cache:
policy: push
key: "deps-win-$STS_VER-$CI_COMMIT_REF_SLUG"
paths:
- vendor
- venv
script:
- "if (Test-Path %WIN_CI_PROJECT_DIR%\\vendor) { Remove-Item -Force -Recurse %WIN_CI_PROJECT_DIR%\\vendor }"
- "if (Test-Path %WIN_CI_PROJECT_DIR%\\venv) { Remove-Item -Force -Recurse %WIN_CI_PROJECT_DIR%\\venv }"
- "if (Test-Path C:\\opt\\stackstate-agent) { Remove-Item -Force -Recurse C:\\opt\\stackstate-agent }"
tags:
- windows_agent7_ps1
rules:
- when: manual
clear_build_deb_cache:
stage: manual_cleanup
interruptible: true
cache:
policy: push
key: "build-deb-$STS_VER-$CI_COMMIT_REF_SLUG"
paths:
- .omnibus
script:
- mkdir -p .omnibus
- rm -rf .omnibus/*
rules:
- when: manual
clear_build_rpm_cache:
stage: manual_cleanup
interruptible: true
cache:
policy: push
key: "build-rpm-$STS_VER-$CI_COMMIT_REF_SLUG"
paths:
- .omnibus
script:
- mkdir -p .omnibus
- rm -rf .omnibus/*
rules:
- when: manual