Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding gradle to generate zip file #33

Merged
merged 1 commit into from
Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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