/
Properties Config Command
Properties Config Command
Purpose
Replaces variables in specified files using a properties file. It will use any environment variables on the system and variables defined in a properties file.
This command is invoked by your build system agent and executes under the user account you configured for that agent in your build system. The command itself does not require any credentials as it runs natively on your MettleCI Agent Host.
Syntax
Example
$> mettleci properties config
-baseDir datastage # Only consider files under 'datastage' folder in git
-filePattern "DSParams" # Substitute values in the 'DSParams' file
–filePattern "Parameter Sets/*/*" # ... and in the Parameter Set value files
-properties var.uat # Use a Variables Properties file specific to (in this example) the UAT environment
-outDir config # Output updated files to separate directory
The properties file is in a key/value pair format, e.g:
mettleci.prop1=value1
mettleci.prop2=value2
prop3=value3
Variables in files to be replaced need to be defined in the format ${VARIABLE_KEY}
, e.g:
export MY_FIRST_PROPERTY=${mettleci.prop1}
export MY_SECOND_PROPERTY=${mettleci.prop2}
cat FILE | grep ${prop3}
, multiple selections available,
Related content
Parameter Management for Automated Deployment
Parameter Management for Automated Deployment
More like this
Remote Upload Command
Remote Upload Command
Read with this
Can MettleCI manage Job parameter files in version control?
Can MettleCI manage Job parameter files in version control?
More like this
MettleCI Command Line Reference
MettleCI Command Line Reference
Read with this
ISX Set-Params Command
ISX Set-Params Command
More like this
DataStage Create-Project Command
DataStage Create-Project Command
Read with this
© 2015-2024 Data Migrators Pty Ltd.