Able to access project settings from groovy script used in job trigger #2674
Robin Shen opened 6 months ago
No description
  • Robin Shen referenced from other issue 6 months ago
  • Robin Shen commented 6 months ago

    An example to access project from groovy script:

    import io.onedev.server.util.ProjectScopedCommit
    
    def project = ProjectScopedCommit.get().getProject()
    
  • OneDev commented 6 months ago

    State changed as code fixing the issue is committed (01cb3260625a4785929528fb84cc959aff3af0e4)

  • OneDev changed state to 'Closed' 6 months ago
    Previous Value Current Value
    Open
    Closed
1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2674
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover