I have the following step within my pipeline to deploy to a local folder on the build server.
- step: &deploy
name: Deploy
runs-on:
- self.hosted
- windows
script:
- dir -r
- $COMMIT_SHORT = git log --pretty=format:'%h' -n 1
- Compress-Archive -Path bin/*.exe, bin/*.dll -DestinationPath "C:\atlassian-bitbucket-pipelines-runner\Artifacts\${BITBUCKET_REPO_SLUG}-${BITBUCKET_BRANCH}-$COMMIT_SHORT-${BITBUCKET_BUILD_NUMBER}.zip"
But none of the variables are resolved, except COMMIT_SHORT, what is causing this?