forked from sovrin-foundation/sovrin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
24 lines (20 loc) · 818 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
#!groovy
@Library('SovrinHelpers@v1.2.1') _
def name = 'sovrin'
def buildDebUbuntu = { repoName, releaseVersion, sourcePath ->
def volumeName = "sovrin-deb-u1604"
if (env.BRANCH_NAME != '' && env.BRANCH_NAME != 'master') {
volumeName = "${volumeName}.${BRANCH_NAME}"
}
if (sh(script: "docker volume ls -q | grep -q '^$volumeName\$'", returnStatus: true) == 0) {
sh "docker volume rm $volumeName"
}
dir('build-scripts/ubuntu-1604') {
sh "./build-sovrin-docker.sh \"$sourcePath\" $releaseVersion $volumeName"
}
return "$volumeName"
}
options = new TestAndPublishOptions()
options.enable([StagesEnum.PACK_RELEASE_COPY, StagesEnum.PACK_RELEASE_COPY_ST])
options.setCopyWithDeps(false)
testAndPublish(name, [ubuntu: [:]], true, options, [ubuntu: buildDebUbuntu])