Question

Automating deployment with Jenkins

I have gone through the tutorial on how to automate deployment using Jenkins.

I am facing the below given error on following the implementation given in the tutorial. Please let me know on how to proceed.

  1. Started by user Ratan Balaji
  2. [EnvInject] - Loading node environment variables.
  3. [EnvInject] - Preparing an environment for the build.
  4. [EnvInject] - Keeping Jenkins system variables.
  5. [EnvInject] - Keeping Jenkins build variables.
  6. [EnvInject] - Injecting as environment variables the properties content
  7. TargetUser=Coderat
  8. SystemName=$BUILD_TAG
  9. SourcePassword=rules
  10. SourceHost=http://localhost:8080/prweb/PRServlet
  11. TargetPassword=rules
  12. TargetHost=https://abc/prweb/PRServlet
  13. SourceUser=admin
  14.  
  15. [EnvInject] - Variables injected successfully.
  16. [EnvInject] - Injecting contributions.
  17. Building in workspace C:\Program Files (x86)\Jenkins\workspace\Pega1
  18. [EnvInject] - Unset unresolved 'USERNAME' variable.
  19. ERROR: Unable to find build script at C:\Users\Coderat\prpcServiceUtils_73\samples\Jenkins-build.xml
  20. Finished: FAILURE

PEGA_HOME - C:\Users\Coderat\prpcServiceUtils_73

ANT_HOME - C:\Program Files\apache-ant-1.10.1

JAVA_HOME - C:\Program Files\Java\jdk1.8.0_131

Thanks in advance. .

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

August 15, 2017 - 1:47pm

As per the tutorial, the Ant build has to take in build file path. which was given as 

$PEGA_HOME\samples\Jenkins-build.xml

instead of 

$PEGA_HOME\scripts\samples\jenkins\Jenkins-build.xml

in windows system. Once the build path is updated i was able to successfully build the project.

The  [EnvInject] - Unset unresolved 'USERNAME' variable. issue gets resolved if we pass a environment variable locally from Jenkins. This must be specific to my case since the default USERNAME had a '$' sign in it which causes issue when passed as an environment variable to jenkins.

 

 

August 15, 2017 - 2:38pm

Stuck again with another issue after clearing the previous one.

