-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
executable file
·73 lines (59 loc) · 2.63 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
pipeline {
agent any
environment {
project = 'LikeTaskManager' // "abis","FOS","IDSDisplay","KLI","kumovis"
qmakepath = '/home/jk/Qt/5.14.1/gcc_64/bin/qmake'
desktopfile_name = 'LikeTaskManager.desktop'
executable_name = 'LikeTaskManager'
appimage_name = 'LikeTaskManager'
pro_file = 'LikeTaskManager.pro'
core_count = '12'
}
stages {
stage('make clean') {
steps {
// sh 'svn update --accept tf /home/jk/qtprojects/${project}/src'
dir ("/home/jk/qtprojects/${project}/appimgreleaseci") {
sh 'make clean -j${core_count}'
}
dir ("/home/jk/qtprojects/${project}/src") {
sh 'git pull origin master'
}
}
}
stage('qmake') {
steps {
dir ("/home/jk/qtprojects/${project}/appimgreleaseci") {
sh '${qmakepath} /home/jk/qtprojects/${project}/src/${pro_file} -spec linux-g++ CONFIG+=qtquickcompiler'
}
}
}
stage('make') {
steps {
dir ("/home/jk/qtprojects/${project}/appimgreleaseci") {
sh 'make -j${core_count}'
}
}
}
stage('linuxdeployqt') {
steps {
dir ("/home/jk/qtprojects/${project}/appimgreleaseci") {
sh 'rm /home/jk/qtprojects/${project}/AppDir/usr/bin/${executable_name}' //FOS-Projekt?
sh 'cp ${executable_name} /home/jk/qtprojects/${project}/AppDir/usr/bin/'
}
dir ("/home/jk/qtprojects/${project}/appimgstageing") {
sh '/home/jk/stageing/linuxdeployqt-6-x86_64.AppImage /home/jk/qtprojects/${project}/AppDir/usr/share/applications/${desktopfile_name} -appimage -bundle-non-qt-libs -qmake=$qmakepath -verbose=2 -updateinformation="zsync|https://github.com/rejuce/LikeTaskManager/releases/latest/download/LikeTaskManager-x86_64.AppImage.zsync"'
}
}
}
stage('copy files') {
steps {
dir ("/home/jk/qtprojects/${project}/appimgreleaseci") {
sh 'ifconfig'
}
// sh 'rsync /home/jk/qtprojects/${project}/appimgstageing/${appimage_name}-x86_64.AppImage [email protected]:/var/www/data'
// sh 'rsync /home/jk/qtprojects/${project}/appimgstageing/${appimage_name}-x86_64.AppImage.zsync [email protected]:/var/www/data'
}
}
}
}