I want to track the metrics of the bitbucket pipline, and for that reason I want to use the history command, and pass forward it's output to a file. But the file containing the stdout and stderr of the history command contains nothing inside of it.
These are two of the steps in the script.
- export HISTTIMEFORMAT="%d/%m/%y %T "
- history 1>${BITBUCKET_BUILD_NUMBER}_history.log 2>${BITBUCKET_BUILD_NUMBER}_history.log
It works fine locally on the same docker machine. Is it because I am using secret keys?