I have a Jenkins pipeline. Every time I check into git, I need to access the changed files (or all files in a particular directory) and upload them into my Azure Storage account.
I'm able to upload files into the storage account using Azure CLI but I'm unable to access the git files. When I try to use the following in my JenkinsFile, I get null and null for both values.
echo "The commit hash is ${env.GIT_COMMIT} ${env.GIT_PREVIOUS_SUCCESSFUL_COMMIT}"
Given my use case, what should be my best approach? Is there any way I can access the files so that I can upload them?
My Jenkins version - 2.214.