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 ...
随机推荐
- JS案例之6——瀑布流布局(1)
在实际的项目中,偶尔会用到一种布局——瀑布流布局.瀑布流布局的特点是,在多列布局时,可以保证内容区块在水平方向上不产生大的空隙,类似瀑布的效果.简单的说,在垂直列表里,内容区块是一个挨着一个的.当内容 ...
- [CareerCup] 3.2 Min Stack 最小栈
3.2 How would you design a stack which, in addition to push and pop, also has a function min which r ...
- [CareerCup] 10.1 Client-facing Service 面向客户服务器
10.1 Imagine you are building some sort of service that will be called by up to 1000 client applicat ...
- 学习笔记——Maven 内置变量
Maven内置变量说明: ${basedir} 项目根目录(即pom.xml文件所在目录) ${project.build.directory} 构建目录,缺省为target目录 ${project. ...
- org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback.....Parameter index out of range (1 > number of parameters, which is 0).;
sql有误,一般是 sql语句少了问号.
- linux中的进程管理
USER 那个用户启动的进程 PID 该进程的ID号 %CPU 占用的CPU百分比 %MEM 占用的物理内存百分比 VSZ 占用虚拟内存大小 KB RSS 占用实 ...
- 编写高质量代码改善C#程序的157个建议[C#闭包的陷阱、委托、事件、事件模型]
前言 本文已更新至http://www.cnblogs.com/aehyok/p/3624579.html .本文主要学习记录以下内容: 建议38.小心闭包中的陷阱 建议39.了解委托的实质 建议40 ...
- AngularJS开发指南10:AngularJS依赖注入的详解
依赖注入是一种软件设计模式,用来处理代码的依赖关系. 一般来说有三种方法让函数获得它需要的依赖: 它的依赖是能被创建的,一般用new操作符就行. 能够通过全局变量查找依赖. 依赖能在需要时被导入. 前 ...
- beta版本工作百分比
1.附上github上,beta阶段的整体工作情况 2.beta版本分工情况: 马凛凛 031302620(组长):主要负责任务分配和规划,编码工作主要是系统的“实时编辑”功能,以及服务器的配置和部署 ...
- org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER
org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER Eclipse中出现无法找到Maven包 症状:出现org.maven.ide.eclipse.MAVEN2_CL ...