Generating android build with jenkins.Creating .apk files

百般思念 提交于 2019-12-19 03:19:16

问题


I am using Jenkins for continuous integration of android apps on mac.But i am unable to generate .apk file with Jenkins same as we create .ipa in iOS apps.what will be the configuration to create .apk file for distribution on mac.


回答1:


You can generate both release and debug builds in jenkins. For that, please follow the below procedure.

  1. Launch the job/project configuration screen by clicking on configure button which is available left side panel of job/project dashboard.
  2. Scroll down to see the Build section.
  3. Click on "Add Build step" button to see the drop down list.
  4. Click on "Invoke Ant" item in that and do like same available in attached screen shot.
  5. Save these modifications by clicking on save button when you have completely done the 4th step above.
  6. Click on Build Now button which is available at top left side panel.
  7. Now you have got the builds in your jenkins workspace.
    Ex: In my case, builds are generated in the below path.
    C:\Program Files (x86)\Jenkins\workspace\JOB_NAME\bin

You can also see the builds on Job dashboard by enabling the artifacts like below.

  1. Scroll down to see the Post-build Actions section.
  2. Click on "Add post-build action" button to see the drop down list.
  3. Click on "Archive the artifacts", and this will add one item in Post build actions section.
  4. Give the path and extension of which files you need to display in artifacts section of dashboard.
    Ex: /bin/*.apk - to display all the apk files available in bin folder of that job.



来源:https://stackoverflow.com/questions/21570038/generating-android-build-with-jenkins-creating-apk-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!