forked from open-webrtc-toolkit/owt-client-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkinsfile
52 lines (52 loc) · 1.62 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
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr:'20'))
timeout(time: 30, unit: 'MINUTES')
}
stages {
stage('startMCU'){
agent{
node {
label "${env.mcuServer}"
}
}
steps {
script{
withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
sh "${env.mcuScriptPath}/startmcu.sh"
}
}
}
}
stage('startP2PServer'){
agent{
node {
label "${env.p2pServer}"
}
}
steps{
script{
withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
sh "${env.p2pScriptPath}/startP2PServer.sh"
}
}
}
}
stage('runAndroidCICase'){
agent{
node {
label "${env.androidRunCaseServer}"
customWorkspace "${env.androidSourcePath}"
}
}
steps {
sh "python ${env.androidCIScriptPath}/runTest.py --log-dir ${env.androidCILogPath}/${GIT_COMMIT} \
--dependencies-dir ${env.andoridLibWebrtcPath} --source-path ${env.androidSourcePath} \
--caselist-path ${env.androidCIScriptPath}/caselist.json \
--p2p-server http://${env.p2pServer}:8095 --conference-server-http http://${env.mcuServer}:3001"
}
}
}
}