Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

JENKINS

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

drush si insight_install --account-pass=asdf --db-


url=mysql://root:root@localhost/insightplatform -v -y

f) Move the manifest file to public folder (From S3 bucket to Drupal
public folder)

mkdir sites/default/files/feeds
cp /var/www/html/manifest.xml sites/default/files/feeds/

g) Import the content from manifest

drush vset feeds_process_limit 2000
drush insight-platform-import-entities-content
drush insight-platform-import-contentsection-content
drush insight-plaform-populate-parent

You might also like