Skip to content

Instantly share code, notes, and snippets.

@blackpioter
Created November 17, 2016 14:36
Show Gist options
  • Save blackpioter/4214f32272fbeb3ce1ca314ca457a940 to your computer and use it in GitHub Desktop.
Save blackpioter/4214f32272fbeb3ce1ca314ca457a940 to your computer and use it in GitHub Desktop.
Gradle sign RPM with GPG
def isJenkinsBuild = System.getenv("BUILD_NUMBER") ?: false
if(isJenkinsBuild) {
signingKeyId = System.getenv("signingKeyId")
signingKeyPassphrase = System.getenv("signingKeyPassphrase")
signingKeyRingFile = new File(System.properties['user.home'] + '/.gnupg/secring.gpg')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment