-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: Allow to set environment variable within shell resources #754
Conversation
Signed-off-by: Olblak <me@olblak.com>
Manifest example
|
And the script example
|
Signed-off-by: Olblak <me@olblak.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Most of my comments are style nits so feel free to ignore them ^^.
Let me know this this helps or not!
Thanks, I am always open for some learning :) |
Co-authored-by: Julien Levesy <jlevesy@gmail.com>
Co-authored-by: Julien Levesy <jlevesy@gmail.com>
Co-authored-by: Julien Levesy <jlevesy@gmail.com>
Co-authored-by: Julien Levesy <jlevesy@gmail.com>
Signed-off-by: Olblak <me@olblak.com>
I now realize that I didn't address a weird behavior:
@dduportal Do you have any opinions on which behavior should be the default for all stages |
I can't remember why I differentiate these behaviors. I fear that I might have been lazy for the target. Is it ok to keep the behavior that you introduced in this PR also for target (which adding the |
Looks good! WDYT to use the same configuration behavior as Docker?
Also, I wonder if the attribute ? |
I guess you mean the source/condition :D I agree it doesn't make sense to us the
TBH I hesitated implementing the |
Signed-off-by: Olblak <me@olblak.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit only :)
TBH I hesitated implementing the inherit key, and I agree with you it doesn't really add value, so I am gonna remove it
🎉
Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Co-authored-by: Hervé Le Meur <91831478+lemeurherve@users.noreply.github.com>
Rename ToStringArray to ToStringSlice Update validate function to update Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
After the final evaluation, I would like to trigger a new release, as this PR is blocking several of my pipelines |
Signed-off-by: Olblak <me@olblak.com>
Thanks everybody for the constructive reviews |
oh damn, could really use a release of this 😅 Thought this was just supported. This is massively messing with variables in pwsh cannot even access |
Workaround :( jenkinsci/bom@ |
@jetersen FTR, it's now available in the v0.28.0 release |
Thanks for reminding me that I need to setup releases watch on this repo. |
Signed-off-by: Olblak me@olblak.com
Allow to set environment variable within shell resources
Fix #749
Because target shell resources, set the environment variable
DRY_RUN
, all other environment variable are hidden with the shell script.Note that by default all environment variables are available for source and condition shell resource.
This affects multiple project relying on Github Action that update the PATH env variable with cached tool
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
Potential improvement