use of com.microsoft.azure.gradle.functions.helpers.FTPUploader in project azure-gradle-plugins by lenala.
the class FTPArtifactHandlerImpl method publish.
@Override
public void publish() throws Exception {
final FTPUploader uploader = getUploader();
final FunctionApp app = functionsTask.getFunctionApp();
final PublishingProfile profile = app.getPublishingProfile();
final String serverUrl = profile.ftpUrl().split("/", 2)[0];
uploader.uploadDirectoryWithRetries(serverUrl, profile.ftpUsername(), profile.ftpPassword(), functionsTask.getDeploymentStageDirectory(), DEFAULT_FUNCTION_ROOT, DEFAULT_MAX_RETRY_TIMES);
app.syncTriggers();
}
Aggregations