diff --git a/snapshot-pipeline.yml b/snapshot-pipeline.yml
index 3f9bfa5ffaa..0d4f4e4c8ba 100644
--- a/snapshot-pipeline.yml
+++ b/snapshot-pipeline.yml
@@ -37,8 +37,8 @@ steps:
# 3. Import keys into gpg
- bash: |
- gpg --import --no-tty --batch --yes $(Agent.TempDirectory)/public.gpg
- gpg --import --no-tty --batch --yes $(Agent.TempDirectory)/private.gpg
+ gpg --import --no-tty --batch --yes $(Agent.TempDirectory)/public.pgp
+ gpg --import --no-tty --batch --yes $(Agent.TempDirectory)/private.pgp
gpg --list-keys --keyid-format LONG
gpg --list-secret-keys --keyid-format LONG
displayName: 'Import signing keys into gpg.'
@@ -57,8 +57,8 @@ steps:
ossrh
- $(SONATYPE_USER)
- $(SONATYPE_PASS)
+ $(SONATYPE_USERNAME)
+ $(SONATYPE_PASSWORD)