使用helm安装Jenkins
helm install --name jenkins -f values.yaml stable/jenkins
Jenkins插件已安装
- kubernetes:1.12.6
- workflow-job:2.31
- workflow-aggregator:2.5
- credentials-binding:1.16
- git:3.9.3
- docker:1.1.6
定义了Jenkins管道来构建docker容器
node {
checkout scm
def customImage = docker.build("my-image:${env.BUILD_ID}")
customImage.inside {
sh 'make test'
}
}
引发错误:找不到docker