forked from open-webrtc-toolkit/owt-client-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jenkinsfile
59 lines (59 loc) · 2.35 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
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 "python ${env.startServerScript} --package-url ${env.mcuPackageUrl} --package-name \
mcu-all-bin-v{data}.tgz --base-dir ${env.mcuServerBasePath} --git-branch ${GIT_BRANCH} \
--owner open-webrtc-toolkit --repo owt-client-android --commit-id ${GIT_COMMIT} \
--github-script ${env.serverGithubScriptPath} --mode mcu"
}
}
}
}
stage('startP2PServer'){
agent{
node {
label "${env.p2pServer}"
}
}
steps{
script{
withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
sh "python ${env.startServerScript} --p2p-server-path ${env.p2pServerPath} \
--owner open-webrtc-toolkit --repo owt-client-android --commit-id ${GIT_COMMIT} \
--github-script ${env.serverGithubScriptPath} --mode p2p"
}
}
}
}
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} \
--instrumentation ${env.androidCIScriptPath}/caselist.json --unit \
--p2p-server http://${env.p2pServer}:8095 --conference-server-http http://${env.mcuServer}:3001 \
--mode ci --owner open-webrtc-toolkit --repo owt-client-android --commit-id ${GIT_COMMIT} \
--github-script ${env.androidTestGithubScriptPath}"
}
}
}
}