Operations 3 min read

Configuring a Jenkins Job for Android Gradle Builds with FIR.IM QR Code Generation

This guide walks through creating a Jenkins job to pull Android source code from Git, configure Gradle invocation, add FIR.IM QR‑code generation, troubleshoot common SDK environment issues, and update Android SDK and build‑tools via command‑line steps.

Test Development Learning Exchange
Test Development Learning Exchange
Test Development Learning Exchange
Configuring a Jenkins Job for Android Gradle Builds with FIR.IM QR Code Generation

This article explains how to set up a Jenkins job for building an Android project using Gradle and generating a QR code with FIR.IM.

Step 1: Create a new Jenkins job – start a new job and configure the basic settings.

Step 2: Provide the Git repository URL – Jenkins will clone the source code (image omitted).

Step 3: Choose the build step – select Invoke Gradle as the build method.

Step 4: Add FIR.IM configuration – include the FIR.IM plugin to generate a QR code after the build (image shown).

Possible issues

1. If the Android SDK environment variables are not set correctly, the build may fail with errors shown in the screenshot.

2. The project may require the charts:lint file; developers need to add it in Jenkins even if they think it is unnecessary.

Updating Linux SDK and build‑tools

1. Upgrade build‑tools by navigating to the android‑build‑tools directory and running:

$ ./android update sdk -u -t platform,platform -tool
$ ./android update sdk -u -t build-tools-20.0.0

2. Upgrade the SDK itself by running in the Android directory: tools/android update sdk -u -t no‑ui 3. Download the tools_r25.2.3‑linux package from Baidu Cloud (link provided).

Key points to remember

1. Ensure the Gradle version used in Jenkins matches the developers' configuration.

2. Install all required SDK versions on the Jenkins machine.

3. Align the build‑tools version in Jenkins with the developers' expectations.

Follow the official WeChat public account for more automated testing resources.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SDKci/cdAndroidGradlebuild toolsJenkins
Test Development Learning Exchange
Written by

Test Development Learning Exchange

Test Development Learning Exchange

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.