Page MenuHomePhabricator

Build apps/common/android under Jenkins and from Gerrit (instead of GitHub)
Closed, InvalidPublic

Description

The Android app moved from GitHub to Gerrit (https://git.wikimedia.org/summary/apps%2Fandroid%2Fcommons.git). CI should now trigger on merges on Gerrit rather than commits on GitHub :)


Version: unspecified
Severity: enhancement

Details

Reference
bz49500

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:44 AM
bzimport set Reference to bz49500.
bzimport added a subscriber: Unknown Object (MLST).

Moved under continuous integration. Need to:

  • figure out a template for Jenkins job builder
  • add the generated job to Zuul configuration and have it triggered on change merged.
  • rethink the publishing of the build apk, that is current a hacky inline shell script

Jenkins job is https://gerrit.wikimedia.org/r/#/c/68566/ , to be applied, it requires a change to Jenkins Job Builder which I have submitted upstream https://review.openstack.org/#/c/32965/

I have generated the job and added the Zuul triggers https://gerrit.wikimedia.org/r/68563

At least one build succeeded. https://integration.wikimedia.org/ci/job/apps-android-commons-build/

That should be fine for you. If the job works properly we will make it voting (and thus block the change upon jenkins job failure).

:)

This is pending review / merge of my JJB patch by upstream https://review.openstack.org/#/c/32965/

Is it possible to make the bot leave the url of the built apk in the comment, in addition to the link to the console?

Ah it is only building and not publishing the resulting apk .. Maybe I could use the artifact archiving functionality and have Jenkins to copy the apk in the docroot ( ex: https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin )

There is a 'copy to slave' Jenkins which is supported by JJB. Would let us copy the apkartifact under the integeation docroot on gallium.

This (building the Wikipedia Android app via Jenkins) was discussed today with Bernd and Dmitry. What is the status of that now? Is Jenkins doing anything more than lint checking with the Android app? It looks like that is all they have from eg: https://gerrit.wikimedia.org/r/#/c/135805/

Yuvi and I talked about it again a couple month ago. The challenge is getting Android SDK installed on the Ubuntu slaves (read build a package / puppet recipe for it). I have no clue how Android work so I am not comfortable doing it.

bearND claimed this task.

The Commons Android app has been sunset. No need to add a build for that. I'd rather have a build for the Wikipedia Android app (T88494 and T62720) instead.