I have tried to use prpcserviceutils to do the export and Import. Ervery thing went well, but i have noticed that during export the exported ZIP file is being stored in folder that is dynamically created in the workspace directory. And i wonder where was it be specified, hoe these two sub directory were created with timestamp.
For example, with the command
sh "$PEGA_HOME_74/scripts/utils/prpcServiceUtils.sh export --connPropFile $PEGA_HOME_74/scripts/Demo/DEVProps.properties --artifactsDir $ARTIFACTS_DIR
the ARTIFACTS_DIR is /devops/artifacts/Demo, but the zip file will be stored under
/devops/artifacts/Demo/EXPORT_2019-Jan-31_11-45-19/jenkins-Test-128, i just wondern, where did the subdirs "EXPORT BLABLA" get to be generated?
Now I was just trying with simple prpcServiceutils.
Here's my screenshot:
So for me the file do get generated in my pega temp directory service export folder (might have to tweak this a bit), but point is the sub folders always gets generated. The only purpose I can think of is to distinguish different exports.
With mkdir -p "$CURRENT_SCRIPT/logs" the subdirectory will be created, but i still wonder, how could the exported archive to be saved under this directory? i could not find any specification about the export path anywhere:(
Our jenkins server was hosted on a docker image, but we didnot do any special pega settings besides the steps which in the document "using prpcServiceUtils and Jenkins for automated applicaiton deployment".
What i expected is actually the file will be exported under the artifactsDir which we specified in the command field instead of the strange sub directory.