Hello,
I am having an issue with setting up a build in a self hosted windows runner. This is what we have described in bitbucket-pypelines.yml
- step:
runs-on:
- self.hosted
- windows
name: Build
script:
- $version = (Get-Date).ToString("MM-dd") + "." + $BITBUCKET_BUILD_NUMBER + "-demo-" + $BITBUCKET_BRANCH
- Write-Output $version
The output for version is:
06-09.-demo-
when we expect to get something like this:
06-09.150-demo-BRANCH-10
The default Bitbucket variables are not passed and thus are empty.
We have also tried writing the script like, but it also did not work:
- $version = (Get-Date).ToString("MM-dd") + "." + ${BITBUCKET_BUILD_NUMBER} + "-demo-" + ${BITBUCKET_BRANCH}Is there a proper way on how to pass those pipelines variables, and if yes, how can I do that?