Professional Documents
Culture Documents
Jenkins Integration Document Project: Insight Platform (IP)
Jenkins Integration Document Project: Insight Platform (IP)
INTEGRATION
DOCUMENT
Project
:
Insight
Platform
(IP)
Developer
1
Developer
2
Developer
3
Code
Merge
done
GIT
Repository
here
Merged
Code
will
be
moved
QA
Branch
DEV
Branch
Jenkins
Integration
for
Jenkins
Integration
for
QA
:
It
will
pull
the
DEV
:
It
will
pull
the
changes
automatically
changes
automatically
and
deploy
the
Build
to
and
deploy
the
Build
to
the
QA
Server
the
DEV
Server
QA
Server
DEV
Server
1) The landing page of the Jenkins has the entire Environment available to it.
2) Click
on
any
project
>
Configure
Example:
http://JENKINS/job/InsightPlatformQA/configure
User
should
be
able
to
see
the
configuration
pages.
The
configuration
pages
has
the
following
major
sections:
I. Project
Name
II. Description
III. Slack
Notifications:
We
can
select
the
multiple
option
to
configure
send
notification
over
Slack.
IV. Source
Code
Management:
Need
to
Select
GIT
Repository
and
provide
GIT
url.
V. Post
Build
Action:
Needs
to
mention
steps
and
Jobs
that
needs
to
be
triggered
post
build.
3) The
post
build
section
has
Exec
Command
section,
which
includes
all
the
steps
which
needs
to
be
executed
post
build.
These
commands
are
project
specific.
In
Insight
Platform
project
we
have
the
following
steps:
a) Navigate to the folder where the installation needs to be done
cd
/var/www/html/insight-platform
b) Delete the existing file from the folders
rm
-rf
sites/default/files
c) Pull Code from the latest Branch
ssh-agent
bash
-c
'ssh-add
/home/jenkins/.ssh/jenkins_rsa;
git
pull
origin
qa'
d) Pull if any dependencies
ssh-agent
bash
-c
'ssh-add
/home/jenkins/.ssh/jenkins_rsa;
git
submodule
update
e) Uninstall the existing version of the application/site