Hi Kev Martin,
The issue seems to be with mapping of your rootDirectory
.
By default, '$(build.artifactstagingdirectory)'
takes the application root directory.
- Instead of root directory set the parent rootDirectory value to the exact folder path
$(Build.ArtifactStagingDirectory)/SpiceTheWorld
.
As per this MSDoc, preserve path has to be set to false.
-
preservePaths: true
will recreate the entire structure under the remote folder.
So, to upload the files without any folders set the preservePaths
to false
.
- Store the FTP
Username
andPassword
in variables section.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions, please reply back.