Created
January 28, 2016 11:14
-
-
Save anonymous/a5ade9a2f0de5c2ac548 to your computer and use it in GitHub Desktop.
An example of how to use secrets with the Kubernetes workflow plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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