Switch to sudo -n

This commit is contained in:
Erwin de Haan 2020-08-01 00:32:25 +02:00
parent 7c60510bc9
commit 3ee28c016a

View File

@ -133,7 +133,7 @@ jobs:
inputs:
sshEndpoint: repository
runOptions: 'commands'
commands: bash /srv/repository/collect-server.azure.sh
commands: sudo -n /srv/repository/collect-server.azure.sh
args: /srv/repository/incoming/azure $(Build.BuildNumber) unstable
- task: SSH@0
@ -141,11 +141,9 @@ jobs:
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
inputs:
sshEndpoint: repository
runOptions: 'inline'
inline: |
sudo /srv/repository/collect-server.azure.sh /srv/repository/incoming/azure $(Build.BuildNumber)
rm $0
exit
runOptions: 'commands'
commands: sudo -n /srv/repository/collect-server.azure.sh
args: /srv/repository/incoming/azure $(Build.BuildNumber)
- job: PublishNuget
displayName: 'Publish NuGet packages'