-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
PR environment variables not available during build process #105
Comments
Hi I have the same problem. I get exactly the same output as @volodymyr-mykhailyk.
Is there additional configuration to be performe, before it is possible to get these informations? |
Do you all see any information on the plugin logs? My best guess is that Apart from the logs, please also share the GoCD version and the plugin version you're using. |
Where should I put the ~/.github?? @ashwanthkumar this is my GoCD version: 17.5.0 |
@Hyjaz |
It's working for me, it was because I had added username and password on the material on gocd as well. |
I am facing the same issue. Any help is really appreciated: Following are the details:
Available variables:
There are no errors in the plugin logs. The only error in the server logs is the below that is safe to be ignored as per the below post The gocd server has .github file present in the home folder of the go user with the content as below:
|
@mukeshmurali Just saw this message. On the |
Hello, bumping this issue a bit, because my take on this is that, maybe, in our setup with other plugin - "GitHub OAuth authorization plugin" it simply doesn't work. :-/ |
@gnikitenko I would like you to verify the following check-list and make sure you've done all of the below.
|
@gnikitenko If you've answered |
Oh, wow, after i asked our administator about the home folder, he pointed out to me, that GOCD adds his own prefixes to automatically generated EVs, so i had them all along, just by "slightly" longer names. And i was expecting names, just like in the manual, so that's my fault. So:
|
Thanks @gnikitenko. Closing the issue. |
@ashwanthkumar Is it required that the pipeline definition have username / password mentioned? If someone is depending on creating pipeline through code (via yaml definition), it would require one to check-in the username/password/token to the codebase. |
@thejasbabu No you don't need username / password in the definition. Check out the checklist on #105 (comment), if you answer yes to the first 2 boxes you don't need to check-in username / password in the YAML spec. |
Hello,
maybe it is a configuration issue, but I don't see any environment variables mentioned in description during build process.
The only item I can see is special is that:
Here is piece of yaml configuration:
Here is list of environment variables set by GOCD during build process:
Any hints why we don't see target branch environment variables?
Thanks in advance
The text was updated successfully, but these errors were encountered: