Experiment for the SSH task.

This commit is contained in:
Erwin de Haan 2020-08-01 00:20:47 +02:00
parent a6d80f557d
commit 7c60510bc9

View File

@ -132,11 +132,9 @@ jobs:
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master') condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/master')
inputs: inputs:
sshEndpoint: repository sshEndpoint: repository
runOptions: 'inline' runOptions: 'commands'
inline: | commands: bash /srv/repository/collect-server.azure.sh
sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber) unstable args: /srv/repository/incoming/azure $(Build.BuildNumber) unstable
rm $0
exit
- task: SSH@0 - task: SSH@0
displayName: 'Update Stable Repository' displayName: 'Update Stable Repository'
@ -154,7 +152,7 @@ jobs:
dependsOn: dependsOn:
- BuildPackage - BuildPackage
condition: and(succeeded('BuildPackage'), startsWith(variables['Build.SourceBranch'], 'refs/tags')) condition: and(succeeded('BuildPackage'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'