Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the current source control revision to deployment scripts #1212

Closed
jrusbatch opened this issue Jun 18, 2014 · 7 comments
Closed

Expose the current source control revision to deployment scripts #1212

jrusbatch opened this issue Jun 18, 2014 · 7 comments

Comments

@jrusbatch
Copy link

It would be convenient for Kudu to expose the checksum that represents the revision being deployed to deployment scripts. In my particular circumstance, I would like to inject the checksum into my application's config file during the deployment.

@mwtian-zz
Copy link
Contributor

Have you tried SCM_COMMIT_ID in your deployment script?

@davidebbo
Copy link
Member

Oh, great, I didn't know we had done that! Can you add it to https://github.com/projectkudu/kudu/wiki/Configurable-settings?

@davidebbo
Copy link
Member

Actually, it doesn't quite belong on that page as it's not a setting. We should find the right place to doc it.

@jrusbatch
Copy link
Author

Perfect, thanks!

On Wednesday, June 18, 2014, David Ebbo notifications@github.com wrote:

Actually, it doesn't quite belong on that page as it's not a setting. We
should find the right place to doc it.


Reply to this email directly or view it on GitHub
#1212 (comment).

@mwtian-zz
Copy link
Contributor

Maybe create a new wiki entry called "Deployment Environment" or "Writing Custom Deployment Script", and document all the environement variables we provide including SCM_COMMIT_ID?

@davidebbo
Copy link
Member

Agreed, that's the way to go. Current page are the settings you can set from the outside, and we need the things that you can use inside the script.

@mwtian-zz
Copy link
Contributor

@jrusbatch No problem! @davidebbo I will start a "Deployment Environment" page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants