Source Code Management

Purpose of this part is answer for question Where to get source code ? for our software build. From job configure, click into Source Code Management tab

Check if git is installed in local machine

In order to clone source code from Github, local machine should install Git.

To check if local machine already install git or not, open command prompt and typing

git --help

To download and install git, please refer to this link https://git-scm.com/downloads

Specify source code repository

Because we host project source code on Github, so you will choose Git as below.

To get repo link, go to Github https://github.com/tanpv/gol then click to Clone or download button, you will see the repo link. Copy this link.

Put the repo link https://github.com/tanpv/gol.git**in to Repository URL section. The branch will be default as */master**

Click to Save buttonand that it, we already tell to Jenkins where to get source code.

Check if setting working fine

This is the time to try for first running and see if source code from Github is clone or not.

Go back to home page then click to GOL job

The dashboard for GOL will show up, you will see describe which we just added before

Click in to Build Now to activate job run immediately.

You will see GOL start running as expected

To see how job running, select Console Output from context menu while you click to build number

Then the job log will show up every thing happen in order to clone source code from Github repository. You can see that the build already success running.

Now we could go to local repository to see the source code already downloaded. Each job will have it’s own folder inside workspace folder

That it, we complete the first step of this job.

results matching ""

    No results matching ""