-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathJenkinsfile
More file actions
62 lines (57 loc) · 2.07 KB
/
Jenkinsfile
File metadata and controls
62 lines (57 loc) · 2.07 KB
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
pipeline {
agent any
stages {
stage("Parallel") {
parallel {
stage("Docker build & test x86_64") {
agent { label "medium && x64" }
steps {
sh 'git clean -xdff'
checkout scm
sh '''
uv venv --python 3.14 --clear
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
uv run update.py --cratedb-version ${VERSION} > Dockerfile
docker build \
--pull \
--platform linux/amd64 \
--rm \
--force-rm \
--file ./Dockerfile . \
--tag crate/crate:ci_test
rm -rf ./official-images
git clone --filter=blob:none https://github.com/docker-library/official-images.git ./official-images
./official-images/test/run.sh crate/crate:ci_test
'''.stripIndent()
sh 'uv run -m unittest -v'
}
}
stage("Docker build & test aarch64") {
agent { label "medium && aarch64" }
steps {
sh 'git clean -xdff'
checkout scm
sh '''
uv venv --python 3.14 --clear
uv pip install -r requirements.txt
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
uv run update.py --cratedb-version ${VERSION} > Dockerfile
docker build \
--pull \
--platform linux/arm64 \
--rm \
--force-rm \
--file ./Dockerfile . \
--tag crate/crate:ci_test
rm -rf ./official-images
git clone --filter=blob:none https://github.com/docker-library/official-images.git ./official-images
./official-images/test/run.sh crate/crate:ci_test
'''.stripIndent()
sh 'uv run -m unittest -v'
}
}
}
}
}
}