Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix No known host error message for DCR v2 #2554

Merged
merged 4 commits into from
Apr 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions dcr/templates/setup-vm-and-execute-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
displayName: 'Install SSH Key to agent'
name: "InstallKey"
inputs:
knownHostsEntry: '$(SSH_PUBLIC)'
knownHostsEntry: 'github.com $(SSH_PUBLIC)' # Adding a dummy known host for github.com as leaving it empty is not allowed by this task
sshPublicKey: '$(SSH_PUBLIC)'
sshKeySecureFile: 'id_rsa'

Expand All @@ -52,9 +52,8 @@ jobs:
architecture: 'x64'

- script: |
rm -rf ~/.ssh/known_hosts
mkdir -p "$(Build.ArtifactStagingDirectory)/harvest"
displayName: "Clear known host keys and create directories"
displayName: "Create harvest directories"

- bash: $(Build.SourcesDirectory)/dcr/scripts/build_agent_zip.sh
displayName: "Build Agent Zip"
Expand Down Expand Up @@ -205,4 +204,4 @@ jobs:
- publish: $(Build.ArtifactStagingDirectory)/harvest
artifact: $(rgName)-harvest
condition: and(failed(), eq(variables.executeTests, 'true'))
displayName: 'Publish Harvest logs'
displayName: 'Publish Harvest logs'