-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile
111 lines (111 loc) · 2.68 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
100
101
102
103
104
105
106
107
108
109
110
111
pipeline {
agent any
stages {
stage('Pull Upstream ChromiumOS Build') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Updating Source Code"
repo sync --force-sync'''
}
}
stage('Run OSLab Init Scripts') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Cleaning Up"
bash /OSLab/scripts/initOSLab '''
}
}
stage('Add My GPDPocket Overlay to the Build') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
echo "Updating Board Overlay"
rm -rf cd /OSLab/ChromiumOS/src/overlays/overlay-gpdpocket
cd /OSLab/ChromiumOS/src/overlays/
git clone git@github.com:KeithIMyers/overlay-gpdpocket.git'''
}
}
stage('Setup the Board') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Cleaning Up"
cros_sdk bash OSLab-initGPD.sh'''
}
}
stage('Add Custom Packages') {
steps {
sh '''#export PATH="$HOME/depot_tools:$PATH"
#umask 022
#cd /OSLab/ChromiumOS
#echo "Adding Flashrom"
#cros_sdk bash OSLab-AddFlashrom.sh'''
}
}
stage('Build Core OS From Source') {
steps {
echo 'This is going to take a while, best to grab a coffee or take a nap'
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Starting Core OS"
cros_sdk bash OSLab-BuildOSCore.sh'''
}
}
stage('Build Test Image') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Starting Core OS"
cros_sdk bash OSLab-BuildTestImage.sh'''
}
}
stage('Create VM From Test Image') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Starting Core OS"
cros_sdk bash OSLab-CreateVMfromTestImage.sh'''
}
}
stage('Spinning Up TestVM an Running Smoke Tests') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Spinning Up TestVM and Running Tests"
cros_sdk bash OSLab-RunUnitTests.sh'''
}
}
stage('Building Release Image') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Since Unit Testing Passed, it is time to build release images."
cros_sdk bash OSLab-BuildRelease.sh'''
}
}
stage('Creating OTA Package') {
steps {
sh '''export PATH="$HOME/depot_tools:$PATH"
umask 022
cd /OSLab/ChromiumOS
echo "Getting things ready"
cros_sdk bash OSLab-patchGPD'''
}
}
stage('Start OTA Server') {
steps {
sh 'bash /OSLab/scripts/start_devserver.sh'
}
}
}
}