Export & Import using prpcserviceutils from Jenkins in Pega v7.2.2

Similar documents
Jenkins on Windows with StreamBase

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

EventTracker: Configuring DLA Extension for AWStats report AWStats Reports

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

FlexSim LAN License Server

SAS Marketing Automation 4.4. Unix Install Instructions for Hot Fix 44MA10

SSO Plugin. J System Solutions. Upgrading SSO Plugin 3x to 4x - BMC AR System & Mid Tier.

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

Configure Single Sign on Between Domino and WPS

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

How To Sync Quickbooks With Qvinci.Com On A Pc Or Macbook Or Mac Book (For A Webbook) With A Flashbook (For An Ubuntu Account) With An Ipo (For Macbook) On A Mac

VERALAB LDAP Configuration Guide

3. Installation and Configuration. 3.1 Java Development Kit (JDK)

Automated backup. of the LumaSoft Gas database

BusinessObjects Enterprise XI Release 2

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Installing and Configuring Login PI

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

ProSystem fx Document

Specops Command. Installation Guide

5.6.2 Optional Lab: Restore Points in Windows Vista

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

Deploying Intellicus Portal on IBM WebSphere

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

DEPLOYING EMC DOCUMENTUM BUSINESS ACTIVITY MONITOR SERVER ON IBM WEBSPHERE APPLICATION SERVER CLUSTER

Practice Fusion API Client Installation Guide for Windows

Compiere ERP & CRM Installation Instructions Windows System - EnterpriseDB

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Enterprise Site Manager (ESM) & Administrator Console Installation / Uninstall

2012 Nolio Ltd. All rights reserved

Generating an Apple Push Notification Service Certificate for use with GO!Enterprise MDM. This guide provides information on...

IIS, FTP Server and Windows

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

How to install and use the File Sharing Outlook Plugin

Drobo How-To Guide Drobo Apps - Configuring ElephantDrive

Propalms TSE Quickstart Guide

Migrating helpdesk to a new server

IBM Aspera Add-in for Microsoft Outlook 1.3.2

Installing the Android SDK

ilaw Installation Procedure

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Mobile Labs Plugin for IBM Urban Code Deploy

Continuous Integration (CI) and Testing - Configuring Bamboo, Hudson, and TestMaker

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

Third-Party Software Support. Converting from SAS Table Server to a SQL Server Database

Case Closed Installation and Setup

Immotec Systems, Inc. SQL Server 2005 Installation Document

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

Sophos Mobile Control Installation guide. Product version: 3.6

Installing Oracle 12c Enterprise on Windows 7 64-Bit

Polar Help Desk Installation Guide

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Cloud Services ADM. Agent Deployment Guide

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

Upgrade Guide BES12. Version 12.1

Intelli-M Access Quick Start Guide

Sophos Mobile Control Installation guide. Product version: 3

User Guide. Version R91. English

Web Testing, Java Testing, Server Monitoring. AppPerfect Installation Guide

DOCUMENT MANAGEMENT SYSTEM

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

LiveText for Salesforce Quick Start Guide

AvePoint Meetings for SharePoint On-Premises. Installation and Configuration Guide

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Server & Workstation Installation of Client Profiles for Windows (WAN Edition)

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Bitrix Site Manager ASP.NET. Installation Guide

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

Active Directory Management. Agent Deployment Guide

Team Foundation Server 2013 Installation Guide

User s Guide For Department of Facility Services

Eucalyptus User Console Guide

ADFS Integration Guidelines

Converting Prospects to Purchasers.

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

Setup guide. TELUS AD Sync

Server & Workstation Installation of Client Profiles for Windows

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

Architecture and Data Flow Overview. BlackBerry Enterprise Service Version: Quick Reference

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

Configuring Apache HTTP Server as a Reverse Proxy Server for SAS 9.2 Web Applications Deployed on BEA WebLogic Server 9.2

Snow Active Directory Discovery

Manual. CollabNet Subversion Connector to HP Quality Center. Version 1.2

Snow Inventory. Installing and Evaluating

IBM WEBSPHERE LOAD BALANCING SUPPORT FOR EMC DOCUMENTUM WDK/WEBTOP IN A CLUSTERED ENVIRONMENT

InfoRouter LDAP Authentication Web Service documentation for inforouter Versions 7.5.x & 8.x

NSi Mobile Installation Guide. Version 6.2

Creating Home Directories for Windows and Macintosh Computers

Livezilla How to Install on Shared Hosting By: Jon Manning

File Share Navigator Online 1

The safer, easier way to help you pass any IT exams. Exam : 9L OS X Server Essentials 10.8 Exam. Title : Version : Demo 1 / 6

Compiere 3.2 Installation Instructions Windows System - Oracle Database

CRM Migration Manager for Microsoft Dynamics CRM. User Guide

Transcription:

Export & Import using prpcserviceutils from Jenkins in Pega v7.2.2 Document Name Process document PRPCServiceUtils download Jenkins URL https://pdn.pega.com/using-prpcserviceutils-andjenkins-automated-application-deployment/usingprpcserviceutils-and https://pdn.pega.com/exchange/components/remoteconfiguration-command-line-tool-prpcserviceutils https://jenkins.io/download/ Step1: Install Java 1.8 or higher and set below environment variables as my Jenkins version is 2.60.2. JAVA_HOME= C:\Program Files\Java\jdk1.8.0_101 JRE_HOME= C:\Program Files\Java\jre1.8.0_141 Path=%JRE_HOME%\bin;%JRE_HOME%\bin\server; Step2: Download ANT media from http://ant.apache.org/bindownload.cgi ANT_HOME= C:\MyInstalls\apache-ant-1.10.1 Path=%ANT_HOME%\bin Step3: Install the downloaded Jenkins 2.60.2 Setup.exe file as windows service. Installed at C:\MyInstalls\Jenkins location as shown below,

After finish of the installation it will open the Jenkins login as shown below, Now open the file C:\MyInstalls\Jenkins\secrets\initialAdminPassword in notepad and copy the password then paste it to continue.

Now install the suggested plugins as follows, After the plugins were installed it will redirect to Admin account creation page as follows, Credentials: Admin/Admin

Now start using the Jenkins will route to the following page, Step4: By default, ANT Plugin will be installed. Environment Injector Plugin and Build with Parameters Plugin needs to be installed from Manage Jenkins->Manage Plugins -> Available Click on Download now and install after restart and go back to Manage Plugins in order to install another plugin as follows, Select Restart Jenkins checkbox and re-login after Jenkins restart to see the installed Plugin.

Now go to Available Plugins and search for Build with Parameters as follows, Click on Download now and install after restart and now click on Restart Jenkins option as follows, After the restart completion you can able to see the both installed plugins in Installed tab of Manage Plugins after re-login as follows,

Step5: Download the PrpcServiceUtils.zip file from above specified URL then extract the downloaded prpcserviceutils-7.2.2.zip file into Jenkins accessible location as shown below, Step6: Configure your build environment to call the prpcserviceutils.bat or prpcserviceutils.sh script and pass parameters to import or export the RAP: 1. Verify that the following Jenkins plugins are installed: a. Ant Plugin b. Environment Injector Plugin c. Build with Parameters Plugin 2. Open a web browser and navigate to the Jenkins server. 3. Click Manage Jenkins. 4. Click Configure System. 5. Configure the PEGA_HOME environment variable: a. In the Global properties section, select Environmental variables. b. In the name field, enter PEGA_HOME. c. In the value field, enter the location where you extracted the prpcserviceutils.zip file i.e. C:\MyInstalls\prpcServiceUtils_722 d. Click Add. 6. Also add JAVA_HOME and ANT_HOME (if any issues with the paths in Jenkins).

Step7: Create the Product rule in the source application using Designer Studio > Application > Distribution > Package or from Records explorer as shown below, Note: Make sure you don t have any unlocked rulesets in your product rule. Step8: Configure the Jenkins Project to pass data to the prpcserviceutils tool, 1. Create new project by Click on Create New Jobs link or New Item link to create a new Project, 2. Enter name of the project of type Freestyle project then click OK

3. Click Save. 4. Click on Configure and select This project is parameterized as follows, 5. Click Add Parameter -> String Parameter type and create the parameters that Jenkins passes to the prpcserviceutils tool as follows, a. To import or export a RAP using Product rule then set productname, productversion parameters:

b. To import or export using application then set applicationname, applicationversion parameters:

6. Select Prepare an environment for the run. In the Properties Content section, enter the following properties as shown below, SystemName=$BUILD_TAG SourceHost=http://localhost:8722 SourceUser=admin@jenkins SourcePassword=rules 7. Now go to Source Code Management tab and select the option None (as we are not getting the source code from repositories like Git/Subversion) Select Inject environment variables to the build process option and provide below configuration, ARTIFACTS_DIR=C:/MyInstalls/Jenkins (Jenkins installation location/project Workspace location) ImportExistingInstance=skip (parameter to skip the import of the existing instances, to override we need to provide this value as override )

8. Now add the Build step -> Invoke Ant action for the export and import of the RAP action as follows, %PEGA_HOME%\scripts\utils\prpcServiceUtils.bat export --connpropfile %WORKSPACE%\%SystemName%_export.properties --artifactsdir %WORKSPACE% %PEGA_HOME%\scripts\utils\prpcServiceUtils.bat import --connpropfile %WORKSPACE%\%SystemName%_import.properties --artifactsdir %WORKSPACE% 9. Go to Post-Build Actions tab then add the E-Mail Notification for the build failures, 10. Click on Save 11. Open C:\MyInstalls\prpcServiceUtils_722\scripts\samples\jenkins\Jenkins-build.xml file and configure the required properties for import and export tasks as follows,

12. Click on Build with Parameters then perform the Build with the correct values as follows, Now the build will be running and you can open the build to see the console output,

Export task completed successfully as per the console message below, The exported Product zip file is created in Jenkins Project workspace folder as follows, The import process into the target machine is also successful as shown below,

The import process related files will be created in Project work space folder as follows, Jenkins Additional Information: How to change boot configuration? By default, your Jenkins runs at http://localhost:8080/. This can be changed by editing jenkins.xml, which is located in your installation directory. This file is also the place to change other boot configuration parameters, such as JVM options, HTTPS setup, etc. Starting/Stopping the service Jenkins is installed as a Windows service, and it is configured to start automatically upon boot. To start/stop them manually, use the service manager from the control panel, or the sc command line tool. Inheriting your existing Hudson/Jenkins installation If you'd like your new installation to take over your existing Jenkins/Hudson data, copy your old data directory into the new JENKINS_HOME directory. How to configure E-mail Notification? Configure the account details in-order to send the email notifications during the build failures from Manage Jenkins > Configure System > E-mail Notification as shown below, Note: Make sure you allow the Less secure apps enabled for your gmail/yahoo accounts from https://myaccount.google.com/lesssecureapps https://login.yahoo.com/account/security#other-apps

If your build is failed then the mail will be sent to the mail id which is provided in the Post-Build Actions in the Project, Schedule Build Plugin: Go to Manage Jenkins > Manage Plugins > Available > search for Schedule Build Plugin and install using Download now and install after restart,

Now you can see the schedule properties in Manage Jenkins > Configure System > Schedule Build Plugin Open PegaExportImportRAP > Configure > Build Triggers > enable Build periodically and provide the Schedule expression like below, To get help regarding the Schedule expressions click on the help icon as shown below, Now go to Jenkins dashboard and see the icons beside your Project as shown below,

Note: In our case Schedule a build with parameters for PegaExportImportRAP is enabled as our project is parameterized. Build ran at 1:52:06PM as shown below.