Error evaluating groovy script (OD-1219)
Marcos de Oliveira opened 3 years ago

I Followed job-dispatch-aggregation. It worked successfully, and I can see the "Generate Files" and "Collect Files" builds, but when I click in any of the "Process file" jobs, I get the following error:

Error evaluating groovy script: import io.onedev.server.OneDev import io.onedev.server.entitymanager.BuildManager // Variable "build" represents the build being triggered currently // For single value parameter, just use the first one ...

Apparently, it tries running the script when accessing the build web page, and the "build" variable is non-existent/inaccessible. I modified the script to not allow in builds, and got a different (Unauthorized) error. Then I allowed it in scripts again e modified the script to just "return true" and now I can see the builds just fine...

onedev-build-error.gif

  • OneDev changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 3 years ago

    State changed as code fixing the issue is committed (7f48d0ce)

  • OneDev changed state to 'Released' 3 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 3 years ago

    State changed as build #3446 is successful

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-1219
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover