I’d like to migrate some projects from TeamCity and Travis to use Circle but there doesn’t appear to be a way to specify the build number.
I found this old thread about resetting
i want to reset the circle build number every time i make a release.
i can use mod $((CIRCLE_BUILD_NUM % 1000)) to limit it to my count, but i want it to be consistent from release to release (it’s not used for release just for dev builds, release has his own count).
BTW i believe if i close my project and reopen the build count will zero out, but i don’t really want to close and open projects on weekly basis…
But I’d like to change the value so the build number continues from the previous value as the build number is part of our released software version.
Many thanks
Dan
1 Like
CirclecI team, I would also like to use a feature to reset the build number from some custom offset to carry on from another setup.
Please do update.
This is not possible on CircleCI. You can make a feature request by posting in the Feature Request Discuss Category .
What are you using the build number for? If it’s arbitrary, well, I don’t have a solution. If it’s as part of a release string for your project, you could maintain this on your own, perhaps stored in the repo itself or using environment variables.