env.build_file_name="_.apk" env.publishChannel="" env.outpath="D:/DockerContainer/nginx/www" env.subpath="" env.buildUser="" pipeline { environment { sharePath="${WORKSPACE}/pandora_share_proj" pandora_cli_proj = "${WORKSPACE}/pandora_cli_proj" pandora_pro_dir= "${pandora_cli_proj}/pandora" log_dir="${WORKSPACE}/log/android" SVN_Credentials=credentials('PANDORA_SVN_TOKEN') feshu_url="8d1b6a92-fd8c-4c58-9e81-b2912ee1a641" } agent { node { label 'a3_win_1' } } stages { stage('InitPyEnv') { steps{ bat label: '', script:''' java -version python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple psutil python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests python -m pip install -i https://pypi.douban.com/simple xlrd==1.2.0 ''' } } stage('更新cli和share代码') { steps { bat label: '', script:''' cd /D %WORKSPACE% python ./build_ci/u2c/CheckoutShare.py %Branch% share D:/soft/Apache-Subversion-1.10.3/bin/svn.exe false %SVN_Credentials_USR% %SVN_Credentials_PSW% python ./build_ci/u2c/CheckoutShare.py %Branch% client D:/soft/Apache-Subversion-1.10.3/bin/svn.exe false %SVN_Credentials_USR% %SVN_Credentials_PSW% ''' } } stage('编译ExcelExcelExpor') { steps { bat label: '', script:''' echo %sharePath% cd %sharePath%/ExcelExport if "%config_flag%"=="JP" ( echo "use japan config" python ./excelTolua.py region jp ) if "%config_flag%"=="KR" ( echo "use japan config" python ./excelTolua.py region kr ) python ./ExportLanguageToText.py ''' } } stage('编译proto') { steps { bat label: '', script:''' cd %sharePath%/protocol python ./export_lua.py ''' } } } post { // success // { // wrap([$class: 'BuildUser']) { // script { // env.buildUser = "${BUILD_USER}" // } // } // buildName "#${BUILD_NUMBER} ---> ${version}" // buildDescription "点击下载: pandora_${version}" // //sh label: '', script: """sh ${u2china_share_proj}/JenkinsFile/feishu_buildPackage.sh ${buildUser} ${appVersion} SUCCESS ${JOB_NAME} apk""" // bat label: '', // script:''' // "C:/Program Files/Git/bin/sh.exe" %WORKSPACE%/build_ci/u2c/feishu_buildPackage.sh %buildUser% %Branch% SUCCESS "%config_flag%-%mode%" %build_file_name% %subpath% %feshu_url% // ''' // } // failure // { // wrap([$class: 'BuildUser']) { // script { // env.buildUser = "${BUILD_USER}" // echo "FAILURE" // } // } // //sh label: '', script: """sh ${u2china_share_proj}/JenkinsFile/feishu_buildPackage.sh ${buildUser} ${appVersion} FAILURE ${JOB_NAME} apk""" // bat label: '', // script:''' // "C:/Program Files/Git/bin/sh.exe" %WORKSPACE%/build_ci/u2c/feishu_buildPackage.sh %buildUser% %Branch% FAILURE "%config_flag%-%mode%" %build_file_name% %subpath% %feshu_url% // ''' // } } }