Академический Документы
Профессиональный Документы
Культура Документы
Remo
te
Repo Compil
e
Unit
Local Test
Repositor cases
y
CI Regressio
Serve n Test
r cases
Publish
reports
Benefits of CI
Git :
a) Set the path of Git installation directory
(e.g. C:\Program Files\Git\bin\git.exe)
Maven:
a) Set the path of Maven installation
directory as of Maven_Home variable
( e.g. E:\maven2\apache-maven-3.0.5-
bin\apache-maven-3.0.5)
5. Now save the above settings.
Jenkins Build Jobs
Build Job is nothing but a particular
step in build process.
A single project can have a number
of build jobs.
For example : compiling and running
the source code a single build job
and running a integration test is
another build job.
Creating Build Jobs
In order to create a build job use following
steps:
1. Open Jenkins
2. Click on new Job
3. Give a Job name and select build a free
style software product and click on OK
4. A Project configuration screen will appear.
5. In Source code management select Git
(because our source code is in Git-hub).
6. Now give the git hub source code URL.
Creating Build Jobs -
continued
7. In Build trigger section we need to tell Jenkins that at
what time we want to trigger the building process.
> Select Pol SCM
> Enter @hourly in Schedule section which means we
want to trigger the build process at every hour.
8. In Build Section we have to specify in which way we
want to do the build process, since we want to use
Maven, therefore select Invoke top level Maven
targets
9. In Maven version give the version of Maven you are
using.
10. Set the Goal section of Maven as
clean package