forked from Kong/kong-portal-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
46 lines (46 loc) · 883 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
36
37
38
39
40
41
42
43
44
45
46
pipeline {
agent {
node {
label 'docker-compose'
}
}
options {
timeout(time: 45, unit: 'MINUTES')
}
environment {
DOCKER_HOST = 'unix:///var/run/docker.sock'
COMPOSE_PROJECT_NAME = "${env.GIT_COMMIT}"
GITHUB_TOKEN = credentials('GH_PORTAL_TOKEN')
DOCKER_REGISTRY = credentials('DOCKERHUB_KONGCLOUD_PULL')
}
stages {
stage('Build') {
steps {
sh 'make -f bootstrap.mk'
sh 'make build'
}
}
stage('E2E') {
when {
anyOf {
branch 'master'
changeRequest target: 'master'
}
}
steps {
sh 'make run-e2e-kong-oauth'
sh 'make run-e2e-external-oauth'
}
}
stage('Portal Files') {
when {
anyOf {
branch 'master'
}
}
steps {
sh 'make create-portal-files'
}
}
}
}