This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,30 @@ pipeline {
15
15
timeout(time: 40, unit: "MINUTES")
16
16
}
17
17
stages {
18
+ stage("init parameters"){
19
+ steps {
20
+ script {
21
+ if (env.CHANGE_TARGET == null){
22
+ env.CHANGE_TARGET = env.GIT_BRANCH
23
+ }
24
+ }
25
+ }
26
+ }
27
+
18
28
stage('Build'){
19
29
agent{
20
30
node {
21
- label "${env.androidBuldNativeServer }"
22
- customWorkspace "${env.owtClientNativePath} "
31
+ label "${env.androidBuildNativeServer }"
32
+ customWorkspace "${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src "
23
33
}
24
34
}
25
35
steps {
26
36
script{
27
37
sh "gclient sync"
28
- sh "python ${env.androidBuildNativePath} "
29
- sh "cp -r ${env.andoridWebrtcLibSrcPath} /* ${env.remoteDependeceDebugPath}/libwebrtc"
38
+ sh "python ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/scripts/build_android.py "
39
+ sh "cp -r ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/out/dist/release /* ${env.remoteDependeceDebugPath}/libwebrtc"
30
40
if ("${GIT_BRANCH}" == 'master') {
31
- sh "cp -r ${env.andoridWebrtcLibSrcPath} /* ${env.andoridLibWebrtcPath}"
41
+ sh "cp -r ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/out/dist/release /* ${env.andoridLibWebrtcPath}"
32
42
}
33
43
}
34
44
}
You can’t perform that action at this time.
0 commit comments