I want to use BITBUCKET_BUILD_NUMBER in the version number while gradle assumbling.
However, I found there is no way to pass it into the gradle!
Can any one help, I've wasted two days...
Hey @Naiyin Tan,
the build number gets injected as an environment variable into you build as `$BITBUCKET_BUILD_NUMBER`.
So for example, you could execute something like this:
gradle -Pversion=$BITBUCKET_BUILD_NUMBER publish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.