Forum Discussion

richie's avatar
richie
Community Hero
6 years ago

Insert Prefix to a Groovy Generated Substring value?

Hi,   I have the following groovy script step which grabs a property value in the Properties step (Properties), parses it using a substring like function and writes this substring value to anothe...
  • CharlesHarold's avatar
    6 years ago

    Try:

    namePropertyvaluePartial = "~" + namePropertyvaluePartial
    // or
    namePropertyvaluePartial = "~${namePropertyvaluePartial}"