-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcst.yml
111 lines (111 loc) · 3.13 KB
/
cst.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
schemaVersion: 2.0.0
metadataTest:
envVars:
- key: "USER"
value: "jenkins"
- key: "HOME"
value: "/home/jenkins"
- key: "XDG_RUNTIME_DIR"
value: "/run/jenkins/1000"
labels:
- key: io.jenkins-infra.tools
value: ".*git.*"
isRegex: true
- key: io.jenkins-infra.tools.gh.version
value: 2.65.0
- key: io.jenkins-infra.tools.jenkins-inbound-agent.version
value: 3283.v92c105e0f819-6
- key: io.jenkins-infra.tools.netlify-deploy.version
value: 0.1.8
- key: io.jenkins-infra.tools.asdf.version
value: 0.15.0
- key: io.jenkins-infra.tools.azcopy.version
value: 10.27.1
- key: io.jenkins-infra.tools.azure-cli.version
value: 2.68.0
- key: io.jenkins-infra.tools.typos.version
value: "1.14.6"
- key: io.jenkins-infra.tools.typos-checkstyle.version
value: "0.1.1"
entrypoint: ["/usr/local/bin/entrypoint.sh"]
cmd: []
workdir: "/home/jenkins"
fileExistenceTests:
- name: "entrypoint"
path: "/usr/local/bin/entrypoint.sh"
shouldExist: true
isExecutableBy: "any"
- name: "gh"
path: "/usr/local/bin/gh"
shouldExist: true
isExecutableBy: "any"
- name: "Bash"
path: "/bin/bash"
shouldExist: true
isExecutableBy: "any"
- name: "Curl"
path: "/usr/bin/curl"
shouldExist: true
isExecutableBy: "any"
- name: "Make"
path: "/usr/bin/make"
shouldExist: true
isExecutableBy: "any"
- name: "Git"
path: "/usr/bin/git"
shouldExist: true
isExecutableBy: "any"
- name: "azcopy"
path: "/usr/bin/azcopy"
shouldExist: true
isExecutableBy: "any"
- name: "Azure CLI"
path: "/usr/bin/az"
shouldExist: true
isExecutableBy: "any"
- name: "JQ"
path: "/usr/bin/jq"
shouldExist: true
isExecutableBy: "any"
- name: "zip"
path: "/usr/bin/zip"
shouldExist: true
isExecutableBy: "any"
- name: "typos"
path: "/usr/local/bin/typos"
shouldExist: true
isExecutableBy: "any"
- name: "typos-checkstyle"
path: "/usr/local/bin/typos-checkstyle"
shouldExist: true
isExecutableBy: "any"
- name: "subuid"
path: "/etc/subuid"
shouldExist: true
- name: "subgid"
path: "/etc/subgid"
shouldExist: true
- name: "temp directory for user jenkins"
path: "/run/jenkins/1000"
shouldExist: true
- name: "homedir of the user jenkins"
path: "/home/jenkins"
shouldExist: true
fileContentTests:
- name: "user jenkins exists"
path: "/etc/passwd"
expectedContents: [".*jenkins:x:1000:1000.*"]
- name: "subuid contains user jenkins with expected subordinate UIDs/GIDs"
path: "/etc/subuid"
expectedContents: [".*jenkins:100000:65536.*"]
- name: "subgid contains user jenkins with expected subordinate UIDs/GIDs"
path: "/etc/subgid"
expectedContents: [".*jenkins:100000:65536.*"]
- name: "Base OS is the expected distribution and versions"
path: "/etc/os-release"
expectedContents: ['PRETTY_NAME="Debian GNU/Linux 12 \(bookworm\)"']
commandTests:
- name: "Check that `java` is present in the PATH and default to JDK17"
command: "java"
args: ["--version"]
expectedOutput: ["Temurin-17"]