244 questions
Updating a web app via azure pipelines and FTP

Kev Martin
0
Reputation points
Hello
When I update spicetheworld.com from within Visual Studio with these creds it all goes well
However when I try to update spicetheworld.com from a azure pipeline
Test 1
- task: FtpUpload@2
displayName: 'FTP Upload'
inputs:
credentialsOption: inputs
serverUrl: 'ftp://ftp.spicetheworld.com'
username: azure
password: ##########
rootDirectory: '$(build.artifactstagingdirectory)'
remoteDirectory: '/'
trustSSL: true
clean: true
preservePaths: true
I get
Test 2
- task: FtpUpload@2
displayName: 'FTP Upload'
inputs:
credentialsOption: inputs
serverUrl: 'ftp://ftp.spicetheworld.com'
username: azure
password: ##########
rootDirectory: '$(build.artifactstagingdirectory)'
remoteDirectory: '/spicetheworld.com'
trustSSL: true
clean: true
preservePaths: true
However instead of updating the folder /spicetheworld.com this has created a new folder structure /spicetheworld.com/spicetheworld.com/SpiceTheWorld and the visible site is not updated.
To confirm the FTP user is called azure and the root folder for this user is /spicetheworld.com
Any ideas on where I am going wrong please
Azure DevOps
Sign in to answer