This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
/
.jenkinsfile
57 lines (57 loc) · 2.56 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
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.startServerScriptPath} --package-url ${env.mcuPackageBaseDir} --package-name \
${env.mcuPackageName} --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 --workspace ${WORKSPACE}"
}
}
}
}
stage('startP2PServer'){
agent{
node {
label "${env.p2pServer}"
}
}
steps{
script{
withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
sh "python ${env.startServerScriptPath} --p2p-server-path ${env.p2pServerPath} \
--owner open-webrtc-toolkit --repo owt-client-android --commit-id ${GIT_COMMIT} \
--git-branch ${GIT_BRANCH} --github-script ${env.serverGithubScriptPath} --mode p2p --workspace ${WORKSPACE}"
}
}
}
}
stage('runAndroidCICase'){
agent{
node {
label "${env.androidRunCaseServer}"
}
}
steps {
sh "docker run -v /dev/bus/usb:/dev/bus/usb -v ${env.androidCILogPath}:/home/logs --network host --privileged --rm ${env.androidSdkImage} \
python ${androidSdkTestScript} --git-branch ${GIT_BRANCH} --git-change-id ${env.CHANGE_ID} --owner open-webrtc-toolkit --project-repo owt-client-android \
--checks-repo owt-client-android --remote-dependence-host ${env.remoteDependenceHost} --remote-dependence-host-username ${env.remoteDependenceUserName} \
--remote-dependence-host-password ${env.remoteDependencePassword} --remote-dependence-path ${env.remoteDependecePath} \
--instrumentation ${env.androidSdkCaselistPath} --unit --p2p-server ${env.p2pServerUrl} --conference-server-http ${env.mcuServerUrl}"
}
}
}
}