Skip to content

Instantly share code, notes, and snippets.

@ThomasPe
Created April 2, 2024 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasPe/461ac67e45c3b6a2eda835e19e2311d2 to your computer and use it in GitHub Desktop.
Save ThomasPe/461ac67e45c3b6a2eda835e19e2311d2 to your computer and use it in GitHub Desktop.
SFTP Deployment Pipeline
trigger:
branches:
include:
- main
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Deploy_Preview
jobs:
- job: Deploy
steps:
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: 'My SFTP Service Connection'
sourceFolder: '$(Pipeline.Workspace)/s/myrepo'
contents: '**'
targetFolder: 'mytargetfolder'
cleanTargetFolder: true # requires SSH permissions in addition to SFTP
overwrite: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment