-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathJenkinsfile
53 lines (53 loc) · 1.82 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
41
42
43
44
45
46
47
48
49
50
51
52
53
node ('master') {
stage('Cleanup') {
sh 'rm -rf *'
}
stage('Checkout') {
checkout([$class: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: '2f075d3a-5c1e-4e60-ad74-208148e12e45',
url: 'https://github.com/K2InformaticsGmbH/dderl']]
])
}
stage('Build') {
env.INSTANT_CLIENT_LIB_PATH = "/usr/lib/oracle/12.1/client64/lib/"
env.INSTANT_CLIENT_INCLUDE_PATH = "/usr/include/oracle/12.1/client64/"
env.ERL_INTERFACE_DIR = "/usr/lib64/erlang/lib/erl_interface-3.8.2"
sh 'rebar3 as prod release'
}
stage('Package') {
sh 'rebar3 as prod erlpkg'
}
stage('Archive') {
archiveArtifacts artifacts: '_build/prod/rel/erlpkg/**/*.rpm', onlyIfSuccessful: true
}
}
node ('windows7_vm') {
stage('Cleanup') {
bat 'for /D %%p IN ("*.*") do rmdir "%%p" /s /q'
}
stage('Checkout') {
checkout([$class: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: '2f075d3a-5c1e-4e60-ad74-208148e12e45',
url: 'https://github.com/K2InformaticsGmbH/dderl']]
])
}
stage('Build') {
env.INSTANT_CLIENT_LIB_PATH = "C:\\oracle\\instantclient\\instantclient_12_1"
env.ERL_INTERFACE_DIR = "C:\\Program Files\\erlang\\erl7.0\\lib\\erl_interface-3.8"
bat 'rebar3 as prod release'
}
stage('Package') {
bat 'rebar3 as prod erlpkg'
}
stage('Archive') {
archiveArtifacts artifacts: 'rel/erlpkg_release/build/**/*.msi', onlyIfSuccessful: true
}
}