Skip to content

ImportVariable

Erwan KOFFI edited this page Jun 21, 2018 · 2 revisions

Import Variable

This task allows you to import variables from a json file into Data Fabric.

The task can be launched with the command gradle importVariable.

Configuration

Please note that during imports former variables ids are lost. Also no password variable will be imported. If the variable name already exists on the target platform, it will be updated.

Configuration object

Once your saagie object is available on your project with the server correctly set up, you need to fill the file to be imported.

saagie {
    server {...}

    packaging {
        importFile = ''
    }

    variables {[
        {
            name = <variable_name>
        }
    ]}
}

Properties explanation

  • importFile

    • The variable file to import.
    • type: string
    • default:
  • name

    • Named variables will be excluded from import file.
    • type: string
    • default:

Examples

saagie {
    server {...}

    packaging {
        importFile = 'my-cool-file'
    }
}