Slide 20
Slide 20 text
© 2019 CloudBees, Inc. All Rights Reserved.
Example: Kubernetes Plugin
def label = "gcc-riscv-${UUID.randomUUID().toString()}"
podTemplate(name: 'test', label: label,
containers: [
containerTemplate(name: 'gcc-riscv',
image: 'onenashev/gcc-riscv:6.4-rc’,
resourceRequestCpu: ‘2’,
resourceLimitMemory: ‘8Gi'
ttyEnabled: true, command: 'cat')]) {
node(label) {
checkout scm
sh "make clean test"
step([$class: 'TapPublisher', testResults: 'output/test/report.tap', ...])
}
}
https://plugins.jenkins.io/kubernetes 20