#1219  Error evaluating groovy script
Released
Marcos de Oliveira opened 1 year 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' 1 year ago
Previous Value Current Value
Open
Closed
OneDev commented 1 year ago

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

OneDev changed state to 'Released' 1 year ago
Previous Value Current Value
Closed
Released
OneDev commented 1 year ago

State changed as build #3446 is successful

Referenced from commit 1 year ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1219
Please wait...
Page is in error, reload to recover