Forum Discussion

richie's avatar
richie
Community Hero
6 years ago

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
    6 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)}