简体   繁体   中英

Informatica integration with Jenkins for deployment

I am trying to integrate Informatica Power Center & Jenkins to automate a deployment process. I am doing the deployment via pmrep command line utility provided by Informatica. It works perfectly fine manually.

I have created a free flow job in Jenkins where I am trying to connect the Informatica repository with a simple command. Under Build --> Execute Windows Batch Command

"C:\Informatica\10.1.0\server\bin\pmrep.exe" connect -r REPO -d Domain -n Administrator -x myPassword

This is very simple project and it is getting failed with the below log:-

C:\Program Files (x86)\Jenkins\workspace\INFA_EXECUTE_QUERY>"C:\Informatica\10.1.0\server\bin\pmrep.exe" connect -r REPO -d Domain -n Administrator -x myPassword 
Informatica(r) PMREP, version [10.1.0], build [1205.0610], Windows 64-bit
Copyright (c) 1993-2016 Informatica LLC. All Rights Reserved.
See patents at https://www.informatica.com/legal/patents.html.
Invoked at Tue May 14 00:37:41 2019
Failed to execute connect.
Completed at Tue May 14 00:37:41 2019
C:\Program Files (x86)\Jenkins\workspace\INFA_EXECUTE_QUERY>exit 1 
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE

However if I run the same command in command prompt on my laptop it works absolutely fine and able to connect to repository.

I have installed both Informatica server, client and Jenkins on my laptop but that shouldn't be the issue at all.

The problem probably lies in the users that the pmrep is run unser. You logged in and have certain priviledges to execute the pmrep.exe, to create the connection file pmrep.cnx, and, what is less obvios, Jenkins must have the same priveledges to connect to the repository as the user (settings in the Informatica administration console).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM