-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
74 lines (74 loc) · 2.49 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
pipeline
{
agent none
stages
{
stage ('DE10 5.4.34 Ubunt 18.04.5')
{
agent {label 'DE10-5.4.34-Ubuntu_18.04.5_LTS'}
stages
{
stage('Copy LKM Artifacts')
{
steps
{ dir("frost_edge")
{
sh 'mkdir -p lkms;'
copyArtifacts filter: 'FE_AD1939.ko, FE_AD7768_4.ko, FE_PGA2505.ko, FE_TPA613A2.ko', fingerprintArtifacts: true, projectName: 'Linux_LKMs', selector: lastSuccessful(), target: 'lkms'
}
}
}
stage('Copy Web App Artifacts')
{
steps
{ dir("frost_edge")
{
sh 'mkdir -p web_app;'
copyArtifacts filter: 'swap/NIH/FrOST_Web_App/OST-Webapp.zip', fingerprintArtifacts: true, projectName: 'FrOST Web App', selector: lastSuccessful(), target: 'web_app'
sh 'unzip web_app/swap/NIH/FrOST_Web_App/OST-Webapp.zip'
}
}
}
stage('Clone Utils Repo')
{
steps
{ dir("frost_edge")
{
sh'git clone https://github.com/fpga-open-speech-tools/utils.git;'
}
}
}
stage('Packaging')
{
steps
{ dir("frost_edge/packaging/")
{
sh 'dch -v`date "+%Y%m%d"` -m "Automated Build" -b'
sh 'dpkg-buildpackage -b'
}
}
}
stage('Archive')
{
steps
{
dir("frost_edge/")
{
archiveArtifacts artifacts: 'frost-edge_*.deb', fingerprint: true
}
}
}
stage('Cleanup')
{
steps
{
deleteDir()
dir("${workspace}@tmp") {
deleteDir()
}
}
}
}
}
}
}