@project_path@ lowercase #2722
Cody Farmer opened 3 months ago

The @project_path@ substitution resolves into a properly cased path, like /MyProject/Trite

However, I want to use it to help make more standardized build steps. I can't guarantee none of the projects have capital letters. I would like either @project_path@ to always resolve lowercase, or some kind of helper I can use in templating so I can just do @[email protected] and not have to worry about the case without a full blown script.

  • Robin Shen commented 3 months ago

    The project_path will just return the path as is. To convert to lowercase, define a groovy script with below content:

    return build.project.path.toLowerCase()
    

    Then reference that script in your build spec.

  • Robin Shen changed state to 'Closed' 3 months ago
    Previous Value Current Value
    Open
    Closed
  • Cody Farmer commented 3 months ago

    Thanks, worked like a charm. Didn't realize how easily I could drop groovy scripts in, had been using bash!

1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2722
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover