Question

2
Replies
1052
Views
Close popover
Kuresh Surury (Kuresh_Surury)
Areteans Technology Solutions Pvt Ltd
Senior Architect
Areteans Technology Solutions Pvt Ltd
AU
Kuresh_Surury Member since 2013 4 posts
Areteans Technology Solutions Pvt Ltd
Posted: June 13, 2017
Last activity: June 28, 2017
Closed
Solved

Using prpcServiceUtils and Jenkins for automated application deployment

Hi ,

I am trying to export RAP via Jenkins using prpsserviceutlis
Build job is throwing below error


Started by user admin
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting as environment variables the properties content 
SystemName=$BUILD_TAG
SourcePassword=rules
SourceHost=http://localhost:8080
SourceUser=uplusadmin

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building in workspace E:\Jenkins\workspace\RAPOut
[EnvInject] - Unset unresolved 'USERNAME' variable.
[jenkins] $ cmd.exe /C "ant.bat -file Jenkins-build.xml -DproductVersion=20150604.094600 -DproductName=UPlusApp exportprops && exit %%ERRORLEVEL%%"
Buildfile: E:\Jenkins\workspace\RAPOut\scripts\samples\jenkins\Jenkins-build.xml

exportprops:
[propertyfile] Creating new property file: E:\Jenkins\workspace\RAPOut\scripts\utils\jenkins-RAPOut-13_export.properties

BUILD SUCCESSFUL
Total time: 0 seconds
[RAPOut] $ cmd /c call C:\WINDOWS\TEMP\hudson5110610964616011760.bat

E:\Jenkins\workspace\RAPOut>E:\Jenkins\workspace\RAPOut\scripts\utils\prpcServiceUtils.bat export --connPropFile E:\Jenkins\workspace\RAPOut\jenkins-RAPOut-13_import.properties --artifactsDir E:\Jenkins\workspace\RAPOut 
Invoke our ant script, passing in the arguments as collected
Buildfile: E:\Jenkins\workspace\RAPOut\scripts\utils\prpcserviceutilsWrapper.xml
     [echo] *** JVM Arguments -XX:MaxHeapSize=1280m -XX:MaxMetaspaceSize=512m ***

-init:
   [delete] Deleting directory E:\Jenkins\workspace\RAPOut\scripts\utils\generated
    [mkdir] Created dir: E:\Jenkins\workspace\RAPOut\scripts\utils\generated
[pega:propertyparser] Reading Properties from : E:\Jenkins\workspace\RAPOut\scripts\utils/prpcServiceUtils.properties
[pega:propertyparser] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash>
[pega:propertyparser] pega.rest.username=
[pega:propertyparser] pega.rest.password=*****
[pega:propertyparser] pega.rest.proxy.host=
[pega:propertyparser] pega.rest.proxy.port=
[pega:propertyparser] pega.rest.proxy.username=
[pega:propertyparser] pega.rest.proxy.password=*****
[pega:propertyparser] pega.rest.proxy.domain=
[pega:propertyparser] pega.rest.proxy.workstation=
[pega:propertyparser] pega.rest.response.type=json
[pega:propertyparser] user.temp.dir=C:/pega_temp
[pega:propertyparser] export.archiveName=
[pega:propertyparser] export.productName=
[pega:propertyparser] export.productVersion=
[pega:propertyparser] export.applicationVersion=
[pega:propertyparser] export.applicationName=
[pega:propertyparser] export.branchName=
[pega:propertyparser] export.branchAppContext=
[pega:propertyparser] export.async=true
[pega:propertyparser] expose.includedClasses=
[pega:propertyparser] expose.includeDescendents=true
[pega:propertyparser] expose.excludedClasses=
[pega:propertyparser] expose.excludeDescendents=true
[pega:propertyparser] expose.startKey=
[pega:propertyparser] expose.endKey=
[pega:propertyparser] expose.startDate=
[pega:propertyparser] expose.endDate=
[pega:propertyparser] expose.reindex=true
[pega:propertyparser] expose.reindexType=nonpega
[pega:propertyparser] expose.commitRate=100
[pega:propertyparser] expose.numOfThreads=1
[pega:propertyparser] expose.async=true
[pega:propertyparser] import.archive.path=
[pega:propertyparser] import.mode=import
[pega:propertyparser] import.existingInstances=skip
[pega:propertyparser] import.nofailonerror=false
[pega:propertyparser] import.commitRate=100
[pega:propertyparser] import.compileLibraries=true
[pega:propertyparser] import.allowImportWithMissingDependencies=false
[pega:propertyparser] import.codesetName=Customer
[pega:propertyparser] import.codesetVersion=06-01-01
[pega:propertyparser] import.async=true
[pega:propertyparser] import.trackData=true
[pega:propertyparser] manageTrackedData.operation=
[pega:propertyparser] hotfix.operation=
[pega:propertyparser] hotfix.dlFilePath=
[pega:propertyparser] hotfix.catalogPath=
[pega:propertyparser] hotfix.bypassSchema=false
[pega:propertyparser] hotfix.force=false
[pega:propertyparser] hotfix.async=true
[pega:propertyparser] getstatus.jobID=
[pega:propertyparser] getstatus.operationName=
[pega:propertyparser] manageRestorePoints.action=
[pega:propertyparser] manageRestorePoints.restorePointName=
[pega:propertyparser] manageRestorePoints.restorePointLabel=
[pega:propertyparser] rollback.restorePointName=
[pega:propertyparser] rollback.action=SystemRollback
[pega:propertyparser] rollback.async=true
[pega:propertyparser] rollback.downloadLogToFile=true
[pega:propertyparser] updateAccessGroup.applicationName=
[pega:propertyparser] updateAccessGroup.applicationVersion=
[pega:propertyparser] updateAccessGroup.groupList=
    [mkdir] Created dir: C:\WINDOWS\TEMP\PegaInstallTemp-13-June-2017-20.04.19
[pega:hasenoughspace] Found 58333408KB of free space on 'C:\WINDOWS\TEMP\'

-processInstances:
     [echo] Performing export on multiple instance(s)
     [echo] argument line
     [echo]  -action export -propFileDir E:\Jenkins\workspace\RAPOut\scripts\utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut ${prpcserviceutils.request.timeout} -tempDir C:\WINDOWS\TEMP\/PegaInstallTemp-13-June-2017-20.04.19 -artifactsDir E:\Jenkins\workspace\RAPOut
     [echo] export
     [echo] 
     [echo] Reading connection information from E:\Jenkins\workspace\RAPOut\jenkins-RAPOut-13_import.properties
[pega:propertyfilegenerator] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash>
[pega:propertyfilegenerator] pega.rest.username=
[pega:propertyfilegenerator] pega.rest.password=*****
[pega:propertyfilegenerator] pega.rest.proxy.host=
[pega:propertyfilegenerator] pega.rest.proxy.port=
[pega:propertyfilegenerator] pega.rest.proxy.username=
[pega:propertyfilegenerator] pega.rest.proxy.password=*****
[pega:propertyfilegenerator] pega.rest.proxy.domain=
[pega:propertyfilegenerator] pega.rest.proxy.workstation=
[pega:propertyfilegenerator] pega.rest.response.type=json
[pega:propertyfilegenerator] user.temp.dir=C:/pega_temp
[pega:propertyfilegenerator] export.archiveName=
[pega:propertyfilegenerator] export.productName=
[pega:propertyfilegenerator] export.productVersion=
[pega:propertyfilegenerator] export.applicationVersion=
[pega:propertyfilegenerator] export.applicationName=
[pega:propertyfilegenerator] export.branchName=
[pega:propertyfilegenerator] export.branchAppContext=
[pega:propertyfilegenerator] export.async=true
[pega:propertyfilegenerator] expose.includedClasses=
[pega:propertyfilegenerator] expose.includeDescendents=true
[pega:propertyfilegenerator] expose.excludedClasses=
[pega:propertyfilegenerator] expose.excludeDescendents=true
[pega:propertyfilegenerator] expose.startKey=
[pega:propertyfilegenerator] expose.endKey=
[pega:propertyfilegenerator] expose.startDate=
[pega:propertyfilegenerator] expose.endDate=
[pega:propertyfilegenerator] expose.reindex=true
[pega:propertyfilegenerator] expose.reindexType=nonpega
[pega:propertyfilegenerator] expose.commitRate=100
[pega:propertyfilegenerator] expose.numOfThreads=1
[pega:propertyfilegenerator] expose.async=true
[pega:propertyfilegenerator] import.archive.path=
[pega:propertyfilegenerator] import.mode=import
[pega:propertyfilegenerator] import.existingInstances=skip
[pega:propertyfilegenerator] import.nofailonerror=false
[pega:propertyfilegenerator] import.commitRate=100
[pega:propertyfilegenerator] import.compileLibraries=true
[pega:propertyfilegenerator] import.allowImportWithMissingDependencies=false
[pega:propertyfilegenerator] import.codesetName=Customer
[pega:propertyfilegenerator] import.codesetVersion=06-01-01
[pega:propertyfilegenerator] import.async=true
[pega:propertyfilegenerator] import.trackData=true
[pega:propertyfilegenerator] manageTrackedData.operation=
[pega:propertyfilegenerator] hotfix.operation=
[pega:propertyfilegenerator] hotfix.dlFilePath=
[pega:propertyfilegenerator] hotfix.catalogPath=
[pega:propertyfilegenerator] hotfix.bypassSchema=false
[pega:propertyfilegenerator] hotfix.force=false
[pega:propertyfilegenerator] hotfix.async=true
[pega:propertyfilegenerator] getstatus.jobID=
[pega:propertyfilegenerator] getstatus.operationName=
[pega:propertyfilegenerator] manageRestorePoints.action=
[pega:propertyfilegenerator] manageRestorePoints.restorePointName=
[pega:propertyfilegenerator] manageRestorePoints.restorePointLabel=
[pega:propertyfilegenerator] rollback.restorePointName=
[pega:propertyfilegenerator] rollback.action=SystemRollback
[pega:propertyfilegenerator] rollback.async=true
[pega:propertyfilegenerator] rollback.downloadLogToFile=true
[pega:propertyfilegenerator] updateAccessGroup.applicationName=
[pega:propertyfilegenerator] updateAccessGroup.applicationVersion=
[pega:propertyfilegenerator] updateAccessGroup.groupList=

BUILD FAILED
E:\Jenkins\workspace\RAPOut\scripts\utils\prpcserviceutilsWrapper.xml:173: Connection Property file E:\Jenkins\workspace\RAPOut\jenkins-RAPOut-13_import.properties is not a valid file

Total time: 0 seconds
Exiting with Error

Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE

Below is the content of jenkins-RAPOut-13_import.properties present at E:\Jenkins\workspace\RAPOut\scripts\utils

#Tue, 13 Jun 2017 20:04:17 +1000

jenkins-RAPOut-13.pega.rest.server.url=http\://localhost\:8080/prweb/PRRestService/
jenkins-RAPOut-13.pega.rest.username=uplusadmin
jenkins-RAPOut-13.pega.rest.password=rules
jenkins-RAPOut-13.export.archiveName=UPlusApp20150604.094600
jenkins-RAPOut-13.export.productName=UPlusApp
jenkins-RAPOut-13.export.productVersion=20150604.094600
jenkins-RAPOut-13.export.applicationName=${applicationName}
jenkins-RAPOut-13.export.applicationVersion=${applicationVersion}
jenkins-RAPOut-13.export.async=false

***Updated by moderator: Lochan to update Categories***

DevOps Testing Applications System Administration Installation and Deployment
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.