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:
<span>gradle </span><span>-</span><span>Pversion</span><span>=</span><span>$BITBUCKET_BUILD_NUMBER</span><span> publish</span>
It looks like you're new here. Sign in or register to get started.