Search code examples
nexusgnupgcloudbees

Uploading an artifact to Nexus from Jenkins on Cloudbees


I want to upload an artifact from Jenkins running on Cloudbees to Nexus central, since my one is an OSS project stored in Maven Central. To do so, I need to install gpg keys locally. How can I do this on Cloudbees. I've done it on my local Linux box but I'd need access to some sort of Linux environment on Cloudbees.

Regards, Marco


Solution

  • You can upload your gpg key to your private repository on cloudbees forge, and set maven job to use -Dgpg.homedir=/private/