Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes deploy failure #145

Open
18515291426 opened this issue Nov 12, 2020 · 4 comments
Open

kubernetes deploy failure #145

18515291426 opened this issue Nov 12, 2020 · 4 comments

Comments

@18515291426
Copy link

Starting Kubernetes deployment
Loading configuration: /root/.jenkins/workspace/container-service/container-open-api-test/test.yaml
ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Service; exception=Class not found: io.kubernetes.client.openapi.models.V1Service
in 'reader', line 1, column 1:
apiVersion: v1
^

hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Service; exception=Class not found: io.kubernetes.client.openapi.models.V1Service
in 'reader', line 1, column 1:
apiVersion: v1
^

at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:335)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:229)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:219)
at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:173)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:157)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:490)
at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:456)
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)
@parlacom
Copy link

Im facing the same issue, please fix it

@arsamigullin
Copy link

Facing the same. Downgrading both Jackson API to 2.10.3 and Kubernetes-CD plugin to 2.1.0 works but it causes other plugins not to be working. For example, the Kubernetes CLI plugin is not working after downgrading because it requires the Jackson API plugin to be 2.11.3 and higher.

I had to comment out the part in Jenkinsfile that relies on the Kubernetes CLI plugin

@GuoDapeng
Copy link

GuoDapeng commented Dec 8, 2020

Jenkins2.263.1

docker run --detach \
 --name jenkins \
 --restart=always \
 -p 8090:8080 \
 -v $PWD/jenkins_home:/var/jenkins_home \
 -v /var/run/docker.sock:/var/run/docker.sock \
 jenkinsci/blueocean

截屏2020-12-09 上午12 16 59

kubernetes-cd-plugin/pom.xml

<jackson.version>2.10.1</jackson.version>

我在研究如何卸载 Jackson 尝试安装 2.10.1

@maps90
Copy link

maps90 commented Dec 10, 2020

facing the same issue.. any update on this yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants