Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4841

Auto-install of ant breaks builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      We're seeing a json error when trying to execute a build that uses an "Install
      automatically" ant. It doesn't happen when we use a locally installed ant.
      Here is the error message:

      FATAL: Unterminated string at character 1162 of {"list": [

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.4-bin.zip", "name": "1.6.4", "id": "1.6.4"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.3-bin.zip", "name": "1.6.3", "id": "1.6.3"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.2-bin.zip", "name": "1.6.2", "id": "1.6.2"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.1-bin.zip", "name": "1.6.1", "id": "1.6.1"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.0-bin.zip", "name": "1.6.0", "id": "1.6.0"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.5.4-bin.zip", "name": "1.5.4", "id": "1.5.4"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.5.3-1-bin.zip", "name": "1.5.3-1", "id": "1.5.3-1"}

      , {"url": "http:/

      net.sf.json.JSONException: Unterminated string at character 1162 of {"list":
      [

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.4-bin.zip", "name": "1.6.4", "id": "1.6.4"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.3-bin.zip", "name": "1.6.3", "id": "1.6.3"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.2-bin.zip", "name": "1.6.2", "id": "1.6.2"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.1-bin.zip", "name": "1.6.1", "id": "1.6.1"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.0-bin.zip", "name": "1.6.0", "id": "1.6.0"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.5.4-bin.zip", "name": "1.5.4", "id": "1.5.4"}

      ,

      {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.5.3-1-bin.zip", "name": "1.5.3-1", "id": "1.5.3-1"}

      , {"url": "http:/

      at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512)
      at net.sf.json.util.JSONTokener.nextString(JSONTokener.java:244)
      at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:352)
      at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:850)
      at net.sf.json.JSONObject.fromObject(JSONObject.java:170)
      at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:355)
      at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:917)
      at net.sf.json.JSONArray.fromObject(JSONArray.java:139)
      at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:358)
      at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:850)
      at net.sf.json.JSONObject._fromString(JSONObject.java:1039)
      at net.sf.json.JSONObject.fromObject(JSONObject.java:176)
      at net.sf.json.JSONObject.fromObject(JSONObject.java:147)
      at
      hudson.model.DownloadService$Downloadable.getData(DownloadService.java:194)
      at
      hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFro
      mUrlInstaller.java:149)
      at
      hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.ja
      va:54)
      at
      hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstall
      er.java:63)
      at
      hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      at
      hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:
      99)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155)
      at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:385)
      at hudson.tasks.Ant.perform(Ant.java:138)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at
      hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:508)
      at hudson.model.Build$RunnerImpl.build(Build.java:194)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:381)
      at hudson.model.Run.run(Run.java:1174)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)

            Unassigned Unassigned
            tiembo tiembo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: