A Gradle plugin to create, update, export and import jobs to Saagie Datafabric.
More informations about Saagie: https://www.saagie.com
This plugin is only compatible with gradle 3.0+
Buildscript snippets:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath group: 'io.saagie', name: 'gradle-saagie-plugin', version: '2.2.1'
}
}
apply plugin: 'io.saagie.gradle-saagie-plugin'
For Gradle 2.1+
plugins {
id 'io.saagie.gradle-saagie-plugin' version '2.2.1'
}
The following tasks are available:
Tasks | Description |
---|---|
listJobs | Lists all jobs id on the platform. |
createJob | Creates a new job. |
updateJob | Updates a job. |
exportJob | Export a job from the platform into a local archive. |
exportAllJobs | Export all jobs from a platform into a local fat archive. |
importJob | Creates a job from a local archive. |
importAllJobs | Creates a job from a local fat archive. |
deleteJob | Delete a job |
deleteAllJobs | Delete all jobs from a plateform. Needs unsafe flag |
listVars | Lists all variables on the platform. |
createVariable | Creates a new variable. |
updateVariable | Updates a variable. |
importVariable | Creates variable from local file. |
exportVariable | Export variable from the platform into a local file. |
exportAllVariables | Export all variables from the platform into a local file. |
listPipelines | Lists all pipelines on the platform. |
exportPipeline | Export pipeline from the platform into a local file. |
exportAllPipelines | Export all pipeline from the platform into a local file. |
importPipeline | Creates a pipeline from a local archive. |
importAllPipelines | Creates pipelines from local fat archive. |
runJob | Runs a job on the platform. |
stopJob | Stops a job on the platform. |
saagie {
server {
url = 'https://manager.prod.saagie.io/api/v1'
login = 'my-login'
password = 'my-password'
platform = 666
}
jobs {[
{
name = 'JVM Example job'
type = 'java-scala'
category = 'processing'
languageVersion = '8.131'
cpu = 1
memory = 1024
disk = 2048
arguments = 'http://www.saagie.com'
description = 'This is an example job for jvm based languages.'
releaseNote = 'This release is fine.'
email = 'someone@domain.ext'
idFile = './jvm-example.id'
}
]}
fileName = './my-cool-archive.jar'
}
Then launch command gradle createJob
Full documentation is available on the wiki
Changelogs are available here