-
-
Save atrakic/7064882bb1c62ced08bc5328db39ee00 to your computer and use it in GitHub Desktop.
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
podTemplate( | |
label: 'kubernetes', | |
containers: [ | |
containerTemplate(name: 'maven', image: 'maven:alpine', ttyEnabled: true, command: 'cat'), | |
containerTemplate(name: 'golang', image: 'golang:alpine', ttyEnabled: true, command: 'cat') | |
] | |
) { | |
node('kubernetes') { | |
container('maven') { | |
stage('build') { | |
sh 'mvn --version' | |
} | |
stage('unit-test') { | |
sh 'java -version' | |
} | |
} | |
container('golang') { | |
stage('deploy') { | |
sh 'go version' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment