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 ...
随机推荐
- C语言 读取文件中特定数据
//读取文件数据 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> struct jia ...
- C#把某个数组的一部分复制到另一个数组中的两种方法:Buffer.BlockCopy和Array.Copy
static void Main(string[] args) { , , , , , }; ;//目标数组大小 int int_size = sizeof(int);//用于获取值类型的字节大小. ...
- Java系列: JAVA字符串格式化-String.format()的使用(zz)
常规类型的格式化 String类的format()方法用于创建格式化的字符串以及连接多个字符串对象.熟悉C语言的同学应该记得C语言的sprintf()方法,两者有类似之处.format()方法有两种重 ...
- [CareerCup] 8.9 An In-memory File System 内存文件系统
8.9 Explain the data structures and algorithms that you would use to design an in-memory file system ...
- 高校手机签到系统——zxing.net生成二维码(补充)
高校手机签到系统——第一部分Authority权限系统(上) 高校手机签到系统——第一部分Authority权限系统(下) 高校手机签到系统——手机客户端 关于zxing.net的使用网上已有很多说明 ...
- git点滴的积累
git的基本学习的网址: http://www.yiibai.com/git/git_update_operation.html 0.git首次上传代码 http://www.cnblogs.com/ ...
- lei
upstream pap_backend_conf { keepalive 128; server 127.0.0.1:9221 max_fails=2 fail_timeout=5 weight=1 ...
- Visual Studio命令窗口
命令”窗口用于直接在 Visual Studio 集成开发环境 (IDE) 中执行命令或别名.可以执行菜单命令和不在任何菜单上显示的命令.若要显示“命令”窗口,请从“视图”菜单中选择“其他窗口”,再选 ...
- __weak typeof(self) weakSelf = self
typeof(self) 是获取到self的类型,这样定义出的weakSelf就是和self一个类型的, 加上__weak是建立一个若引用,整句就是给self定义了一个若引用性质的替身;这个一般用在使 ...
- 每天一个linux命令(52):scp命令
scp 是secure copy的简写,用于在Linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器,而且 scp传输是加密的.可能会稍微影响一下速度.当你服 ...