Allow to specify path to upload plugins from

This commit is contained in:
Dmitry Jemerov
2016-11-15 16:25:18 +01:00
parent bc4d7b2a6e
commit b7ff16757a
+2 -1
View File
@@ -18,10 +18,11 @@ task uploadPlugins() << {
if (channel == "_default_") {
channel = null
}
def path = env['PLUGIN_UPLOAD_PATH'] || "."
def repo = new org.jetbrains.intellij.pluginRepository.PluginRepositoryInstance(
"https://plugins.jetbrains.com/",
username, password)
new File(".").eachFileMatch(~/kotlin-plugin-.*\.zip/) { file ->
new File(path).eachFileMatch(~/kotlin-plugin-.*\.zip/) { file ->
println("Uploading ${file.name}")
repo.uploadPlugin(6954, file, channel)
}