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

to and from revision for material #41

Open
studiotomi opened this issue Jan 11, 2021 · 2 comments
Open

to and from revision for material #41

studiotomi opened this issue Jan 11, 2021 · 2 comments

Comments

@studiotomi
Copy link

Is it possible to get the to and from revisions for a material when using this plugin? When I take a look at the envvar's, I only see the revisions for the materials using the standard set up from gocd.

I'd like to see the triggering revisions if possible:

[go] setting environment variable 'GO_REVISION_mat_name' to value 'abc123'
[go] setting environment variable 'GO_TO_REVISION_mat_name' to value 'abc123'
[go] setting environment variable 'GO_FROM_REVISION_mat_name' to value '123abc'
@chadlwilson
Copy link
Collaborator

The environment variables are all set by the main GoCD agent runner and if I recall correctly, I don't think SCM plugins like this one have control over these - one can think of them as something set up by the "sandbox" the GoCD agent ensures for each build where it merges env vars from Gocd + Pipeline Environment + Pipeline + Stage + Job.

The TO revisions should be in GO_SCM_mat_name_LABEL vars, but not sure there is anywhere for the previous/FROM revision.

Are you saying though, that the plugin lacks env vars that are there when using the built-in Git material?

@studiotomi
Copy link
Author

studiotomi commented Jan 12, 2021

Yes, materials that do not use this plugin have the revision envvars, and materials that use this plugin are missing the envvars.

It looks like we are a couple revisions behind, I'll update gocd and git-path, and let you know what I find.

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

No branches or pull requests

2 participants