Azure DevOps pipeline upload to FTP after create directory on remote server

Snake Eyes

I developed a .net core console application and I want to deliver it to a FTP server.

I managed it in Azure Devops with FTP Upload task. All good here.

But before upload content to FTP, I want to make sure that remote directory exists, if not then create.

I put command mkdir test in FTP command but I got error that command is unknown and deployment is not done

enter image description here

enter image description here

How to achieve that ?

Krzysztof Madej

You can use this powershell script to create directory on FTP. You need to simply define a step before uploading file.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Spring Integration Ftp | how to move remote files into another directory in remote server after FTP fetch complete

Upload static set of files in Azure DevOps pipeline

Upload file to remote FTP server errors

How to upload file to remote FTP Server in grails

Upload directory of files to FTP server using WebClient

Azure DevOps: CI Pipeline executing after merge

Azure DevOps: Run step after pipeline failed

Create deployment slot for WebApp in Azure DevOps pipeline

Cannot create Release Pipeline in Azure DevOps

Azure Devops - create pipeline evironment with Terraform

Azure Devops - create pipeline environment with Terraform

Create Azure Devops pipeline without code checkout

Azure DevOps Pipeline create empty zip

Cannot list directory on IIS FTP server on Azure, even after configuring Azure inbound rules and Windows firewall

Azure DevOps Server upload Extension programmatically

Problem with FTP upload from Azure DevOps - No files uploaded

Azure DevOps Pipeline AZ CLI upload-batch not pushing files

How to import/upload multiple json files to Azure Devops Pipeline Builds?

Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

How to create a Azure Service Queue from Azure DevOps Pipeline?

Exclude Azure devops pipeline from running for certain folder in directory

Azure DevOps Pipeline deploy to Kubernetes with Helm 3: no such file or directory

How to read directory path of the Artifact in Release pipeline in Azure DevOps?

Azure DevOps Build Pipeline : COPY failed: stat .. no such file or directory

Using Integrated Active Directory on an Azure DevOps release pipeline - "failed to authenticate"

The remote server returned an error: (550) on upload file to FTP using FtpWebRequest

Download remote FTP directory

How do I release from Azure DevOps to a server via FTP?

Azure DevOps Server: create Wiki pages programmatically