Search code examples
buildrtcjazz

Setting global properties for RTC Jazz Build definition


I have several Build Definitions in RTC/Jazz and i use a variable to set out DB-Release in various Build Definitions

  • Build-Lib
  • Build-Server-App
  • Build-Run-Test-Server
  • Build-Client-App
  • Build-Run-Test-Client

and in all Definitions i use the Property DB_SCHEMA,

DB_SCHEMA = 8.1

once we update our DB and use a new Schema i have to set the Build Property up to

DB_SCHEMA = 8.2

now i must update all Build-Definitions... and if i forget one or i misspell something, then my boss gets mad at me - joking, but honestly, i don't want to make mistakes

--> how can i define a global Property that can be used in all Build-Definitions?


Solution

  • I don't see any global property in the help page, so you might consider developing a program:

    • using the RTC Java API
    • for each build definition, setting the property to the expected value (as in this thread)

      IBuildDefinition definition = (IBuildDefinition) buildDefinition.getWorkingCopy();
      definition.setProperty("propertyName","");
      definition = buildClient.save(definition, monitor);