Gradle plugin to automatise saagie platform management using gradle.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
README.md
build.gradle
config
gradle.properties
keys.tar.enc
settings.gradle

README.md

Build Status Maven Central Download

gradle-saagie-plugin

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+

Setup

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'
}

Usage

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.
runJob Runs a job on the platform.
stopJob Stops a job on the platform.

Quick Example

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

Documentation

Full documentation is available on the wiki

Changelog

Changelogs are available here