-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
62 lines (58 loc) · 3.28 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
pipeline {
agent none
triggers {
pollSCM('H/30 * * * *')
upstream(upstreamProjects: 'rustic/daemon/master,rustic/web-app/master,rustic/party-mode/master', threshold: hudson.model.Result.SUCCESS)
}
stages {
stage('Package') {
parallel {
stage('Linux') {
agent any
steps {
copyArtifacts filter: 'linux-x86_64/rustic', flatten: true, projectName: '/rustic/daemon/master', target: 'linux'
copyArtifacts filter: 'linux-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/daemon/master', target: 'linux/extensions'
copyArtifacts filter: 'linux-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/party-mode/master', target: 'linux/extensions'
copyArtifacts filter: 'rustic-web-client.zip', projectName: '/rustic/web-app/master'
unzip zipFile: 'rustic-web-client.zip', dir: 'linux/static'
}
post {
success {
zip zipFile: 'rustic-linux.zip', archive: true, dir: 'linux'
}
}
}
stage('Windows') {
agent any
steps {
copyArtifacts filter: 'win32-x86_64/rustic.exe', flatten: true, projectName: '/rustic/daemon/master', target: 'windows'
copyArtifacts filter: 'win32-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/daemon/master', target: 'windows/extensions'
copyArtifacts filter: 'win32-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/party-mode/master', target: 'windows/extensions'
copyArtifacts filter: 'rustic-web-client.zip', projectName: '/rustic/web-app/master'
unzip zipFile: 'rustic-web-client.zip', dir: 'windows/static'
}
post {
success {
zip zipFile: 'rustic-windows.zip', archive: true, dir: 'windows'
}
}
}
stage('macOS') {
agent any
steps {
copyArtifacts filter: 'osx-x86_64/rustic', flatten: true, projectName: '/rustic/daemon/master', target: 'macos'
copyArtifacts filter: 'osx-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/daemon/master', target: 'macos/extensions'
copyArtifacts filter: 'osx-x86_64/extensions/*', flatten: true, optional: true, projectName: '/rustic/party-mode/master', target: 'macos/extensions'
copyArtifacts filter: 'rustic-web-client.zip', projectName: '/rustic/web-app/master'
unzip zipFile: 'rustic-web-client.zip', dir: 'macos/static'
}
post {
success {
zip zipFile: 'rustic-macos.zip', archive: true, dir: 'macos'
}
}
}
}
}
}
}