forked from crate/crate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
78 lines (78 loc) · 2.07 KB
/
Jenkinsfile
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
pipeline {
agent any
tools {
// used to run gradle
jdk 'jdk11'
}
options {
timeout(time: 45, unit: 'MINUTES')
}
environment {
CI_RUN = 'true'
}
stages {
stage('Parallel') {
parallel {
stage('sphinx') {
agent { label 'medium' }
steps {
sh 'cd ./blackbox/ && ./bootstrap.sh'
sh './blackbox/.venv/bin/sphinx-build -n -W -c docs/ -b html -E docs/ docs/out/html'
sh 'find ./blackbox/*/src/ -type f -name "*.py" | xargs ./blackbox/.venv/bin/pycodestyle'
}
}
stage('SQL tests') {
agent { label 'large' }
environment {
CODECOV_TOKEN = credentials('cratedb-codecov-token')
}
steps {
sh 'git clean -xdff'
checkout scm
sh './gradlew --no-daemon --parallel -PtestForks=8 test forbiddenApisMain jacocoReport'
sh 'curl -s https://codecov.io/bash | bash'
}
post {
always {
junit '*/build/test-results/test/*.xml'
}
}
}
stage('itest') {
agent { label 'medium' }
steps {
sh 'git clean -xdff'
checkout scm
sh 'python3 ./blackbox/kill_4200.py'
sh './gradlew --no-daemon itest'
}
}
stage('ce itest') {
agent { label 'medium' }
steps {
sh 'git clean -xdff'
checkout scm
sh 'python3 ./blackbox/kill_4200.py'
sh './gradlew --no-daemon ceItest'
}
}
stage('ce licenseTest') {
agent { label 'medium' }
steps {
sh 'git clean -xdff'
checkout scm
sh './gradlew --no-daemon ceLicenseTest'
}
}
stage('blackbox tests') {
agent { label 'medium' }
steps {
sh 'git clean -xdff'
checkout scm
sh './gradlew --no-daemon hdfsTest s3Test monitoringTest gtest dnsDiscoveryTest'
}
}
}
}
}
}