@@ -11,58 +11,11 @@ def cpuCount = 6
11
11
def cpuCount_s = cpuCount.toString()
12
12
def imageName = buildImage(env: [ENABLE_GO_RACE_DETECTOR: "1", GOMAXPROCS: cpuCount_s], cpu: cpuCount_s)
13
13
14
- def memory = (cpuCount * 1536) as Integer
15
- pod(image: imageName + ":latest", kvm: true, cpu: "${cpuCount}", memory: "${memory}Mi") {
14
+ pod(image: imageName + ":latest", cpu: "2", memory: "2048Mi") {
16
15
checkout scm
17
16
18
17
stage("Unit tests") {
19
18
shwrap("make check")
20
19
shwrap("make unittest")
21
20
}
22
-
23
- shwrap("rpm -qa | sort > rpmdb.txt")
24
- archiveArtifacts artifacts: 'rpmdb.txt'
25
-
26
- // Run stage Build FCOS (init, fetch and build)
27
- cosaBuild(skipKola: 1, cosaDir: "/srv", noForce: true)
28
-
29
- // Run stage Kola QEMU (basic-qemu-scenarios, upgrade and self tests)
30
- kola(cosaDir: "/srv", addExtTests: ["${env.WORKSPACE}/ci/run-kola-self-tests"])
31
-
32
- stage("Build Metal") {
33
- cosaParallelCmds(cosaDir: "/srv", commands: ["metal", "metal4k"])
34
- }
35
-
36
- stage("Build Live Images") {
37
- // Explicitly test re-importing the ostree repo
38
- shwrap("cd /srv && rm tmp/repo -rf")
39
- utils.cosaCmd(cosaDir: "/srv", args: "buildextend-live --fast")
40
- }
41
-
42
- kolaTestIso(cosaDir: "/srv")
43
-
44
- stage("Build Cloud Images") {
45
- cosaParallelCmds(cosaDir: "/srv", commands: ["Aliyun", "AWS", "Azure", "DigitalOcean", "Exoscale", "GCP",
46
- "IBMCloud", "OpenStack", "VMware", "Vultr"])
47
-
48
- // quick schema validation
49
- utils.cosaCmd(cosaDir: "/srv", args: "meta --get name")
50
- }
51
-
52
- stage("Compress") {
53
- utils.cosaCmd(cosaDir: "/srv", args: "compress --fast")
54
- }
55
-
56
- stage("Upload Dry Run") {
57
- utils.cosaCmd(cosaDir: "/srv", args: "buildupload --dry-run s3 --acl=public-read my-nonexistent-bucket/my/prefix")
58
- }
59
-
60
- // Random other tests that aren't about building. XXX: These should be part of `make
61
- // check` or something and use dummy cosa builds.
62
- stage("CLI Tests") {
63
- shwrap("""
64
- cd /srv
65
- ${env.WORKSPACE}/tests/test_pruning.sh
66
- """)
67
- }
68
21
}
0 commit comments