Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saagie/gradle-saagie-plugin
Gradle plugin to automatise saagie platform management using gradle.
https://github.com/saagie/gradle-saagie-plugin
gradle plugin saagie
Last synced: about 1 month ago
JSON representation
Gradle plugin to automatise saagie platform management using gradle.
- Host: GitHub
- URL: https://github.com/saagie/gradle-saagie-plugin
- Owner: saagie
- Created: 2017-05-15T16:11:15.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-12-15T10:31:26.000Z (about 4 years ago)
- Last Synced: 2024-11-15T09:36:37.080Z (2 months ago)
- Topics: gradle, plugin, saagie
- Language: Groovy
- Homepage: https://www.saagie.com/
- Size: 233 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/saagie/gradle-saagie-plugin.svg?branch=master)](https://travis-ci.org/saagie/gradle-saagie-plugin)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.saagie/gradle-saagie-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.saagie/gradle-saagie-plugin)
[![Download](https://api.bintray.com/packages/bintray/jcenter/io.saagie%3Agradle-saagie-plugin/images/download.svg) ](https://bintray.com/bintray/jcenter/io.saagie%3Agradle-saagie-plugin/_latestVersion)# 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. |
| 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. |## 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 = '[email protected]'
idFile = './jvm-example.id'
}
]}
fileName = './my-cool-archive.jar'
}
```
Then launch command ```gradle createJob```## Documentation
Full documentation is available on the [wiki](https://github.com/saagie/gradle-saagie-plugin/wiki)## Changelog
Changelogs are available [here](https://github.com/saagie/gradle-saagie-plugin/releases)