Join GitHub today
Commit info #1897
We would like to allow our developers to see which version of the Website are running. We used to do that creating a
If we use Appveyor we create the file and use enviroments variable with that information.
Code like thise do the trick:
$fileName = "build.txt" "BUILD VERSION: $env:APPVEYOR_BUILD_VERSION" >> $fileName "COMMIT SHA: $env:APPVEYOR_REPO_COMMIT" >> $fileName "COMMIT TIMESTAMP: $env:APPVEYOR_REPO_COMMIT_TIMESTAMP" >> $fileName "COMMIT MESSAGE: $env:APPVEYOR_REPO_COMMIT_MESSAGE" >> $fileName "COMMIT AUTHOR: $env:APPVEYOR_REPO_COMMIT_AUTHOR" >> $fileName "COMMIT AUTHOR EMAIL: $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL" >> $fileName
So do you have that kind of environment variables or are there any other recommended way to allow our devs view which version of the site is running when using kudu for deployment?
Looks like in variable enviroments there are little information, like there is not info about the author etc.
So the info in the XML looks very good. What kinds of permissions will need the developers to access to that file? I would like to my devs look the current deployed file but dont allow then manage our website (or change the deployment slots, etc)
yes. since you will do within deployment script, you have a few options.
Thank yo so much @suwatch
I ended with
call :ExecuteCmd git show %SCM_COMMIT_ID% --pretty=fuller --quiet > %DEPLOYMENT_TEMP%\build.txt IF !ERRORLEVEL! NEQ 0 goto error
In my deploy script.