Downgraded gpg plugin to version 1.4. 1.5 was not accepting the passphrase for the GPG key.