Question

31
Replies
1422
Views
AaronK5068 Member since 2017 1 post
TalkTalk
Posted: 2 years ago
Last activity: 2 years 4 months ago
Closed
Solved

Jenkins integration issues - setup help

hello everyone

i've configure jenkins on my local machine following the setup guide suggested below:

https://pdn.pega.com/community/product-support/question/procedure-expor…

https://pdn.pega.com/using-prpcserviceutils-and-jenkins-automated-appli…

plugins installed, environment variables set (if someone could tell me which way around import/export are. i want to test firstly just taking an application off a pega environment and storing it in a file first)

i have a personal edition running 7.3.1 on port 8081, login details are admin@Test pass:admin,

jenkins servier on port 8081

i've gotten to the point shown in the below console output in jenkins:

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:8081
SourceUser=admin@Test

[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting contributions.
Building in workspace C:\TaskJenkins\Jenkins\workspace\PegaExport
[EnvInject] - Unset unresolved 'USERNAME' variable.
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content 
ImportExistingInstance=skip
ARTIFACTS_DIR=C:TaskJenkinsJenkins

[EnvInject] - Variables injected successfully.
[jenkins] $ cmd.exe /C "ant.bat -file Jenkins-build.xml -DproductVersion=20180219.100722 -DTargetHost=http://localhost:8081 -DTargetPassword=rules -DproductName=Test -DTargetUser=admin@Test exportprops && exit %%ERRORLEVEL%%"
Buildfile: C:\TaskJenkins\prpcServiceUtils_73\scripts\samples\jenkins\Jenkins-build.xml

exportprops:
[propertyfile] Creating new property file: C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\jenkins-PegaExport-3_export.properties

BUILD SUCCESSFUL
Total time: 0 seconds
[PegaExport] $ cmd /c call C:\windows\TEMP\jenkins2980875066725196557.bat

C:\TaskJenkins\Jenkins\workspace\PegaExport>C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\prpcServiceUtils.bat export --connPropFile  
Invoke our ant script, passing in the arguments as collected
Buildfile: C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml
     [echo] *** JVM Arguments -XX:MaxHeapSize=1280m -XX:MaxMetaspaceSize=512m ***

-init:
     [echo] ******************************************************************
     [echo] Build date : ${pegaBuildDate.value} 
     [echo] Pega7 platform version : ${specificationVersion.value} 
     [echo] ******************************************************************
   [delete] Deleting directory C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\generated
    [mkdir] Created dir: C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\generated
[pega:propertyparser] Reading Properties from: C:\TaskJenkins\prpcServiceUtils_73\scripts\utils/prpcServiceUtils.properties
[pega:propertyparser] getstatus.jobID=
[pega:propertyparser] hotfix.async=true
[pega:propertyparser] expose.includeDescendents=true
[pega:propertyparser] export.async=true
[pega:propertyparser] expose.async=true
[pega:propertyparser] expose.excludedClasses=
[pega:propertyparser] import.commitRate=100
[pega:propertyparser] export.productName=
[pega:propertyparser] export.branchAppContext=
[pega:propertyparser] expose.commitRate=100
[pega:propertyparser] import.existingInstances=skip
[pega:propertyparser] user.temp.dir=C:/pega_temp
[pega:propertyparser] expose.reindex=true
[pega:propertyparser] hotfix.operation=
[pega:propertyparser] expose.excludeDescendents=true
[pega:propertyparser] updateAccessGroup.applicationName=
[pega:propertyparser] import.nofailonerror=false
[pega:propertyparser] pega.rest.proxy.password=*****
[pega:propertyparser] import.codesetVersion=06-01-01
[pega:propertyparser] export.applicationVersion=
[pega:propertyparser] pega.rest.proxy.username=
[pega:propertyparser] expose.includedClasses=
[pega:propertyparser] rollback.action=SystemRollback
[pega:propertyparser] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash>
[pega:propertyparser] updateAccessGroup.applicationVersion=
[pega:propertyparser] expose.startKey=
[pega:propertyparser] expose.reindexType=nonpega
[pega:propertyparser] import.codesetName=Customer
[pega:propertyparser] manageRestorePoints.restorePointLabel=
[pega:propertyparser] import.async=true
[pega:propertyparser] pega.rest.password=*****
[pega:propertyparser] hotfix.force=false
[pega:propertyparser] import.compileLibraries=true
[pega:propertyparser] rollback.restorePointName=
[pega:propertyparser] import.allowImportWithMissingDependencies=false
[pega:propertyparser] export.productVersion=
[pega:propertyparser] pega.rest.username=
[pega:propertyparser] rollback.async=true
[pega:propertyparser] export.branchName=
[pega:propertyparser] getstatus.operationName=
[pega:propertyparser] expose.endDate=
[pega:propertyparser] import.preserveOrder=true
[pega:propertyparser] rollback.downloadLogToFile=true
[pega:propertyparser] pega.rest.proxy.port=
[pega:propertyparser] pega.rest.proxy.workstation=
[pega:propertyparser] expose.endKey=
[pega:propertyparser] hotfix.dlFilePath=
[pega:propertyparser] import.archive.path=
[pega:propertyparser] updateAccessGroup.groupList=
[pega:propertyparser] manageRestorePoints.restorePointName=
[pega:propertyparser] export.archiveName=
[pega:propertyparser] import.mode=import
[pega:propertyparser] expose.startDate=
[pega:propertyparser] hotfix.bypassSchema=false
[pega:propertyparser] manageTrackedData.operation=
[pega:propertyparser] expose.numOfThreads=1
[pega:propertyparser] hotfix.catalogPath=
[pega:propertyparser] manageRestorePoints.action=
[pega:propertyparser] import.skipBackup=false
[pega:propertyparser] pega.rest.proxy.domain=
[pega:propertyparser] export.applicationName=
[pega:propertyparser] pega.rest.response.type=json
[pega:propertyparser] pega.rest.proxy.host=
    [mkdir] Created dir: C:\windows\TEMP\PegaInstallTemp-20-February-2018-12.59.01
[pega:hasenoughspace] Found 265661304KB of free space on 'C:\windows\TEMP\'

-processInstances:
     [echo] Performing ${prpc.service.util.action} on multiple instance(s)
[pega:echoargline] arg line : -action ${prpc.service.util.action} -propFileDir C:\TaskJenkins\prpcServiceUtils_73\scripts\utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut ${prpcserviceutils.request.timeout} -tempDir C:\windows\TEMP\/PegaInstallTemp-20-February-2018-12.59.01 -artifactsDir logs
     [echo] Reading connection information from -Dprpc.service.util.action=export
[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.preserveOrder=true
[pega:propertyfilegenerator] import.codesetName=Customer
[pega:propertyfilegenerator] import.codesetVersion=06-01-01
[pega:propertyfilegenerator] import.async=true
[pega:propertyfilegenerator] import.skipBackup=false
[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
C:\TaskJenkins\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml:179: Connection Property file -Dprpc.service.util.action=export is not a valid file

Total time: 0 seconds
Exiting with Error

Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
DevOps
Moderation Team has archived post
Share this page LinkedIn