Automatically update project version on package

For the current project, this is what I did in our Jenkins build:

  • Jenkins builds the editor
  • A jenkins build task checks out the config file after syncing to latest
  • Then, jenkins runs a commandlet (the solution you linked to)
  • The P4 changelist # is encoded into the version #
  • Jenkins then submits the config file change
  • Then, the build proceeds
  • There’s no source control code in the commandlet, I just let jenkins manage Perforce here. Simpler & more convenient.

If you have Jenkins maybe that’ll help. Happy to add more info if needed.