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

Jenkins bug encountered when applying post-build action changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • audit-trail-plugin
    • None
    • v1.480.3
      OS: Win7

      Hit the apply button after adding a post-build workspace deletion action to a VM and encountered the following Jenkins bug. The error said to report the problem as a bug so sending it for possible Jenkins bug reporting forwarding. Will upload screenshot of job action that was added.

      Error page text:

      Error

      Failed to parse form data. Please report this problem as a bug

      JSON={"":"","blockBuildWhenDownstreamBuilding":false,"blockBuildWhenUpstreamBuilding":false,"builder":[

      {"command":"@echo off\n\nset TOOLS_REPO=USV/UISS/Common/Tools\nset PROJ_REPO=USV/UISS/Common/UsvCommonLib\n\nCALL hg_checkout.bat -r %TOOLS_REPO% tip\n\nIF \"%HG_TAG%\"==\"\" (\n CALL hg_checkout.bat -r %PROJ_REPO% tip\n) ELSE (\n echo checking out revision %HG_TAG%\n CALL hg_checkout.bat -r %PROJ_REPO% %HG_TAG%\n)","kind":"hudson.tasks.BatchFile","stapler-class":"hudson.tasks.BatchFile"}

      ,

      {"command":"$ErrorActionPreference = \"Stop\"\n\n.\\Tools\\Scripts\\Build\\Windows
      Start-CompileUsvCommonLib.ps1 -BuildMode \"build\" -BuildConfig \"release\" -VisualStudioVersion \"2013\" -Architecture \"x86\"","kind":"hudson.plugins.powershell.PowerShell","stapler-class":"hudson.plugins.powershell.PowerShell"}

      ],"concurrentBuild":false,"core:apply":"","customWorkspace":false,"description":"","disable":false,"displayNameOrNull":"","hasCustomQuietPeriod":false,"hasCustomScmCheckoutRetryCount":false,"hasSlaveAffinity":[true,

      {"assignedLabelString":"Windows7-USV"}

      ],"hudson-plugins-ws_cleanup-PreBuildCleanup":

      {"cleanupParameter":"","deleteDirs":false,"externalDelete":""}

      ,"logrotate":[true,

      {"logrotate_artifact_days":"","logrotate_artifact_nums":"","logrotate_days":"","logrotate_nums":"3"}

      ],"name":"USV_UISS_UsvCommonLib-Win","properties":{"com-sonyericsson-rebuild-RebuildSettings":

      {"autoRebuild":true}

      ,"hudson-model-ParametersDefinitionProperty":{"parameterized":[true,\{"parameter":\{"defaultValue":"","description":"If this field is left blank it will pull the latest from mercurial, if a tag is selected it will pull the specified revision from mercurial.","kind":"hudson.model.StringParameterDefinition","name":"HG_TAG","stapler-class":"hudson.model.StringParameterDefinition"}}]},"org-jenkinsci-plugins-envinject-EnvInjectJobProperty":

      {"on":false}

      ,"stapler-class-bag":"true"},"publisher":[

      {"artifacts":"UsvCommonLib/lib/, UsvCommonLib/include/, UsvCommonLib/include/","excludes":"","kind":"hudson.tasks.ArtifactArchiver","latestOnly":false,"stapler-class":"hudson.tasks.ArtifactArchiver"}

      ,

      {"cleanWhenAborted":false,"cleanWhenFailure":false,"cleanWhenNotBuilt":false,"cleanWhenSuccess":true,"cleanWhenUnstable":false,"deleteDirs":false,"externalDelete":"","kind":"hudson.plugins.ws_cleanup.WsCleanup","notFailBuild":false,"stapler-class":"hudson.plugins.ws_cleanup.WsCleanup"}

      ],"scm":{"value":"5"}}

      net.sf.json.JSONException: JSONObject["logrotate"] is not a JSONObject.

      at net.sf.json.JSONObject.getJSONObject(JSONObject.java:1759)

      at hudson.model.Job.doConfigSubmit(Job.java:981)

      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:699)

      at sun.reflect.GeneratedMethodAccessor2284.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:622)

      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)

      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)

      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)

      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)

      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)

      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)

      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)

      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)

      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)

      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)

      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)

      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)

      at org.kohsuke.stapler.Stapler.service(Stapler.java:162)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)

      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)

      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)

      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)

      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)

      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)

      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)

      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)

      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)

      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)

      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)

      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)

      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)

      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)

      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)

      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)

      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)

      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)

      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)

      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)

      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

      at java.util.concurrent.FutureTask.run(FutureTask.java:166)

      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      at java.lang.Thread.run(Thread.java:701)

            Unassigned Unassigned
            ccvegita Andrew Bell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: