010-3035929
info@developers.nl
Home
Over ons
Expertise
TechNights
Blog
Werken bij
Werken via
Contact
Blog
Cd part xii setup the jenkins server
27/01/2017
2 minuten leestijd
CD part XII: Setup the Jenkins Server
this blog is used to setup our jenkins server on which we create our jobs to run our FitNesse tests
jenkins installation
we need to download jenkins
go to:
https://jenkins.io/
click on the download button and select the LTS version
a war file is downloaded
copy this war file to the folder:
C:\tools\tomcat_jenkins\webapps
start the tomcat instance
install git plugin in jenkins
click in the menu on
Manage Jenkins
click on
Manage Plugins
select the
Available
tab
search for
Git plugin
select the plugin and click on the
Install without restart
button
jenkins navigates to the
Installing plugins/upgrades
page, were we see an overview of the plugins to be installed.
stop the tomcat instance and start the instance again
click in the menu on
Manage Jenkins
click on the
Configure
link
we need to configure the jdk and maven installation
jdk label: j.d.k 1.8
jdk JAVA
HOME: C:\tools\Java\jdk1.8.0
77
maven label: apache-maven-3.3.9
maven MAVEN_HOME: C:\tools\apache-maven-3.3.9
restart jenkins
setup credentials in jenkins
we start the tomcat instance for jenkins by executing the
tomcat jenkins - start.cmd
script
open a browser and navigate to:
http://localhost:8075/jenkins/
select in the left menu
Credentials
click in
Global Credentials
click on
Add Credentials
add the credentials of your bitbucket account
create continuous integration job
we start the tomcat instance for jenkins by executing the
tomcat jenkins - start.cmd
script
open a browser and navigate to:
http://localhost:8075/jenkins/
click in the sidemenu on
New Job
for this exercise, we are using the
account status
webservice
call this item:
ws
account
status_ci
select the first radiobutton
create a freestyle project
in the
Source Code Management
section select the
Git
radiobutton
enter the url:
https://bitbucket.org/johantuitel/easywebservices.git
select the credentials you have made for your bitbucket account
in my case it was
j.tuitel@developers.nl/
*
(bitbucket account)
after that we need to set the correct branch in the field
Branches to build
enter:
develop
add a build step and select
Invoke Top-level Maven
target:
clean install
POM:
AccountStatusWebservice\pom.xml
click on
Save
and we are done
test continuous integration job
select the job and click on
build
yeah it works