Jenkins amazon-ecr插件问题

时间:2016-01-28 22:08:30

标签: amazon-web-services plugins jenkins docker

我正在为詹金斯使用amazon-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身份验证并且仅在推送时失败。

我对java不了解,也不确定是什么,上面的错误说明了

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

保持问题开放。 非常感谢, 单

1 个答案:

答案 0 :(得分:0)

由于某种原因,

C:\Users\bob\AppData\Local\Continuum\Anaconda3\Scripts>conda install spacy --no-deps Fetching package metadata ............. Solving package specifications: . Package plan for installation in environment C:\Users\bob\AppData\Local\Continuum\Anaconda3: The following NEW packages will be INSTALLED: spacy: 1.8.2-np112py36_vc14_0 conda-forge [vc14] Proceed ([y]/n)? y CondaError: CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/conda-forge/win-64/spacy-1.8.2-np112py36_vc14_0.tar.bz2> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. CondaError: CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/conda-forge/win-64/spacy-1.8.2-np112py36_vc14_0.tar.bz2> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. CondaError: CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/conda-forge/win-64/spacy-1.8.2-np112py36_vc14_0.tar.bz2> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. 可能会变为空白。

尝试删除该文件并重新运行构建作业。

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