Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2016 11:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/a5ade9a2f0de5c2ac548 to your computer and use it in GitHub Desktop.
An example of how to use secrets with the Kubernetes workflow plugin
kubernetes.pod('buildpod').withImage('maven').withSecret('gpg-key','/home/jenkins/.gnupg').inside {
git 'https://github.com/fabric8io/kubernetes-workflow.git'
sh 'mvn clean install'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment