Amazon web services 詹金斯亚马逊ecr插件问题

Amazon web services 詹金斯亚马逊ecr插件问题,amazon-web-services,plugins,jenkins,docker,Amazon Web Services,Plugins,Jenkins,Docker,我正在为詹金斯使用亚马逊ecr插件,它运行了很长时间,今天突然坏了 ERROR: Build step failed with exception net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499) at net.sf.json.JSO

我正在为詹金斯使用亚马逊ecr插件,它运行了很长时间,今天突然坏了

ERROR: Build step failed with exception
net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of 
    at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
    at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
    at net.sf.json.JSONObject._fromString(JSONObject.java:1145)
    at net.sf.json.JSONObject.fromObject(JSONObject.java:162)
    at net.sf.json.JSONObject.fromObject(JSONObject.java:132)
    at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:91)
    at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:71)
    at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
    at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken.newKeyMaterialFactory(DockerRegistryToken.java:71)
    at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:204)
    at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
    at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:404)
    at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:382)
    at com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:326)
    at com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:274)
    at com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:254)
    at com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:225)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1738)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Build step 'Docker Build and Publish' marked build as failure
Finished: FAILURE 
Docker Build运行良好,如果我删除ECR auth并且仅在推送时失败

我不懂java,也不知道上面的错误是什么

更新 这感觉是Jenkins升级的一个问题。安装fresh Jenkins和amazon ecr确实很好

把问题留着。 多谢各位,
Shan

/var/lib/jenkins/.dockercfg
可能出于某种原因而变为空白

尝试删除该文件并重新运行生成作业

这将生成新的.dockercfg文件,问题将得到解决