Jenkins 搭建U3D自动发布 Android
工具 【u3d相关的PostProcessBuildPlayer,PerformBuild.cs】
1.Jenkins 开源包 Java -jar jenkins.war,参考链接 http://www.cnblogs.com/itech/archive/2011/11/02/2233343.html。
2.JDK
3.ANT
4.Eclipse
5.Jenkins 插件管理
|
This plugin adds Apache Ant support to Jenkins.
|
1.2 | ||||
|
This plugin allows you to store credentials in Jenkins.
|
1.18 | ||||
|
Integrates Jenkins with CVS version control system using a modified version of the Netbeans cvsclient.
|
2.11 | ||||
|
Adds the ability to monitor the result of externally executed jobs.
|
1.4 | ||||
|
This plugin adds Javadoc support to Jenkins.
|
1.1 | ||||
|
Allows JUnit-format test results to be published.
|
1.2-beta-4 | ||||
|
Security realm based on LDAP authentication.
|
1.6 | ||||
|
This plugin allows you to configure email notifications. This is a break-out of the original core based email component.
|
1.11 | ||||
|
Offers matrix-based security authorization strategies (global and per-project).
|
1.1 | ||||
|
Multi-configuration (matrix) project type.
|
1.3 | ||||
|
Jenkins plugin for building Maven 2/3 jobs via a special project type.
|
2.7.1 | ||||
|
Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.
|
1.1 | ||||
|
Adds Unix Pluggable Authentication Module (PAM) support to Jenkins.
|
1.1 | ||||
|
This plugin allows you to store SSH credentials in Jenkins.
|
1.10 | ||||
|
This plugin allows you to manage slaves running on \*nix machines over SSH.
|
1.9 | ||||
|
This plugin adds the Subversion support (via SVNKit) to Jenkins.
|
1.54 | ||||
|
This plugin adds an additional dialog box in every page, which enables people to contribute localizations for the messages they are seeing in the current page.
|
1.10 | ||||
|
Allows you to connect to Windows machines and start slave agents on them.
|
6.因为考虑在MAC上执行,安装Cygwin
7.新建项目开始配置步骤:
1>.源码管理 :SVN更新代码工程与资源 。
2>.构建触发器,可以不要 指定时间自己构建 Poll SCM H 22 * * * 【每天22.00点自动构建一次】
3>.添加Windows的batch command: 先到Android Project再打包APK
COPY %WORKSPACE%\Tools\PerformBuild.cs %WORKSPACE%\code\Assets\Editor\
COPY %WORKSPACE%\Tools\PostProcessBuildPlayer %WORKSPACE%\code\Assets\Editor\
RD /S /Q %WORKSPACE%\build-android
MKDIR %WORKSPACE%\build-android
echo Start building Unity project to Android project..........
"C:\Program Files (x86)\Unity\Editor\Unity" -projectPath %WORKSPACE%\code -executeMethod PerformBuild.CommandLineBuildAndroid -batchmode -quit -logFile %WORKSPACE%\build-android\log.txt
把U3D的工程使用命令行导出Eclipse工程。中间需要手动设置一次AndroidSDK。
SET LANG="en_US.UTF-8"
SET ANT_ROOT="E:\helptools\eclipse\plugins\org.apache.ant_1.9.2.v201404171502\bin"
SET ANDROID_SDK_ROOT="E:\helptools\android-sdk"
SET PATH=%PATH%;%ANT_ROOT%;%ANDROID_SDK_ROOT%;%ANDROID_SDK_ROOT%/tools;
cd %WORKSPACE%/build-android
ren dragonandroid dragon
echo Copy resource to build directory.....
mkdir dragon\assets\ClientRes
copy /y %WORKSPACE%\ClientRes\Config dragon\assets\ClientRes
copy /y %WORKSPACE%\ClientRes\Assetbundles_Android \dragon\assets\ClientRes
del \dragon\assets\ClientRes\Config\.svn
del \dragon\assets\ClientRes\Assetbundles_Android\.svn
copy %WORKSPACE%\Tools\strings.xml %WORKSPACE%\build-android\dragon\res\values
cd dragon
echo unzip android -d ./dragon
android update project -p ./ --name Dragon
ant debug
zipalign -v 4 bin/Dragon-debug.apk "bin/dragon 0.8.${BUILD_NUMBER}.apk"
如果上面相关命令不对需要在系统环境变量中添加。
4>.batch command: 直接 APK
echo Copy resource to build directory.....
cd %WORKSPACE%
copy /y %WORKSPACE%\ClientRes\Config code\Assets\Plugins\Android\assets\ClientRes\Config
copy /y %WORKSPACE%\ClientRes\Assetbundles_Android\ code\Assets\Plugins\Android\assets\ClientRes\Assetbundles_Android
rd /s/q code\Assets\Plugins\Android\assets\ClientRes\Config\.svn
rd /s/q code\Assets\Plugins\Android\assets\ClientRes\Assetbundles_Android\.svn
MKDIR %WORKSPACE%\build-android
echo Start building Unity project to Android APK..........
"C:\Program Files (x86)\Unity\Editor\Unity" -projectPath %WORKSPACE%\code -executeMethod PerformBuild.CommandLineBuildAndroid -batchmode -quit -logFile %WORKSPACE%\build-android\log.txt
PerformBuild.cs 有变动
Jenkins 搭建U3D自动发布 Android的更多相关文章
- Jenkins 搭建U3D自动发布 IOS
http://www.cnblogs.com/yinghuochong/archive/2013/09/01/3294940.html 1.安装包,工具略过. 2.插件管理 Subversion Pl ...
- Jenkins搭建.NET自动编译发布远程环境
继上一篇文章Jenkins搭建.NET自动编译发布本地环境 发布到本地成功后,接下来配置发布到远程环境. Build配置——发布到远程 根据前面VS中发布项目,生成的CustomProfile2 来配 ...
- Jenkins搭建.NET自动编译发布本地环境
最近在做一个团队项目的时候,用到了自动编译发布部署环境[也可以说是持续集成],于是顺便学习了下这个环境的搭建过程. 持续集成 持续集成是一种软件开发实践,即团队开发成员经常集成它们的工作,通常每个成员 ...
- Jenkins搭建.NET自动编译测试与发布环境
本文地址: http://blog.csdn.net/wangjia184/article/details/18365553 操作系统Windows, 确保需要的.NET Framework已经安装 ...
- Windows2012中Jenkins搭建.NET自动编译测试与发布环境
安装7Zip 下载地址: http://www.7-zip.org/a/7z1602-x64.exe 安装Git 下载地址:https://github.com/git-for-windows/git ...
- Jenkins+Ansible+Gitlab自动发布/回滚Spring项目
一.实现方法流程图 流程图如下:代码托管在本地GitLab上(为了复现整套流水线,我直接使用了GitHub,懒得再搭建GitLab),开发完成后提交代码到代码仓库,[自动]触发Jenkins进行持续集 ...
- 在docker中运行jenkins实现代码自动发布到测试服务器
在docker中运行jenkins 用的镜像是apline版:lts-alpine,并设置正确的时区. docker run --name jenkins_master -d \ -p 8081:80 ...
- 持续集成 Jenkins +Gitlab + SSH 自动发布 HTML 代码
目录 一.整体流程 二.Jenkins 配置 2.1.首先安装插件 2.2.配置目标服务器 2.3.创建 job 2.4.配置 gitlab 触发 三.改进 一.整体流程 二.Jenkins 配置 2 ...
- Docker+Jenkins持续集成环境(5): android构建与apk发布
项目组除了常规的java项目,还有不少android项目,如何使用jenkins来实现自动构建呢?本文会介绍安卓项目通过jenkins构建的方法,并设计开发一个类似蒲公英的app托管平台. andro ...
随机推荐
- mysql-advanced-5.6.23-linux-glibc2.5-x86_64安装
0,二进制安装: mysql-advanced-5.6.23-linux-glibc2.5-x86_64.zip 1,软件包 mysql-advanced-5.6.23-linux-glibc2. ...
- C语言 百炼成钢10
//题目28:有5个人坐在一起,问第五个人多少岁?他说比第4个人大2岁.问第4个人岁数,他说比第 //3个人大2岁.问第三个人,又说比第2人大两岁.问第2个人,说比第一个人大两岁.最后 //问第一个人 ...
- 突然想起android与mfc差异
两者都可以算作是客户端程序,都是做上位机用的.而且都是被动执行. 相同点: 1.MFC中,它是由 project的名字 里面的某个成员函数来初始化,窗体,以及窗体里面的变量. 后面都是监听消息循环.数 ...
- JS之apply,call,bind区别
为了加深对基础知识的理解,今天再复习下js中的apply,call,bind的区别和用法.整理笔记的过程也是一个再次学习的过程. apply和call js中的调用apply和call方法可以改变某个 ...
- 嵌入式Linux应用开发——Linux下的C编程基础
一.markdown简单操作 1.标题 在文字开头加上 “#”,通过“#”数量表示几级标题. 通过在文字下方添加“=”和“-”,他们分别表示一级标题和二级标题. 2.块注释 通过在文字开头添加“> ...
- 移动统计工具Flurry
网址:http://www.flurry.com/ 1注册和下载对应SDK 2集成SDK 3自定义统计项 至于怎么使用,后期会更新
- xcode 出现the file couldn't be opened 怎么解决
右键——show In finder——显示xcode包内容——将有数字的删除——把有用的xcode双击
- HoloLens开发手记 - Unity之Gaze凝视射线
凝视是HoloLens首要输入方式,形式功能类似于桌面系统的光标,用于选择操作全息对象.然而在Unity中并没有明确的Gaze API或者组件. 实现Gaze Implementing Gaze 概念 ...
- 解决The current branch is not configured for pull No value for key branch.master.merge found in confi
1.在本地工程目录找到config文件(我的是在E:\rocket\rocket\.git): 2.修改config文件内容为: [core] repositoryformatversion = fi ...
- Windows Phone8 中如何引用 SQLite 数据库
SQLite数据库介绍 1.SQLite是一款轻型的嵌入式数据库,使用C++开发,使用非常广泛 2.SQLite是一款跨平台的数据库,支持Windows.Linux.Android.IOS.Windo ...