blob: ad6a56811f7a7fe2c0e257f28eae633c0ff76999 (
plain) (
blame)
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
|
String cron_string = BRANCH_NAME == "master" ? "@daily" : ""
pipeline {
agent none
options { parallelsAlwaysFailFast() }
triggers { cron(cron_string) }
stages {
stage('Lint') {
agent {
docker {
image "chn2guevara/nvim:stable"
alwaysPull true
}
}
steps { sh 'make lint' }
}
stage('Test') {
matrix {
agent {
docker {
image "${DOCKER_IMAGE}"
alwaysPull true
customWorkspace "workspace/${JOB_NAME}/IMAGE/${DOCKER_IMAGE}/"
}
}
axes {
axis {
name 'DOCKER_IMAGE'
values 'chn2guevara/nvim:stable', 'chn2guevara/nvim:nightly'
}
}
stages {
stage('Test') {
steps {
sh '''
apk update && \
apk add go && \
mkdir tmp && \
cd tmp && \
git clone https://github.com/prometheus/prometheus.git . && \
GO111MODULE=on go install github.com/prometheus/prometheus/cmd/promtool && \
export PATH="/root/go/bin/:${PATH}" && \
cd .. && \
make test
'''
}
}
}
}
}
}
}
|