mrwanny

Q: How to get the integration number from the build script

I am trying to configure xcode bots to build my iOS apps:

I would like to set the build number of the app to be the same number of the Bots integration number but I cannot figure out how to do it.

Is there any evirorment variable that my prebuild script can read?

 

Thanks

 

MrWanny

Mac OS X (10.7.5)

Posted on Oct 27, 2013 2:45 PM

Close

Q: How to get the integration number from the build script

  • All replies
  • Helpful answers

  • by Leland Wallace,

    Leland Wallace Leland Wallace Oct 29, 2013 4:58 PM in response to mrwanny
    Level 3 (643 points)
    Oct 29, 2013 4:58 PM in response to mrwanny

    First thing to do is to test what environment vars are passed to the script during building.

    add an

    echo `env`

    to your script phase,

    run two builds and look at what is passed & see if there is anything that changes between the builds.

     

    If you don't see anything that could be the iteration number, then you should probably file an enhancement request (bug) with Apple.

     

    HTH

    - Leland

  • by ConcurWanny,

    ConcurWanny ConcurWanny Oct 29, 2013 5:06 PM in response to Leland Wallace
    Level 1 (0 points)
    Oct 29, 2013 5:06 PM in response to Leland Wallace

    Unfotunately " printenv | grep 18 " where the 18 is the build number does not return anything.

    I did some more research in the logs and it looks like XCSBuildService receive a message with the integration number as params

     

    [XCSBuildService.m:388 7194b310 +0ms] Got BotRun entity from collabd with GUID

    ...

    guid = "4b455e14-b6e4-4c89-b20d-8b34047c5b48";

    xcsbuildd.log:         integration = 18;

    xcsbuildd.log-         isBlogEnabled = 0;

    ...

     

    than it creates a botRunInfoPlist but unfortunately the integration number is not there any more :-(

     

    I'll create a bug report

     

    Thanks

    mrwanny