forked from cilium/packer-ci-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile-next
38 lines (35 loc) · 838 Bytes
/
Jenkinsfile-next
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
def vagrantUpload = { String branch ->
if (branch == "origin/master" || branch == "master") {
return '.'
} else {
return 'del(."post-processors"[])'
}
}
pipeline {
agent {
label 'vagrant'
}
options {
timeout(time: 200, unit: 'MINUTES')
timestamps()
}
environment {
JQ = vagrantUpload(env.GIT_BRANCH)
VAGRANTCLOUD_TOKEN = credentials('vagrantcloud token')
AWS_ACCESS_KEY_ID = credentials('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = credentials('AWS_SECRET_ACCESS_KEY')
}
stages {
stage('Ubuntu') {
steps {
sh 'make clean DISTRIBUTION=ubuntu-next'
sh 'make build DISTRIBUTION=ubuntu-next'
}
}
}
post {
always {
cleanWs()
}
}
}