forked from letsdev/lib-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
47 lines (42 loc) · 1.16 KB
/
Copy pathJenkinsfile
File metadata and controls
47 lines (42 loc) · 1.16 KB
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
47
@Library('ld-shared')
import de.letsdev.*
node('docker') {
def dockerImage
stage('Prepare') {
deleteDir()
checkout scm
dockerImage = docker.build('openssl')
}
GString options = """
-v ${env.WORKSPACE}:/home/build/app
-v ${env.HOME}/.m2:/home/build/.m2
-v ${env.HOME}/.gitconfig:/home/build/.gitconfig
-v ${env.HOME}/ld-config:/home/build/ld-config
"""
def pom = readMavenPom file: 'pom.xml'
def VERSION = pom.version
parallel(
failFast: true,
android: {
stage('android') {
dockerImage.inside(options) {
sh "./build-android.sh ${VERSION}"
sh 'mvn deploy -P android'
}
}
},
ios: {
stage('xcode-10-1') {
node('ios') {
deleteDir()
checkout scm
sh "./build-ios.sh ${VERSION}"
sh 'mvn deploy -P ios'
}
}
}
)
stage('tag') {
tagPush(VERSION)
}
}