Skip to content

Commit

Permalink
Pr/14 (#15)
Browse files Browse the repository at this point in the history
- Added infaHome var
- Spacing
- Bumped version
  • Loading branch information
Nick Mathison authored May 17, 2017
1 parent ae71110 commit 17fa2a3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions plugin/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ Fixed import_object security domain lines seperation, while leaving space so tha
<release-note plugin-version="20">
Fixed security vulnerability in import_objects.groovy: On exit, the generated script file will be deleted.
Added Security Domain, LANG, and INFAHOME environment properties to the Validate Deployment Group step.
</release-note>
<release-note plugin-version="21">
Added INFA HOME property to the Create Dynamic Deployment Group step.
</release-note>
</release-notes>
</pluginInfo>
5 changes: 4 additions & 1 deletion plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-->
<plugin xmlns="http://www.urbancode.com/PluginXMLSchema_v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<identifier version="20" id="com.urbancode.air.plugin.Informatica" name="Informatica"/>
<identifier version="21" id="com.urbancode.air.plugin.Informatica" name="Informatica"/>
<description>
The Informatica plugin is an automation based plugin. It is executed as part of the deployment to migrate Informatica configuration and run scripts against the Informatica server and for creating and deploying deploying groups.
</description>
Expand Down Expand Up @@ -97,6 +97,9 @@
<property name="passwordscript">
<property-ui type="textBox" label="Password Script" description="If a property or script should be used to retrieve the password, leave it blank and put the property or script here." default-value="${p?:resource/informatica/passscript}"/>
</property>
<property name="infaHome">
<property-ui type="textBox" label="INFA HOME" description="The INFA_HOME variable to be set on the environment. If set we will also use ${INFA_HOME}/server/bin/pmrep as the exe and add this to LD_LIBRARY_PATH and LIBPATH"/>
</property>
<property name="groupname" required="true">
<property-ui type="textBox" label="Informatica Group" description="The name of the dynamic deployment group to create for deployment."/>
</property>
Expand Down
7 changes: 7 additions & 0 deletions plugin/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,11 @@
</migrate-properties>
</migrate-command>
</migrate>
<migrate to-version="21">
<migrate-command name="Create Dynamic Deployment Group">
<migrate-properties>
<migrate-property name="infaHome" default=""/>
</migrate-properties>
</migrate-command>
</migrate>
</plugin-upgrade>
8 changes: 7 additions & 1 deletion src/main/scripts/create_dynamic_deployment.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final def username = stepProps['username']
final def password = stepProps['password'] ? stepProps['password'] : stepProps['passwordscript']
final def host = stepProps['host']
final def port = stepProps['port']
final def infaHome = stepProps['infaHome']

final def inputFile = 'informatica_script.' + unique + '.in'
final def outputFile = 'informatica_script.' + unique + '.out'
Expand All @@ -49,7 +50,12 @@ script.eachLine { line -> println(line) }
println('')

def command = []
command.add('pmrep')
if (infaHome != null && infaHome != "") {
command.add(infaHome + File.separator + "server" + File.separator + "bin" + File.separator + "pmrep");
}
else {
command.add('pmrep')
}
command.add('run')
command.add('-o')
command.add(outputFile)
Expand Down

0 comments on commit 17fa2a3

Please sign in to comment.