标签:jenkins 服务 target nal href style val 源文件 nbsp
今天在jenkins中创建kubernetes的rc时,检查目标yaml文件时报出如下错误:
+ /opt/jenkins/kube/kubectl -s http://10.xx.xx.xx:8080 create -f ./WebSituationAnalysis2.0/src/WebSituationAnalysis/rc.yaml error validating "./WebSituationAnalysis2.0/src/WebSituationAnalysis/rc.yaml": error validating data: [unexpected type: object, unexpected type: object, unexpected type: object]; if you choose to ignore these errors, turn validation off with --validate=false Build step ‘Execute shell‘ marked build as failure Finished: FAILURE
检查yaml文件并没有语法错误,在kubernetes项目地址中找到对应问题原因:
确认jenkins服务器上的kubectl版本为1.2,因此升级到1.3.4版本,重新在jenkins中创建rc成功。
标签:jenkins 服务 target nal href style val 源文件 nbsp
原文地址:http://www.cnblogs.com/JiaK/p/6027569.html