Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.rundeck:plugin-bootstrap:0.4.12'
}
dependencies {
implementation("com.github.rundeck:plugin-bootstrap:0.4.12")
}
<dependency>
<groupId>com.github.rundeck</groupId>
<artifactId>plugin-bootstrap</artifactId>
<version>0.4.12</version>
</dependency>
libraryDependencies += "com.github.rundeck" % "plugin-bootstrap" % "0.4.12"
:dependencies [[com.github.rundeck/plugin-bootstrap "0.4.12"]]
Bootstrap your Rundeck plugin development with this easy command line utility.
From zip file: Download the tar or zip distribution, cd to the bin directory.
From deb package:
sudo dpkg -i rundeck-plugin-bootstrap-X.Y.Z-1_all.deb
sudo rpm -i rundeck-plugin-bootstrap-X.Y.Z-1.noarch.rpm
Run the following command to get the available options
./rundeck-plugin-bootstrap help
The options available are:
--destinationDirectory or -d
: The directory in which the artifact directory will be generated--pluginName or -n
: Plugin Name--pluginType or -t
: Plugin Type--serviceType or -s
: Rundeck Service Type-t
)The plugins that can be created with the bootstrap client are:
script
: it creates a script pluginjava
: it creates a java pluginui
: it creates a UI plugin-s
)Existing service plugins enabled on boostrap-plugin
rundeck-plugin-bootstrap -n MyNodeExecutorPlugin -t script -s NodeExecutor -d /tmp
A Script NodeExecutor plugin will be created at /tmp/mynodeexecutorplugin.
You can cd into that directory, run gradle build
and you will have an installable plugin that you can put in your Rundeck installation.
rundeck-plugin-bootstrap -n MyUIPlugin -t ui -s UI -d /tmp
rundeck-plugin-bootstrap -n MyRundeckNotificationPlugin -t java -s Notification -d /tmp
This repo can be used to test plugins while in development instead of testing through the Rundeck UI running in Development mode, because that can take a while. Instead, this repo can be used to make it faster.