Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating android build with jenkins.Creating .apk files

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.

like image 872
Tabish Sohail Avatar asked Feb 05 '14 06:02

Tabish Sohail


1 Answers

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.enter image description here
like image 180
Noundla Sandeep Avatar answered Oct 02 '22 09:10

Noundla Sandeep