How to get groovy scripts running #2817
floris huisman opened 13 hours ago

I have made and have some ideas todo for groovy script, but I cant seem to figure out how to get the scripts running. In admin -> groovyscripting I made a script to test a bit. How does the script get triggered to run. I thought there would be a "run" button or something. And/or trigger the scripts from a job configured in .onedev-buildspec.yml. But I dont see them listed in the "steps".

Are there any examples or hints as how to trigger these scripts?

  • floris huisman changed fields 12 hours ago
    Name Previous Value Current Value
    Type
    Question
    Bug
    Affected Versions
    empty
    15.1.6
  • floris huisman changed fields 12 hours ago
    Name Previous Value Current Value
    Type
    Bug
    Question
  • Robin Shen commented 6 hours ago

    The groovy script is mainly used in two places:

    1. Used in issue custom field or build param to calculate choices or default value if hard-code values is not sufficient
    2. Used in various CI/CD job properties (for instance image or command field of a command step) to insert calcualted string via property interpolation syntax @scripts:<script name>@
1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2817
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover