Skip to content

ExportJob

Erwan KOFFI edited this page Oct 11, 2017 · 4 revisions

Export job

This task allows you to export jobs from Data Fabric into a zip file.

The task can be launched with the command gradle exportJob.

Configuration

The configuration job allows to export multiple jobs 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 {...}

    jobs {[
            {
                id = <job_id>
                idFile = <file_name>
            }
        ]}

    packaging {
        exportFile = ''
        currentOnly = true
    }
}

The job export works with any job type.

Properties explanation

  • id (mandatory)

    • The job id on Data Fabric to export. If provided, will override idFile's id.
    • type: int
    • default: 0
  • idFile (mandatory)

    • This property allow you to the job which id is into the provided file. The complete path has to be provided and write rights on file and directory must be granted. If id property is set it will override this value.
    • type: string
    • default:
  • 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:
  • currentOnly

    • By default only the current used version is saved. If all versions are to be exported, set this flag to false.
    • type: boolean
    • default: true

Examples

Export one job

saagie {
    server {...}

    jobs {[
            {
                id = 666
            }
        ]}

    packaging {
        exportFile = 'my-cool-archive'
    }
}

Export multiple jobs

saagie {
    server {...}

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

    packaging {
        exportFile = 'my-cool-archive'
    }
}
Clone this wiki locally