Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Show the Commit ID in the runners LOG

Rafael
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 27, 2023

We are using the Bitbucket runner, running with the Agent on a Windows Server 2016.

Our Builds and tests are running, but now we want to include the commit id into our source.

To test the content of the variable, I tried

script:
 - echo "${BITBUCKET_COMMIT}"
 - echo $BITBUCKET_COMMIT
 - echo %BITBUCKET_COMMIT%
Nothing is working, I can't see the ID in the runner log. 
I just want to write the commit number into a file. 
Runner version:
current: 1.473

 

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 27, 2023

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events