Skip to content

Commit

Permalink
Merge pull request #33 from rundeck-plugins/gradle-support
Browse files Browse the repository at this point in the history
Adding gradle to generate zip file
  • Loading branch information
ltamaster authored Sep 4, 2018
2 parents e6e63d5 + 31417fb commit 1955558
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
### Gradle ###
.gradle
/build/
/.idea/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

# End of https://www.gitignore.io/api/java,gradle
4 changes: 2 additions & 2 deletions docker-container/README.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Three providers in this plugin:

Run the following commands to install the plugins:

zip -r docker-container.zip docker-container
cp docker-container.zip $RDECK_BASE/libext
gradle build
cp build/libs/docker-container-X.Y.Z.zip $RDECK_BASE/libext


## Resource Model Mapping and Tags
Expand Down
38 changes: 38 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.7.0'
}

ext.pluginName = 'Docker Plugin'
ext.pluginDescription = "Docker manager plugin"
ext.sopsCopyright = "© 2017, Rundeck, Inc."
ext.sopsUrl = "http://rundeck.com"
ext.buildDateString=new Date().format("yyyy-MM-dd'T'HH:mm:ssX")
ext.archivesBaseName = "docker-container"
ext.pluginBaseFolder = "."

scmVersion {
ignoreUncommittedChanges = false
tag {
prefix = ''
versionSeparator = ''
def origDeserialize=deserialize
//apend .0 to satisfy semver if the tag version is only X.Y
deserialize = { config, position, tagName ->
def orig = origDeserialize(config, position, tagName)
if (orig.split('\\.').length < 3) {
orig += ".0"
}
orig
}
}
}

project.version = scmVersion.version
ext.archiveFilename = ext.archivesBaseName + '-' + version

apply from: 'https://raw.githubusercontent.com/rundeck-plugins/build-zip/master/build.gradle'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions docker-container/plugin.yaml → plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: docker-container-node-executor
version: 1.3.2
rundeckPluginVersion: 1.2
author: alexh
date: Thu Aug 6 19:32:08 PDT 2015
author: "@author@"
date: "@date@"
version: "@version@"
url: "@url@"
providers:
- name: docker-container-execute-command
service: WorkflowNodeStep
Expand Down
File renamed without changes

0 comments on commit 1955558

Please sign in to comment.