-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcst.yml
70 lines (70 loc) · 1.79 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
schemaVersion: 2.0.0
metadataTest:
envVars:
- key: DEBIAN_FRONTEND
value: noninteractive
- key: TZ
value: UTC
labels:
- key: 'project'
value: 'https://github.com/jenkins-infra/docker-packaging'
user: jenkins
fileExistenceTests:
- name: 'RPM Macros'
path: '/etc/rpm/macros'
shouldExist: true
- name: 'Debian devscript manifest'
path: '/etc/devscripts.conf'
shouldExist: true
- name: "Default user's home"
path: '/home/jenkins'
shouldExist: true
- name: "SSH known hosts"
path: '/home/jenkins/.ssh/known_hosts'
shouldExist: true
# CLI binaries
- name: 'Bash'
path: '/bin/bash'
shouldExist: true
isExecutableBy: 'any'
- name: 'Git'
path: '/usr/bin/git'
shouldExist: true
isExecutableBy: 'any'
- name: 'Fakeroot'
path: '/usr/bin/fakeroot'
shouldExist: true
isExecutableBy: 'any'
- name: 'GPG'
path: '/usr/bin/gpg'
shouldExist: true
isExecutableBy: 'any'
- name: 'GPG Agent'
path: '/usr/bin/gpg-agent'
shouldExist: true
isExecutableBy: 'any'
- name: 'Make'
path: '/usr/bin/make'
shouldExist: true
isExecutableBy: 'any'
- name: 'Curl'
path: '/usr/bin/curl'
shouldExist: true
isExecutableBy: 'any'
- name: 'JV'
path: '/usr/local/bin/jv'
shouldExist: true
isExecutableBy: 'any'
- name: 'G++ from build-essential'
path: '/usr/bin/g++'
shouldExist: true
isExecutableBy: 'any'
commandTests:
- name: "Check that `java` 17 binary for agent processes is present"
command: "/opt/jdk-17/bin/java"
args: ["--version"]
expectedOutput: ["Temurin-17"]
- name: "Check that 'maven' and `java` are present in the PATH and default to JDK11 + 3.8.6"
command: "mvn"
args: ["-v"]
expectedOutput: ["Java version: 17.", 3.9.9]