Skip to content

Added aditional params option#98

Open
ghost wants to merge 25 commits into
masterfrom
unknown repository
Open

Added aditional params option#98
ghost wants to merge 25 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 7, 2021

Copy link
Copy Markdown

I have noticed the lack of ability to send additional environment variables, and so I added an ability to pass a HashMap<String,String> of additional params

@ghost ghost changed the title added aditional params option WIP: added aditional params option Feb 7, 2021

@jakub-bochenski jakub-bochenski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, can you please remove the unnecessary formatting changes to make review easier?

@ghost

ghost commented Feb 8, 2021 via email

Copy link
Copy Markdown
Author

@ghost ghost changed the title WIP: added aditional params option Added aditional params option Feb 9, 2021
@ghost

ghost commented Feb 11, 2021

Copy link
Copy Markdown
Author

Thanks for the PR, can you please remove the unnecessary formatting changes to make review easier?

Yes I fixed it

@ghost ghost requested a review from jakub-bochenski February 11, 2021 13:50
@jakub-bochenski

Copy link
Copy Markdown

sorry for the delay, I will try to review this by EOW

Comment thread src/main/java/jenkins/plugins/logstash/persistence/BuildData.java Outdated
Comment thread src/test/java/jenkins/plugins/logstash/LogstashWriterTest.java Outdated
Comment thread src/test/java/jenkins/plugins/logstash/PipelineTest.java Outdated
this(build, currentTime, listener, null);
}
// Freestyle project build
public BuildData(AbstractBuild<?, ?> build, Date currentTime, TaskListener listener, Map<String, String> additionalParams) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems there is no way to use this additional params in freestile builds, right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any stapler bindings updated, how would it be configured?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now it won't be implemented in freestyle builds

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, can you please remove those extra constructors?
Otherwise LGTM

@jakub-bochenski jakub-bochenski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add documentation/example to readme on how to use thix

Comment thread src/test/java/jenkins/plugins/logstash/PipelineTest.java
@ghost ghost requested a review from jakub-bochenski February 21, 2021 13:20
Comment thread src/main/java/jenkins/plugins/logstash/persistence/BuildData.java Outdated
Comment thread src/main/java/jenkins/plugins/logstash/pipeline/LogstashSendStep.java Outdated
@jakub-bochenski

Copy link
Copy Markdown

@zivOrLive do you intend to finish work on this.

Do you need help?

@ghost

ghost commented Mar 22, 2021

Copy link
Copy Markdown
Author

@zivOrLive do you intend to finish work on this.

Do you need help?

Im not sure how to adjust it so you could use it in freestyle builds, if you could direct me it would be of much help (Im pretty new to jenkins)

@jakub-bochenski

Copy link
Copy Markdown

It's OK, it can be a Pipeline only feature at first.
I just needs some short update to the documentation with example use in pipeline (and a notice that it doesn't work in Freestyle)

@ghost ghost requested a review from jakub-bochenski March 22, 2021 14:26
Comment thread src/main/java/jenkins/plugins/logstash/persistence/BuildData.java Outdated

@jakub-bochenski jakub-bochenski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please apply those 2 more corrections, otherwise LGTM

@jakub-bochenski

Copy link
Copy Markdown

@mwinter69 please take a look if you have time/feel like it :)

@ghost ghost requested a review from jakub-bochenski April 6, 2021 05:36
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.

1 participant