Commit accb32f7 authored by 卢浩元's avatar 卢浩元

jenkins优化

parent 9003d10f
......@@ -11,9 +11,7 @@ def projectProperties = [
properties(projectProperties)
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, cloud: 'kubernetes', containers: [
podTemplate(cloud: 'kubernetes', containers: [
containerTemplate(name: 'maven', image: 'harbor.k2software.cn/build/maven:3.6.0-jdk-8', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'kaniko', image: 'harbor.k2software.cn/build/kaniko-executor:v1.3.0', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'helm', image: 'harbor.k2software.cn/build/helm:v3.2.2', command: 'cat', ttyEnabled: true, envVars: [
......@@ -30,7 +28,7 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
) {
node(label) {
node(POD_LABEL) {
def gitCommit
def shortGitCommit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment