-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathJenkinsfile
100 lines (83 loc) · 3.2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!groovy
pipeline {
agent any
options { buildDiscarder(logRotator(numToKeepStr: '5')) }
stages {
stage('Checkout') {
steps {
cleanWs()
checkout scm
sh label: '', script: 'git submodule update --init'
}
}
stage('XCompile native code') {
parallel {
stage('Xcompile darwin:') {
steps {
sh "./scripts/darwin64_build.sh"
}
}
stage('Xcompile linux32') {
steps {
sh "./scripts/linux32_build.sh"
}
}
stage('Xcompile linux64') {
steps {
sh "./scripts/linux64_build.sh"
/* dir("build/linux-x64") {
script {
sh label: '', script: './linux-x64-dockcross ./rabbitmq-core/unit-test-rabbitmq-core'
}
}*/
/* dir("build/linux-x64/rabbitmq-fmu") {
script {
sh label: '', script: './../linux-x64-dockcross ./unit-test-rabbitmq'
}
}*/
}
}
stage('Xcompile win32') {
steps {
sh "./scripts/win32_build.sh"
}
}
stage('Xcompile win64') {
steps {
sh "./scripts/win64_build.sh"
}
}
}
}
stage('Pack FMU') {
steps {
script {
sh label: 'packing', script: './scripts/pack_fmu.sh'
}
}
}
stage('Publish') {
steps {
sshPublisher(
publishers: [sshPublisherDesc(
configName: 'overture.au.dk - into-cps',
transfers: [sshTransfer(
cleanRemote: false,
excludes: '',
execCommand: "~/update-latest.sh web/into-cps/rabbitmqfmu/${BRANCH_NAME}",
execTimeout: 120000,
flatten: true,
makeEmptyDirs: false,
noDefaultExcludes: false,
patternSeparator: '[, ]+',
remoteDirectory: '\'rabbitmqfmu/${BRANCH_NAME}/Build-${BUILD_NUMBER}_\'yyyy-MM-dd_HH-mm',
remoteDirectorySDF: true,
removePrefix: '',
sourceFiles: 'build/*.fmu')],
usePromotionTimestamp: false,
useWorkspaceInPromotion: false,
verbose: false)])
}
}
}
}