How to Setup Jenkins Build Agents on Kubernetes Pods
跳到导航
跳到搜索
==
prouble
failed to set up watcher on kubernetes 办法 添加多 cloud 'Kubernetes' 这一行 pipeline { agent { kubernetes { cloud 'Kubernetes' yaml ''' apiVersion: v1 kind: Pod metadata: labels: app: jenkins-slave spec: containers: - name: jnlp image: 'registry.cn-hangzhou.aliyuncs.com/evan886/my_k8s_containers:inbound-agentv2024' args: ['\$(JENKINS_SECRET)', '\$(JENKINS_NAME)'] ''' } } stages { stage('Main') { steps { echo 'HI evan' sh 'hostname' } } } }