-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Add Jira Issue update step to pipeline #101
base: master
Are you sure you want to change the base?
Add Jira Issue update step to pipeline #101
Conversation
Looks good to me as a code. |
I don't know how builder will look in pipeline, but I think that notation like:
is really easier for use. Could you provide an example with JiraIssueUpdateBuilder? |
Add new pipeline steps. One for updating issue field and one for strict workflow process, cause issue updater set build only Unstable, but not Failure. |
/** | ||
* Created by aleksandr on 04.07.16. | ||
*/ | ||
public class IssueFieldUpdateStepTest { |
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.
Please add class description
I'll take a look at this tomorrow because it looks like some of the code is duplicated from the original |
import com.atlassian.jira.rest.client.api.domain.input.IssueInputBuilder; | ||
import com.atlassian.jira.rest.client.api.domain.input.TransitionInput; | ||
import com.atlassian.jira.rest.client.api.domain.input.VersionInput; | ||
import com.atlassian.jira.rest.client.api.domain.input.*; |
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.
can you please replace wildcard imports?
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.
I'm assuming this is an automatic IDE feature (in IDEA) replacement, that when > 5 imports, wildcards are automatically incurred. Personally this is still debatable for me:
http://stackoverflow.com/questions/147454/why-is-using-a-wild-card-with-a-java-import-statement-bad
Any good reason in Jenkins case about not using wildcard imports that we should maybe put in the README guidelines?
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.
i just looked through few random classes in jenkins core repo and can't see wildcard imports used. it would be better to add checkstyle plugin to build rather than put it in README
Please finish work on this so it can be merged, it would enable pipelines for our organization. This is the missing step. |
@eskobaba what about #101 (comment)? did you try this one? |
I need pipeline compatibility to post a value to a customfield |
d9721e7
to
0edb38f
Compare
This argument is quite convincing for me, but this PR needs a rebase. |
@aatarasoff are you still using this construct? if so, could you rebase it to the current version? |
Similar as JiraIssueUpdateBuilder, but for pipeline
This change is