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

[JENKINS-62014] Add retainEnv step to filter environment #115

Closed
wants to merge 1 commit into from

Conversation

daniel-beck
Copy link
Member

Co-authored-by: Wadeck Follonier [email protected]


JENKINS-62014.

Not quite the same as jenkinsci/jenkins#4683 since this filters only what is provided from Jenkins; would probably need to patch the specific workflow-durable-task-step's to drop the system provided environment.

I plan to still update the UI a bit, perhaps make it more similar to core's (one-line text field with whitespace separated values rather than multi-line text field with newline separated values), TBD. The basics should be done. I may force-push over this.

@daniel-beck
Copy link
Member Author

[2020-05-13T13:57:15.151Z] [INFO] --- spotbugs-maven-plugin:3.1.12.2:spotbugs (spotbugs) @ workflow-basic-steps ---
[2020-05-13T13:57:33.299Z] [INFO] Fork Value is true
[2020-05-13T13:57:36.573Z]      [java] [thread 9320 also had an error]
[2020-05-13T13:57:36.573Z]      [java] [thread 14568 also had an error]
[2020-05-13T13:57:36.573Z]      [java] [error occurred during error reporting (null), id 0xc0000005]
[2020-05-13T13:57:36.573Z]      [java] #
[2020-05-13T13:57:36.573Z]      [java] # There is insufficient memory for the Java Runtime Environment to continue.
[2020-05-13T13:57:36.573Z]      [java] # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate
[2020-05-13T13:57:36.573Z]      [java] # An error report file with more information is saved as:
[2020-05-13T13:57:36.573Z]      [java] # C:\Users\jenkins\Work\workspace\rkflow-basic-steps-plugin_PR-115\hs_err_pid17808.log
[2020-05-13T13:57:36.573Z]      [java] [error occurred during error reporting , id 0xe0000001]

😭

@dwnusbaum
Copy link
Member

@daniel-beck Any thoughts on putting the new step into https://github.com/jenkinsci/generic-environment-filters-plugin instead since it seems like this is another user-facing feature related to JENKINS-62014? In general, I would prefer to avoid adding new steps to this plugin.

@daniel-beck
Copy link
Member Author

@dwnusbaum Sure, I can do that, or a new plugin for this step 👍

@dwnusbaum
Copy link
Member

@daniel-beck Ok, FWIW, I am not completely against adding it here if you think this is the best place for it, it just seemed like it might be nice to have all of the related features in the same plugin.

@jglick
Copy link
Member

jglick commented Nov 5, 2020

@jglick
Copy link
Member

jglick commented Nov 5, 2020

@daniel-beck daniel-beck deleted the retainEnv branch November 5, 2020 14:26
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

Successfully merging this pull request may close these issues.

3 participants