-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: kubernetes-plugin
Â
parameters {
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
}
def label = "mypod-${UUID.randomUUID().toString()}"podTemplate(label: label, containers: [
containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat'),
]) {
node(label) {
stage('Get a Maven project') {
git 'https://github.com/jenkinsci/kubernetes-plugin.git'
container('maven') {
stage('Build a Maven project') {
echo "Hello ${params.PERSON}"
}
}
}
}
}