Skip to content

gpgv: Can't check signature: No public key #203

@vchrizz

Description

@vchrizz

according to the docs i have generated a key (as user jenkins) with gpg and set KEY_ID in /etc/jenkins/debian_glue to the id of the key to sign packages which seems to work for -source job, but for job -binaries, regardless which project, even with job jenkins-debian-glue-binaries i get following messages from gpgv.
also tried to generate the key as user root or export from user jenkins and import to user root to have same key for signing and verifying but anyhow i dont get this working.
i noticed gpgv is looking for ~/.gnupg/trustedkeys.kbx whereas gpg defaults to ~/.gnupg/pubring.kbx so gpgv wants to access a file which does not exist.
even tried to set REPOSITORY_KEYRING to that file, which didnt work either.
then i tried to copy pubring.kbx to trustedkeys.kbx but the verification by gpgv still fails with same messages:

I: Copying source file
I: copying [/var/lib/jenkins/jobs/jenkins-debian-glue-binaries/workspace/architecture/amd64/jenkins-debian-glue_0.18.4+0~20181103133514.1~1.gbp525467.dsc]
I: copying [/var/lib/jenkins/jobs/jenkins-debian-glue-binaries/workspace/architecture/amd64/jenkins-debian-glue_0.18.4+0~20181103133514.1~1.gbp525467.tar.xz]
I: Extracting source
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error
gpgv: Signature made Sat Nov  3 13:35:35 2018 UTC
gpgv:                using RSA key A8EAE53F804C4A4A9D666E7EAB22A3E749847E5F
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./jenkins-debian-glue_0.18.4+0~20181103133514.1~1.gbp525467.dsc
dpkg-source: info: extracting jenkins-debian-glue in jenkins-debian-glue-0.18.4+0~20181103133514.1~1.gbp525467
dpkg-source: info: unpacking jenkins-debian-glue_0.18.4+0~20181103133514.1~1.gbp525467.tar.xz
I: Installing the build-deps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions