forked from sysdiglabs/terraform-provider-sysdig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
36 lines (33 loc) · 775 Bytes
/
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
pipeline {
agent none
environment {
SYSDIG_MONITOR_API_TOKEN = credentials('tech-marketing-token-monitor-lab')
SYSDIG_SECURE_API_TOKEN = credentials('tech-marketing-token-secure-lab')
GOCACHE="/tmp/go-build"
}
stages {
stage('Check code') {
agent {
docker {
image "commitsar/commitsar"
}
}
steps {
warnError('Conventional Commits not being followed') {
sh "commitsar"
}
}
}
stage('Tests') {
agent {
docker {
image "golang:1.13"
}
}
steps {
sh "make test"
sh "make testacc"
}
}
}
}