Forum Discussion

richie's avatar
richie
Community Hero
5 years ago
Solved

Delete Project Level Properties With Specific Name After Execution

Hi,   Bit embaressed I can't fix this myself :(   I have some project level properties I create after running a setup testsuite to grab some GUIDS out of the database for later use in the pro...
  • nmrao's avatar
    5 years ago

    richie 

     

    Hope below helps for the same.

     

    //Add the property (exact) names to be removed in below statement, comma separated if more than one
    def listToRemove = ['ScheduleID']
    listToRemove.findAll { it in project.propertyNames }.each { project.removeProperty(it)}