Skip to content

ExportJob

Erwan KOFFI edited this page Jun 20, 2018 · 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. When exporting multiple jobs, job id will prefix the archive name.

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 {
        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:
  • 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'
    }
}