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

Marathon Plug-in Problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • marathon-plugin
    • None
    • Jenkins version 2.32.2, Marathon Deployment plug-in version 1.4.0

      The following error is encountered when I attempt to run the Marathon plugin against the attached marathon.json.  Please note that I have scrubbed the URL of my corporate dockerhub URL for privacy purposes.  I have also verified with Mesosphere staff that the attached marathon.json is in a valid format and should have worked with the plugin.

       com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 377 path $.env.
      at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:221)
      at com.google.gson.Gson.fromJson(Gson.java:861)
      at com.google.gson.Gson.fromJson(Gson.java:826)
      at com.google.gson.Gson.fromJson(Gson.java:775)
      at com.google.gson.Gson.fromJson(Gson.java:747)
      at com.mesosphere.velocity.marathon.impl.MarathonBuilderImpl.build(MarathonBuilderImpl.java:172)
      at com.mesosphere.velocity.marathon.MarathonRecorder.perform(MarathonRecorder.java:124)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1067)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1753)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:404)
      Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 377 path $.env.
      at com.google.gson.stream.JsonReader.nextString(JsonReader.java:838)
      at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:422)
      at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:410)
      at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
      at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187)
      at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
      at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117)
      at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217)
      ... 15 more

       

            colinmsphere Colin
            chad951 Chad Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: