From 3ee28c016aa5e159c9b077a7d16a1e0fae7c2019 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Sat, 1 Aug 2020 00:32:25 +0200 Subject: [PATCH] Switch to sudo -n --- .ci/azure-pipelines-package.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.ci/azure-pipelines-package.yml b/.ci/azure-pipelines-package.yml index f64dc2ba9..ab752d0d9 100644 --- a/.ci/azure-pipelines-package.yml +++ b/.ci/azure-pipelines-package.yml @@ -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'