Last active
January 22, 2016 17:23
-
-
Save iocanel/06b601cc14e532e78895 to your computer and use it in GitHub Desktop.
jenkins kubernetes workflow testing
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
node('kubernetes') { | |
kubernetes.pod('mypod').withImage('maven').inside { | |
git 'https://github.com/fabric8io-images/s2i.git' | |
kubernetes.image().withName("my-java-s2i").build().fromPath("java") | |
kubernetes.image().withName("my-java-s2i").tag().inRepository("my-java-s2i").withTag("1.0") | |
kubernetes.image().withName("my-java-s2i").push().withTag("1.0").toRegistry() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment