Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

ExportVariable

Erwan KOFFI edited this page Nov 21, 2017 · 1 revision

Export variable

This task allows you to export variable from Data Fabric into a json file.

The task can be launched with the command gradle exportVariable.

Configuration

The configuration variable allows to export multiple variables at the same time.

Configuration object

Once your saagie object is available on your project with the server correctly set up, you need to fill the jobs list which will be exported.

saagie {
    server {...}

    variables {[
        {
            id = <job_id>
        }
    ]}

    packaging {
        exportFile = ''
    }
}

The job export works with any job type.

Properties explanation

  • id (mandatory)

    • The variable id on Data Fabric to export.
    • type: int
    • default: 0
  • exportFile

    • The name of the archive that will be created. The file name will be exportFile.zip. If the target property is set, the file will be created in this folder.
    • type: string
    • default:

Examples

Export one variable

saagie {
    server {...}

    variables {[
        {
            id = 666
        }
    ]}

    packaging {
        exportFile = 'my-variable-file'
    }
}

Export multiple variables

saagie {
    server {...}

    variables {[
        {
            id = 666
        },
        {
            idFile = './my-id-file.id'
        }
    ]}

    packaging {
        exportFile = 'my-variable-file'
    }
}

Clone this wiki locally