Informatics repository connection issue

Hi,

I am getting below error while connecting to informatics 9.1 repository through Octopus using PowerShell script deployment method. I am able to connect through the repository when running PowerShell script out side of Octopus. I have created two environment variables. INFA_DOMAINS_FILE ( for informatics domain file path domains.infa) and INFA_REPMANAGER_PASSWORD ( for password)

ERROR:

[[REP_62110] [PCSF_46007] No gateway connectivity is provided for domain [DOMAIN_SEIMDBINFDEV1]. [FAULT_PCSFUSEREXCEPTION]]
Repository connection failed.
Failed to execute connect.

The script is below :

$TargetDomain = “DOMAIN_SEIMDBINFDEV1”

TARGET REPOSITORY

$TargetRepository = “REP_INF_MDBDEV”

TARGET USER

$TargetUser = “Administrator”

pmrep connect -r $TargetRepository -d $TargetDomain -n $TargetUser -X INFA_REPMANAGER_PASSWORD


Quick repsone will be higly appricated.

Thanks
Om

Issue resolved, the issue was with the type of environment variable, the variable should be of system type.