기본 콘텐츠로 건너뛰기

android build automation

Build Environment

 Target Build Machine

Ubuntu 14.04 Server
 Osx
Windows 7 

Build Server
Jenkins ( https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu ) Android

Build Method

Maven (http://books.sonatype.com/mvnref-book/reference/android-dev.html)

Gradle (https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins)

 1. Jenkins

 1.1. Jenkins Installation
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key \
| sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ \
> /etc/apt/sources.list.d/jenkins.list'

sudo apt-get update

sudo apt-get install jenkins
1.2. Start Jenkins
sudo service jenkins start
2.Android Sdk

 2.1. Android SDK Download
cd /opt
sudo wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz

2.2. Unzip file
sudo tar xzf android-sdk_r22.3-linux.tgz

2.3. Delete file
sudo rm -rf android-sdk_r22.3-linux.tgz

2.3. Environment variables Setting
sudo vi /etc/profile.d/android.sh

export ANDROID_HOME="/opt/android-sdk-linux"export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"

2.4. Apply Environment variables
source /etc/profile

2.5. Permission allow Android Sdk tools
sudo chmod -R 755 /opt/android-sdk-linux

2.6. if 64bit os , install 32-bit libraries
sudo apt-get install libncurses5:i386 libstdc++6:i386 ia32-libs
sudo reboot -r now

2.7. Update Android Sdk
android update sdk --no-ui

댓글

이 블로그의 인기 게시물

윈도우 톰캣 네트워크 드라이버 잡기

윈도우 톰캣 네트워크 드라이버 설정(windows tomcat network driver setting) TOMCAT_HOME/conf/server.xml 의 Host 노드 아래 경로 추가     <Context path="/resources" docBase="//192.168.200.100/cifs/pds" /> 서버스 재구동 하면 다음 메시지 뜸 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing docBase for context [/resources] java.io.IOException: 사용자 이름 또는 암호가 올바르지 않습니다 at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428) at java.io.File.getCanonicalPath(File.java:618) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:593) at org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:744) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)...

Jsp 서버 아이피 확인

한줄버전 <% String svrIP =  InetAddress.getLocalHost() .getHostAddress(); %> <%@ page language="java" import="java.net.InetAddress" %> InetAddress inet = InetAddress.getLocalHost(); String svrIP = inet.getHostAddress(); Reference http://yoontaesub.egloos.com/m/1925800

윈도우 톰캣 버전확인

cmd 창을 연 후 cd C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin version.bat 실행 ======================================================== Using CATALINA_BASE:   "C:\Program Files\Apache Software Foundation\Tomcat 8.0" Using CATALINA_HOME:   "C:\Program Files\Apache Software Foundation\Tomcat 8.0" Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp" Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_91" Using CLASSPATH:       "C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 8.0\bin\tomcat-juli.jar" Server version: Apache Tomcat/8.0.33 Server built:   Mar 18 2016 20:31:49 UTC Server number:  8.0.33.0 OS Name:        Windows Server 2012 R2 OS Version:     6.3 Architecture:   amd64 JVM Version:    1.8.0_91-b14 JVM Vendor:     Oracle Corporation ...