Skip to content

Commit c5ec3ab

Browse files
committed
feat: Add Jenkinsfile for CI
Signed-off-by: Federico Barcelona <[email protected]>
1 parent f317ec8 commit c5ec3ab

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Jenkinsfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
pipeline {
2+
agent none
3+
4+
environment {
5+
SYSDIG_MONITOR_API_TOKEN = credentials('tech-marketing-token-monitor-lab')
6+
SYSDIG_SECURE_API_TOKEN = credentials('tech-marketing-token-secure-lab')
7+
GOCACHE="/tmp/go-build"
8+
}
9+
10+
stages {
11+
stage('Check code') {
12+
agent {
13+
docker {
14+
image "commitsar/commitsar"
15+
}
16+
}
17+
steps {
18+
warnError('Conventional Commits not being followed') {
19+
sh "commitsar"
20+
}
21+
}
22+
}
23+
stage('Tests') {
24+
agent {
25+
docker {
26+
image "golang:1.13"
27+
}
28+
}
29+
steps {
30+
sh "make test"
31+
sh "make testacc"
32+
}
33+
}
34+
}
35+
}
36+

0 commit comments

Comments
 (0)