forked from mike-liao/Alameda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (40 loc) · 1.17 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
node('go11') {
stage('checkout') {
git branch: 'master', url: "https://github.com/containers-ai/alameda.git"
}
stage("Build Operator") {
sh """
export GOROOT=/usr/local/go
export GOPATH=/go/src/workspace
mkdir -p /go/src/workspace/src/github.com/containers-ai
mv ${env.WORKSPACE} /go/src/workspace/src/github.com/containers-ai/alameda
cd /go/src/workspace/src/github.com/containers-ai/alameda/operator
make manager
"""
}
stage("Build Datahub") {
sh """
export GOROOT=/usr/local/go
export GOPATH=/go/src/workspace
cd /go/src/workspace/src/github.com/containers-ai/alameda/datahub
pwd
make datahub
"""
}
stage("Test Operator") {
sh """
export GOROOT=/usr/local/go
export GOPATH=/go/src/workspace
cd /go/src/workspace/src/github.com/containers-ai/alameda/operator
make test
"""
}
stage("Test Datahub") {
sh """
export GOROOT=/usr/local/go
export GOPATH=/go/src/workspace
cd /go/src/workspace/src/github.com/containers-ai/alameda/datahub
curl -s https://codecov.io/bash | bash -s - -t ee1341b8-56f3-4319-8146-afc464130075
"""
}
}