diff --git a/upload_plugins.gradle b/upload_plugins.gradle index 5b05983b87c..d84d8706571 100644 --- a/upload_plugins.gradle +++ b/upload_plugins.gradle @@ -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) }