This is an example of testing Jenkins in Kubernetes with Jenkins helm chart
What was done was:
- adding custom agents in additionalAgents
- adding docker in docker additionalContainers. This might be useful for building images, even if I'm not sure that it's really necessary, so I've commented it
- added some missing plugins. The alternatice is creating a custom jenkins image and install them there.
- added some examples of pipelines in examples/pipelines
helm install jenkins jenkins
pipeline {
agent {label "maven21"}
stages {
stage('Build') {
steps {
container('maven') {
sh 'mvn --version'
}
}
}
}
}
pipeline {
agent {label "maven"}
stages {
stage('Build') {
steps {
container('maven') {
sh 'mvn --version'
}
}
}
}
}
pipeline {
agent {label "python"}
stages {
stage('Build') {
steps {
container('maven') {
sh 'python --version'
}
}
}
}
}