Getting a build failure because of the following:

  1. Buildfile: C:\Users\Coderat\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml
  2. [echo] *** JVM Arguments -XX:MaxHeapSize=1280m -XX:MaxMetaspaceSize=512m ***
  3.  
  4. -init:
  5. [echo] ******************************************************************
  6. [echo] Build date : ${pegaBuildDate.value}
  7. [echo] Pega7 platform version : ${specificationVersion.value}
  8. [echo] ******************************************************************
  9. [delete] Deleting directory C:\Users\Coderat\prpcServiceUtils_73\scripts\utils\generated
  10. [mkdir] Created dir: C:\Users\Coderat\prpcServiceUtils_73\scripts\utils\generated
  11. [pega:propertyparser] Reading Properties from: C:\Users\Coderat\prpcServiceUtils_73\scripts\utils/prpcServiceUtils.properties
  12. [pega:propertyparser] getstatus.jobID=
  13. [pega:propertyparser] hotfix.async=true
  14. [pega:propertyparser] expose.includeDescendents=true
  15. [pega:propertyparser] export.async=true
  16. [pega:propertyparser] expose.async=true
  17. [pega:propertyparser] expose.excludedClasses=
  18. [pega:propertyparser] import.commitRate=100
  19. [pega:propertyparser] export.productName=
  20. [pega:propertyparser] export.branchAppContext=
  21. [pega:propertyparser] expose.commitRate=100
  22. [pega:propertyparser] import.existingInstances=skip
  23. [pega:propertyparser] user.temp.dir=C:/pega_temp
  24. [pega:propertyparser] expose.reindex=true
  25. [pega:propertyparser] hotfix.operation=
  26. [pega:propertyparser] expose.excludeDescendents=true
  27. [pega:propertyparser] updateAccessGroup.applicationName=
  28. [pega:propertyparser] import.nofailonerror=false
  29. [pega:propertyparser] pega.rest.proxy.password=*****
  30. [pega:propertyparser] import.codesetVersion=06-01-01
  31. [pega:propertyparser] export.applicationVersion=
  32. [pega:propertyparser] pega.rest.proxy.username=
  33. [pega:propertyparser] expose.includedClasses=
  34. [pega:propertyparser] rollback.action=SystemRollback
  35. [pega:propertyparser] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash>
  36. [pega:propertyparser] updateAccessGroup.applicationVersion=
  37. [pega:propertyparser] expose.startKey=
  38. [pega:propertyparser] expose.reindexType=nonpega
  39. [pega:propertyparser] import.codesetName=Customer
  40. [pega:propertyparser] manageRestorePoints.restorePointLabel=
  41. [pega:propertyparser] import.async=true
  42. [pega:propertyparser] pega.rest.password=*****
  43. [pega:propertyparser] hotfix.force=false
  44. [pega:propertyparser] import.compileLibraries=true
  45. [pega:propertyparser] rollback.restorePointName=
  46. [pega:propertyparser] import.allowImportWithMissingDependencies=false
  47. [pega:propertyparser] export.productVersion=
  48. [pega:propertyparser] pega.rest.username=
  49. [pega:propertyparser] rollback.async=true
  50. [pega:propertyparser] export.branchName=
  51. [pega:propertyparser] getstatus.operationName=
  52. [pega:propertyparser] expose.endDate=
  53. [pega:propertyparser] import.preserveOrder=true
  54. [pega:propertyparser] rollback.downloadLogToFile=true
  55. [pega:propertyparser] pega.rest.proxy.port=
  56. [pega:propertyparser] pega.rest.proxy.workstation=
  57. [pega:propertyparser] expose.endKey=
  58. [pega:propertyparser] hotfix.dlFilePath=
  59. [pega:propertyparser] import.archive.path=
  60. [pega:propertyparser] updateAccessGroup.groupList=
  61. [pega:propertyparser] manageRestorePoints.restorePointName=
  62. [pega:propertyparser] export.archiveName=
  63. [pega:propertyparser] import.mode=import
  64. [pega:propertyparser] expose.startDate=
  65. [pega:propertyparser] hotfix.bypassSchema=false
  66. [pega:propertyparser] manageTrackedData.operation=
  67. [pega:propertyparser] expose.numOfThreads=1
  68. [pega:propertyparser] hotfix.catalogPath=
  69. [pega:propertyparser] manageRestorePoints.action=
  70. [pega:propertyparser] import.skipBackup=false
  71. [pega:propertyparser] pega.rest.proxy.domain=
  72. [pega:propertyparser] export.applicationName=
  73. [pega:propertyparser] pega.rest.response.type=json
  74. [pega:propertyparser] pega.rest.proxy.host=
  75. [mkdir] Created dir: C:\Windows\TEMP\PegaInstallTemp-15-August-2017-22.56.35
  76. [pega:hasenoughspace] Found 49750564KB of free space on 'C:\Windows\TEMP\'
  77.  
  78. -processInstances:
  79. [echo] Performing ${prpc.service.util.action} on multiple instance(s)
  80. [pega:echoargline] arg line : -action ${prpc.service.util.action} -propFileDir C:\Users\Coderat\prpcServiceUtils_73\scripts\utils/generated -poolSize ${prpcserviceutils.pool.size} -requestTimeOut ${prpcserviceutils.request.timeout} -tempDir C:\Windows\TEMP\/PegaInstallTemp-15-August-2017-22.56.35 -artifactsDir logs
  81. [echo] Reading connection information from -Dprpc.service.util.action=export
  82. [pega:propertyfilegenerator] pega.rest.server.url=http://<host name>:<port number>/<context>/PRRestService/<tenant url hash>
  83. [pega:propertyfilegenerator] pega.rest.username=
  84. [pega:propertyfilegenerator] pega.rest.password=*****
  85. [pega:propertyfilegenerator] pega.rest.proxy.host=
  86. [pega:propertyfilegenerator] pega.rest.proxy.port=
  87. [pega:propertyfilegenerator] pega.rest.proxy.username=
  88. [pega:propertyfilegenerator] pega.rest.proxy.password=*****
  89. [pega:propertyfilegenerator] pega.rest.proxy.domain=
  90. [pega:propertyfilegenerator] pega.rest.proxy.workstation=
  91. [pega:propertyfilegenerator] pega.rest.response.type=json
  92. [pega:propertyfilegenerator] user.temp.dir=C:/pega_temp
  93. [pega:propertyfilegenerator] export.archiveName=
  94. [pega:propertyfilegenerator] export.productName=
  95. [pega:propertyfilegenerator] export.productVersion=
  96. [pega:propertyfilegenerator] export.applicationVersion=
  97. [pega:propertyfilegenerator] export.applicationName=
  98. [pega:propertyfilegenerator] export.branchName=
  99. [pega:propertyfilegenerator] export.branchAppContext=
  100. [pega:propertyfilegenerator] export.async=true
  101. [pega:propertyfilegenerator] expose.includedClasses=
  102. [pega:propertyfilegenerator] expose.includeDescendents=true
  103. [pega:propertyfilegenerator] expose.excludedClasses=
  104. [pega:propertyfilegenerator] expose.excludeDescendents=true
  105. [pega:propertyfilegenerator] expose.startKey=
  106. [pega:propertyfilegenerator] expose.endKey=
  107. [pega:propertyfilegenerator] expose.startDate=
  108. [pega:propertyfilegenerator] expose.endDate=
  109. [pega:propertyfilegenerator] expose.reindex=true
  110. [pega:propertyfilegenerator] expose.reindexType=nonpega
  111. [pega:propertyfilegenerator] expose.commitRate=100
  112. [pega:propertyfilegenerator] expose.numOfThreads=1
  113. [pega:propertyfilegenerator] expose.async=true
  114. [pega:propertyfilegenerator] import.archive.path=
  115. [pega:propertyfilegenerator] import.mode=import
  116. [pega:propertyfilegenerator] import.existingInstances=skip
  117. [pega:propertyfilegenerator] import.nofailonerror=false
  118. [pega:propertyfilegenerator] import.commitRate=100
  119. [pega:propertyfilegenerator] import.compileLibraries=true
  120. [pega:propertyfilegenerator] import.allowImportWithMissingDependencies=false
  121. [pega:propertyfilegenerator] import.preserveOrder=true
  122. [pega:propertyfilegenerator] import.codesetName=Customer
  123. [pega:propertyfilegenerator] import.codesetVersion=06-01-01
  124. [pega:propertyfilegenerator] import.async=true
  125. [pega:propertyfilegenerator] import.skipBackup=false
  126. [pega:propertyfilegenerator] manageTrackedData.operation=
  127. [pega:propertyfilegenerator] hotfix.operation=
  128. [pega:propertyfilegenerator] hotfix.dlFilePath=
  129. [pega:propertyfilegenerator] hotfix.catalogPath=
  130. [pega:propertyfilegenerator] hotfix.bypassSchema=false
  131. [pega:propertyfilegenerator] hotfix.force=false
  132. [pega:propertyfilegenerator] hotfix.async=true
  133. [pega:propertyfilegenerator] getstatus.jobID=
  134. [pega:propertyfilegenerator] getstatus.operationName=
  135. [pega:propertyfilegenerator] manageRestorePoints.action=
  136. [pega:propertyfilegenerator] manageRestorePoints.restorePointName=
  137. [pega:propertyfilegenerator] manageRestorePoints.restorePointLabel=
  138. [pega:propertyfilegenerator] rollback.restorePointName=
  139. [pega:propertyfilegenerator] rollback.action=SystemRollback
  140. [pega:propertyfilegenerator] rollback.async=true
  141. [pega:propertyfilegenerator] rollback.downloadLogToFile=true
  142. [pega:propertyfilegenerator] updateAccessGroup.applicationName=
  143. [pega:propertyfilegenerator] updateAccessGroup.applicationVersion=
  144. [pega:propertyfilegenerator] updateAccessGroup.groupList=
  145.  
  146. BUILD FAILED
  147. C:\Users\Coderat\prpcServiceUtils_73\scripts\utils\prpcserviceutilsWrapper.xml:179: Connection Property file -Dprpc.service.util.action=export is not a valid file
  148.  
  149. Total time: 0 seconds
  150. Exiting with Error

Please let me know where i am going wrong.

 

Thanks in advance.

August 24, 2017 - 5:01pm
Response to Ratan

It looks like it thinks -Dprpc.service.util.action=export is the value for --connPropFile. It's not clear to me if this file is required or not, but you could try configuring the file and then including it.

Also, the argline looks like it may be off? Instead of  "-action ${prpc.service.util.action}", shouldn't it be just "export" (or your variable that represents export)?

 

December 22, 2017 - 11:53am
Response to Ratan

hi Coderat, Did you find a solution for the above issue?!

 

 

December 22, 2017 - 3:31pm
Response to PremkumarG

Hi PremKumar,

This  thread is outdated  to get proper response could you please create a new thread for discussion and do provide us supported screenshots and exception stack trace for the usecase .

Thanks,

Arun