Skip to content

A gradle plugin that houses the logic to build our ElectricFlow plugins

Notifications You must be signed in to change notification settings

electric-cloud/flow-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flow-gradle-plugin

A gradle plugin that houses the logic to build ElectricFlow plugins.

To build plugin use ./gradlew jar. To upload on Bintray use ./gradlew bintrayUpload. If you make multiple uploads of same version, make sure you delete version through bintray web interface.

Sample build.gradle:

buildscript {
    repositories {
        maven {
            url 'http://dl.bintray.com/ecpluginsdev/maven'
        }

        jcenter()
    }
    dependencies {
        classpath group: 'com.electriccloud.plugins', name: 'flow-gradle-plugin', version: '+'
    }
}

group = 'com.electriccloud'
description = "Plugins : <plugin name>"
version = "1.0.0"

apply plugin: 'flow-gradle-plugin'

Tasks

createPluginProject - Create new plugin project

createConfiguration - Create configuration for plugin Parameters:

  • createFormFile file with FormXML for create configuration
  • editFormFile file with FormXML for configuration editing
  • configPropertyName name of property that contains configuration name

createForm - Create new FormXML definition Parameters:

  • formFile file with FormXML
  • formDescription description of form

removeForm - Remove FormXML definition Parameters:

  • formName name of form to be removed

Environment variables

When running plugin tasks, following variables can be set to customize them:

  • COMMANDER_SERVER hostname or IP address of ElectricFlow server (default is localhost)
  • COMMANDER_HOME path to installed ElectricFlow (default is /opt/electriccloud/electriccommander)
  • COMMANDER_USER login name for ElectricFlow user (default is admin)
  • COMMANDER_USER password for ElectricFlow user (default is changeme)
  • BUILD_NUMBER build number for plugin, included in plugin version (default is 0)
  • TESTFRAMEWORK_HOME path to internal plugin testing framework, for perl and system tests
  • RTJAR6_PATH path to jre's rt.jar (for example, /build/lib/java6/rt.jar)

About

A gradle plugin that houses the logic to build our ElectricFlow plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •