Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30445

Fix explorer cleanup build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: explorer-22.0.0
    • Component/s: Explorer
    • Team:
      AT

      Description

      The cleanup job started by timer (cleaning up reference exports pushed automatically to the explorer master preview) does not run ok anymore after changes for NXBT-3491.

      The default parameter values are not taken into account properly when the job is started by the timer (runs ok when run manually and the job parameters have been properly discovered with a previous run: some Jenkins updates seem to reset that behaviour, and a manual run is needed for the timer to execute correctly).

      Potential fix: double default values during script execution. See also NXBT-3511 for similar (but different) issues.

      Sample stack trace when problem occurs:

      groovy.lang.MissingPropertyException: No such property: TARGET_URL for class: groovy.lang.Binding
      10:43:55  	at groovy.lang.Binding.getVariable(Binding.java:63)
      10:43:55  	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:271)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
      10:43:55  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
      10:43:55  	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
      10:43:55  	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
      10:43:55  	at WorkflowScript.run(WorkflowScript:95)
      10:43:55  	at ___cps.transform___(Native Method)
      10:43:55  	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
      10:43:55  	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
      10:43:55  	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
      10:43:55  	at sun.reflect.GeneratedMethodAccessor681.invoke(Unknown Source)
      10:43:55  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      10:43:55  	at java.lang.reflect.Method.invoke(Method.java:498)
      10:43:55  	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      10:43:55  	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
      10:43:55  	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
      10:43:55  	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
      10:43:55  	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
      10:43:55  	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
      10:43:55  	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
      10:43:55  	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
      10:43:55  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
      10:43:55  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      10:43:55  	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      10:43:55  	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      10:43:55  	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      10:43:55  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      10:43:55  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      10:43:55  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      10:43:55  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      10:43:55  	at java.lang.Thread.run(Thread.java:748)
      10:43:55  Finished: FAILURE
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: