2014-12-09 3 views
0

새로 생성하지 않습니다 개미로 구축하고 젠킨스는 젠킨스에 APK 파일

나는 다음과 같은 프로젝트 구조를 가지고 개미

를 사용하여 빌드를 설정하려고합니다.
-workspace 
-- project-A 
-- project-B (Lib project used by project-A) 

은 내가 젠킨스 웹 사이트 https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project

android update project -p project-A 

android update lib-project --target "Google Inc.:Google APIs:18" --path project-B 

그것은 build.xml 파일 및 특성 파일을 생성에서 발견 한 다음 명령을 실행했습니다.

나는 자식을 사용하고있다. 그래서 모든 것이 체크인되었는지 확인했습니다.

프로젝트를 빌드하려고하면 성공 결과가 나오지만 출력 된 APK 파일은 없습니다. 나는 '아카이브 아티팩트'의 '빌드 후 작업'을 가지고 있는지 확인했습니다.

여기 내 빈 폴더에 확인 해달라고 젠킨스에서 빌드

Started by user anonymous 
Building in workspace /Users/Shared/Jenkins/Home/jobs/Test.Android/workspace 
> git rev-parse --is-inside-work-tree # timeout=10 
Fetching changes from the remote Git repository 
> git config remote.origin.url ssh://[email protected]/************* # timeout=10 
Fetching upstream changes from ssh://[email protected]/************* 
> git --version # timeout=10 
using GIT_SSH to set credentials 
> git fetch --tags --progress ssh://[email protected]************/************* +refs/heads/*:refs/remotes/origin/* 
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 
Checking out Revision a5bcdc51c07300aa18244049bcf80b1282ff55d6 (refs/remotes/origin/master) 
> git config core.sparsecheckout # timeout=10 
> git checkout -f a5bcdc51c07300aa18244049bcf80b1282ff55d6 
> git rev-list a5bcdc51c07300aa18244049bcf80b1282ff55d6 # timeout=10 
[workspace] $ /Users/Shared/Jenkins/Home/tools/hudson.tasks.Ant_AntInstallation/Apache_Ant/bin/ant -file Project-A 
Buildfile: /Users/Shared/Jenkins/Home/jobs/Test.Android/workspace/Project-A/build.xml 

help: 
    [echo] Android Ant Build. Available targets: 
    [echo] help:  Displays this help. 
    [echo] clean:  Removes output files created by other targets. 
    [echo]    This calls the same target on all dependent projects. 
    [echo]    Use 'ant nodeps clean' to only clean the local project 
    [echo] debug:  Builds the application and signs it with a debug key. 
    [echo]    The 'nodeps' target can be used to only build the 
    [echo]    current project and ignore the libraries using: 
    [echo]    'ant nodeps debug' 
    [echo] release: Builds the application. The generated apk file must be 
    [echo]    signed before it is published. 
    [echo]    The 'nodeps' target can be used to only build the 
    [echo]    current project and ignore the libraries using: 
    [echo]    'ant nodeps release' 
    [echo] instrument:Builds an instrumented package and signs it with a 
    [echo]    debug key. 
    [echo] test:  Runs the tests. Project must be a test project and 
    [echo]    must have been built. Typical usage would be: 
    [echo]     ant [emma] debug install test 
    [echo] emma:  Transiently enables code coverage for subsequent 
    [echo]    targets. 
    [echo] install: Installs the newly build package. Must either be used 
    [echo]    in conjunction with a build target (debug/release/ 
    [echo]    instrument) or with the proper suffix indicating 
    [echo]    which package to install (see below). 
    [echo]    If the application was previously installed, the 
    [echo]    application is reinstalled if the signature matches. 
    [echo] installd: Installs (only) the debug package. 
    [echo] installr: Installs (only) the release package. 
    [echo] installi: Installs (only) the instrumented package. 
    [echo] installt: Installs (only) the test and tested packages (unless 
    [echo]    nodeps is used as well. 
    [echo] uninstall: Uninstalls the application from a running emulator or 
    [echo]    device. Also uninstall tested package if applicable 
    [echo]    unless 'nodeps' is used as well. 

BUILD SUCCESSFUL 
Total time: 0 seconds 
Archiving artifacts 
Finished: SUCCESS 

에 대한 젠킨스에서 내 출력됩니다. 그게 어떤 문제를 일으킬까요?

도움을 주시면 감사하겠습니다. 미리 감사드립니다.

답변

0

빌드 후 작업 아티팩트 보관 작업을 추가 했습니까?

0

문제는 빌드 자체와 관련이 있습니다. 웬일인지 그것은 아무것도 건설하지 않고 있었던 tho를 성공으로 생각해 내고 있었다. 몇 가지 설정을 변경하여 작동하도록해야합니다. 또한 config 페이지에서 Build -> Invoke Ant -> Target 아래에 디버그 또는 릴리스를 지정해야했습니다.

또한 라이브러리 프로젝트에없는 build.xml 파일이 있습니다. 그래서 일단 모든 build.xml 파일을 만들고 대상을 추가하면 apk 파일을 만드는 것처럼 보이며 지금 다운로드 할 수 있습니다.

도움 주셔서 감사합니다.