Starting Kubernetes deployment
Loading configuration: /home/jenkins/agent/workspace/1O0_mall-jenkinsfile-cicd_master/mall-gateway/deploy/mall-gateway-deploy.yaml
ERROR: ERROR: Cannot create property=spec for JavaBean=class V1Deployment {
apiVersion: apps/v1
kind: Deployment
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: mall-gateway
namespace: mall
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
status: null
}
in 'reader', line 1, column 1:
kind: Deployment
^
Cannot create property=template for JavaBean=class V1DeploymentSpec {
minReadySeconds: null
paused: null
progressDeadlineSeconds: null
replicas: 1
revisionHistoryLimit: null
selector: class V1LabelSelector {
matchExpressions: null
matchLabels: {app=mall-gateway}
}
strategy: null
template: null
}
in 'reader', line 9, column 3:
replicas: 1
^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: null
namespace: null
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
}
in 'reader', line 14, column 5:
metadata:
^
Cannot create property=containers for JavaBean=class V1PodSpec {
activeDeadlineSeconds: null
affinity: null
automountServiceAccountToken: null
containers: []
dnsConfig: null
dnsPolicy: null
enableServiceLinks: null
hostAliases: null
hostIPC: null
hostNetwork: null
hostPID: null
hostname: null
imagePullSecrets: null
initContainers: null
nodeName: null
nodeSelector: null
preemptionPolicy: null
priority: null
priorityClassName: null
readinessGates: null
restartPolicy: null
runtimeClassName: null
schedulerName: null
securityContext: null
serviceAccount: null
serviceAccountName: null
shareProcessNamespace: null
subdomain: null
terminationGracePeriodSeconds: null
tolerations: null
volumes: null
}
in 'reader', line 18, column 7:
containers:
^
Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
in 'reader', line 19, column 7:
- name: mall-gateway
^
in 'reader', line 18, column 7:
containers:
^
in 'reader', line 14, column 5:
metadata:
^
in 'reader', line 9, column 3:
replicas: 1
^
hudson.remoting.ProxyException: Cannot create property=spec for JavaBean=class V1Deployment {
apiVersion: apps/v1
kind: Deployment
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: mall-gateway
namespace: mall
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
status: null
}
in 'reader', line 1, column 1:
kind: Deployment
^
Cannot create property=template for JavaBean=class V1DeploymentSpec {
minReadySeconds: null
paused: null
progressDeadlineSeconds: null
replicas: 1
revisionHistoryLimit: null
selector: class V1LabelSelector {
matchExpressions: null
matchLabels: {app=mall-gateway}
}
strategy: null
template: null
}
in 'reader', line 9, column 3:
replicas: 1
^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: null
namespace: null
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
}
in 'reader', line 14, column 5:
metadata:
^
Cannot create property=containers for JavaBean=class V1PodSpec {
activeDeadlineSeconds: null
affinity: null
automountServiceAccountToken: null
containers: []
dnsConfig: null
dnsPolicy: null
enableServiceLinks: null
hostAliases: null
hostIPC: null
hostNetwork: null
hostPID: null
hostname: null
imagePullSecrets: null
initContainers: null
nodeName: null
nodeSelector: null
preemptionPolicy: null
priority: null
priorityClassName: null
readinessGates: null
restartPolicy: null
runtimeClassName: null
schedulerName: null
securityContext: null
serviceAccount: null
serviceAccountName: null
shareProcessNamespace: null
subdomain: null
terminationGracePeriodSeconds: null
tolerations: null
volumes: null
}
in 'reader', line 18, column 7:
containers:
^
Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
in 'reader', line 19, column 7:
- name: mall-gateway
^
in 'reader', line 18, column 7:
containers:
^
in 'reader', line 14, column 5:
metadata:
^
in 'reader', line 9, column 3:
replicas: 1
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:309)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:164)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:148)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:525)
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:485)
at io.kubernetes.client.util.Yaml.loadAs(Yaml.java:224)
at io.kubernetes.client.util.Yaml.modelMapper(Yaml.java:494)
at io.kubernetes.client.util.Yaml.loadAll(Yaml.java:272)
at com.microsoft.jenkins.kubernetes.wrapper.KubernetesClientWrapper.apply(KubernetesClientWrapper.java:236)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.doCall(DeploymentCommand.java:172)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:124)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:106)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Thread.java:748)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 10.244.1.96/10.244.1.96:41986
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:957)
at hudson.FilePath.act(FilePath.java:1160)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:68)
at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:45)
at com.microsoft.jenkins.azurecommons.command.CommandService.runCommand(CommandService.java:88)
at com.microsoft.jenkins.azurecommons.command.CommandService.execute(CommandService.java:96)
at com.microsoft.jenkins.azurecommons.command.CommandService.executeCommands(CommandService.java:75)
at com.microsoft.jenkins.azurecommons.command.BaseCommandContext.executeCommands(BaseCommandContext.java:77)
at com.microsoft.jenkins.kubernetes.KubernetesDeploy.perform(KubernetesDeploy.java:42)
at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:54)
at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:35)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
Caused by: hudson.remoting.ProxyException: Cannot create property=template for JavaBean=class V1DeploymentSpec {
minReadySeconds: null
paused: null
progressDeadlineSeconds: null
replicas: 1
revisionHistoryLimit: null
selector: class V1LabelSelector {
matchExpressions: null
matchLabels: {app=mall-gateway}
}
strategy: null
template: null
}
in 'reader', line 9, column 3:
replicas: 1
^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: null
namespace: null
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
}
in 'reader', line 14, column 5:
metadata:
^
Cannot create property=containers for JavaBean=class V1PodSpec {
activeDeadlineSeconds: null
affinity: null
automountServiceAccountToken: null
containers: []
dnsConfig: null
dnsPolicy: null
enableServiceLinks: null
hostAliases: null
hostIPC: null
hostNetwork: null
hostPID: null
hostname: null
imagePullSecrets: null
initContainers: null
nodeName: null
nodeSelector: null
preemptionPolicy: null
priority: null
priorityClassName: null
readinessGates: null
restartPolicy: null
runtimeClassName: null
schedulerName: null
securityContext: null
serviceAccount: null
serviceAccountName: null
shareProcessNamespace: null
subdomain: null
terminationGracePeriodSeconds: null
tolerations: null
volumes: null
}
in 'reader', line 18, column 7:
containers:
^
Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
in 'reader', line 19, column 7:
- name: mall-gateway
^
in 'reader', line 18, column 7:
containers:
^
in 'reader', line 14, column 5:
metadata:
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
... 25 more
Caused by: hudson.remoting.ProxyException: Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
metadata: class V1ObjectMeta {
annotations: null
clusterName: null
creationTimestamp: null
deletionGracePeriodSeconds: null
deletionTimestamp: null
finalizers: null
generateName: null
generation: null
initializers: null
labels: {app=mall-gateway}
managedFields: null
name: null
namespace: null
ownerReferences: null
resourceVersion: null
selfLink: null
uid: null
}
spec: null
}
in 'reader', line 14, column 5:
metadata:
^
Cannot create property=containers for JavaBean=class V1PodSpec {
activeDeadlineSeconds: null
affinity: null
automountServiceAccountToken: null
containers: []
dnsConfig: null
dnsPolicy: null
enableServiceLinks: null
hostAliases: null
hostIPC: null
hostNetwork: null
hostPID: null
hostname: null
imagePullSecrets: null
initContainers: null
nodeName: null
nodeSelector: null
preemptionPolicy: null
priority: null
priorityClassName: null
readinessGates: null
restartPolicy: null
runtimeClassName: null
schedulerName: null
securityContext: null
serviceAccount: null
serviceAccountName: null
shareProcessNamespace: null
subdomain: null
terminationGracePeriodSeconds: null
tolerations: null
volumes: null
}
in 'reader', line 18, column 7:
containers:
^
Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
in 'reader', line 19, column 7:
- name: mall-gateway
^
in 'reader', line 18, column 7:
containers:
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
... 30 more
Caused by: hudson.remoting.ProxyException: Cannot create property=containers for JavaBean=class V1PodSpec {
activeDeadlineSeconds: null
affinity: null
automountServiceAccountToken: null
containers: []
dnsConfig: null
dnsPolicy: null
enableServiceLinks: null
hostAliases: null
hostIPC: null
hostNetwork: null
hostPID: null
hostname: null
imagePullSecrets: null
initContainers: null
nodeName: null
nodeSelector: null
preemptionPolicy: null
priority: null
priorityClassName: null
readinessGates: null
restartPolicy: null
runtimeClassName: null
schedulerName: null
securityContext: null
serviceAccount: null
serviceAccountName: null
shareProcessNamespace: null
subdomain: null
terminationGracePeriodSeconds: null
tolerations: null
volumes: null
}
in 'reader', line 18, column 7:
containers:
^
Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
in 'reader', line 19, column 7:
- name: mall-gateway
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
... 35 more
Caused by: hudson.remoting.ProxyException: Cannot create property=resource for JavaBean=class V1Container {
args: null
command: null
env: null
envFrom: null
image: docker.io/1457240466/mall-gateway:latest
imagePullPolicy: null
lifecycle: null
livenessProbe: null
name: mall-gateway
ports: [class V1ContainerPort {
containerPort: 8080
hostIP: null
hostPort: null
name: null
protocol: TCP
}]
readinessProbe: null
resources: null
securityContext: null
stdin: null
stdinOnce: null
terminationMessagePath: null
terminationMessagePolicy: null
tty: null
volumeDevices: null
volumeMounts: null
workingDir: null
}
in 'reader', line 19, column 9:
- name: mall-gateway
^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
in 'reader', line 25, column 11:
limits:
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:376)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:360)
at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:516)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
... 40 more
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:159)
at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:148)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:287)
at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:208)
... 51 more
Kubernetes deployment ended with HasError