Automatically increase build number with each build

Timotheus Pokorra edited this page Apr 4, 2016 · 1 revision

RPM packages

In the spec file, use Release: %{release}

The number will increase with every build.

For the implementation, see https://github.com/SolidCharity/LightBuildServer/blob/master/lib/BuildHelperCentos.py#L167

Debian packages

In the dsc file, and in the debian/changelog file, use %{release} behind the version number eg x.y.z-%{release}

The number will increase with every build.

For the implementation, see https://github.com/SolidCharity/LightBuildServer/blob/master/lib/BuildHelperDebian.py#L177

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.