Create a gist now

Instantly share code, notes, and snippets.

anonymous /workflow.groovy
Created Jan 28, 2016

What would you like to do?
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