Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Update jenkins file to 5.0.x (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyihui1 authored Apr 8, 2021
1 parent 142955b commit 8cf4e56
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions jenkins/android.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,30 @@ pipeline {
timeout(time: 40, unit: "MINUTES")
}
stages {
stage("init parameters"){
steps {
script {
if (env.CHANGE_TARGET == null){
env.CHANGE_TARGET = env.GIT_BRANCH
}
}
}
}

stage('Build'){
agent{
node {
label "${env.androidBuldNativeServer}"
customWorkspace "${env.owtClientNativePath}"
label "${env.androidBuildNativeServer}"
customWorkspace "${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src"
}
}
steps {
script{
sh "gclient sync"
sh "python ${env.androidBuildNativePath}"
sh "cp -r ${env.andoridWebrtcLibSrcPath}/* ${env.remoteDependeceDebugPath}/libwebrtc"
sh "python ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/scripts/build_android.py"
sh "cp -r ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/out/dist/release/* ${env.remoteDependeceDebugPath}/libwebrtc"
if ("${GIT_BRANCH}" == 'master') {
sh "cp -r ${env.andoridWebrtcLibSrcPath}/* ${env.andoridLibWebrtcPath}"
sh "cp -r ${env.owtClientNativeBasePath}/${env.CHANGE_TARGET}/src/out/dist/release/* ${env.andoridLibWebrtcPath}"
}
}
}
Expand Down

0 comments on commit 8cf4e56

Please sign in to comment.