-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-artifacts.Jenkinsfile
58 lines (49 loc) · 1.19 KB
/
build-artifacts.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
pipeline {
agent none
environment {
JOB_QT_APP = "silverkey-qt"
TMP_DIR = "/tmp/silverkey-build-artifacts"
}
stages {
stage('Build') {
parallel {
stage('linux') {
environment {
APP_NAME="silverkey"
}
agent {
docker {
image "ubuntu:xenial"
label 'master'
}
}
steps {
dir('/tmp') {
dir("${APP_NAME}") {
writeFile file: 'DEBIAN', text: '''
Package: silverkey
Version: 0.0-1
Section: base
Priority: optional
Architecture: amd64
Depends: rapidjson-dev
Maintainer: [email protected]
Description: Silverkey app
When you need some sunshine, just run this
small program!
'''
}
}
script {
step ([$class: 'CopyArtifact',
projectName: 'silverkey-ui-crossplatform-build-pipeline',
filter: "src/silverkey-qt-linux-x64_86",
target: "/tmp/${APP_NAME}/usr/local/bin/"]);
}
sh "dpkg-deb --build ${APP_NAME} ."
}
}
}
}
}
}