forked from Kwan-young-hoo/ToPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
55 lines (55 loc) · 1.23 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
pipeline {
agent any
stages {
stage('Build openWRT') {
parallel {
stage('Build openWRT') {
steps {
sh '''ls -al
whoami'''
echo 'Compile openWRT'
}
}
stage('CPP Check') {
steps {
sh 'cppcheck mtk-openwrt-4.0.1.0'
}
}
stage('Build openWRT') {
steps {
sh '''echo "version check"
./build.sh openwrt'''
}
}
}
}
stage('Build Bootloader') {
parallel {
stage('Build Bootloader') {
steps {
echo 'TEST TODO'
sh 'ls -al'
}
}
stage('CPP Check') {
steps {
echo 'TODO'
}
}
}
}
stage('Copy Image to tftpboot') {
steps {
sh '''whoami
ls -al mtk-openwrt-4.0.1.0/bin/targets/mediatek/mt7622-glibc'''
sh '''./build.sh openwrt-release
ls -al /tftpboot'''
}
}
stage('Send Slack Messsage') {
steps {
slackSend(message: 'cAP - building openmtk4010 success!', baseUrl: 'https://withusplanet.slack.com/services/hooks/jenkins-ci/', failOnError: true, color: 'Red', token: 'VevfQyHTHojGYOf0rvY3PRKG')
}
}
}
}