Gitlab + Jenkins - User Guild

Set up Gitlab server

Web Hooks

Deploy keys

enable deployment key


Create New Jenkins Job

create freestyle project

Restrict build slave

input "AndroidTest" to Label field.

Source Code Management

Input the Gitlab Project Repository URL & Branch.

Credential: select "deployment"

Build Triggers:

select Poll SCM

Build Command

use execute shell to run your test scripts

command reference for android:


(Optional) Add Jenkins Job Status to Project's Wiki

On Jenkins:

Open the job page:

--> on the left sidebar, click the "Embeddable Build Status"

--> Copy the "unprotected link path" in Markdown (with view). The link is similar to [![Build Status](http://172.16.X.X:9999/buildStatus/icon?job=test)](http://172.16.X.X:8080/job/test/)

On Gitlab:

Open the wiki page of your project.

--> paste the "unprotected link path" on the new wiki page to see the jobs result.

--> Also paste http://[jenkins_server]/job/[job-name]/lastBuild/console to link to the console output quickly.

result is simlilar to this:

results matching ""

    No results matching ""