jenkins pipeline k8s发布回滚
jenkins下pipeline 通过用户选择需要回滚的服务,输入回滚的版本号,实现k8s上发布的版本回滚
env.CREDENTIALSID = '5576057b-0a5c-4e95-9b1f-xxxxxxxx'
podTemplate(name: 'jenkins-slave',label: 'jenkins-slave', cloud: 'kubernetes-test',namespace: 'jenkins', containers: [
containerTemplate(
name: 'jnlp',
image: '192.168.1.140/library/jnlp-slave-maven:latest',
ttyEnabled: true,
privileged: false,
alwaysPullImage: false,
)
],
volumes:[
hostPathVolume(mountPath: '/var/run/d
共有 0 条评论