Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for pipeline #1
Conversation
…nning a buildstep of rtp it just prints out all configuration as a test
…site not on pipeline site (todo)
…eanup
…nd updating rtp pipeline test
…oxed and then immediately reboxed"
rodrigc
commented
Feb 15, 2017
|
Good stuff! I downloaded your branch and installed on my system which is Jenkins 2.46 with all the latest plugins. I tried to use the Pipeline Snippet Generator to show the pipeline commands. However the snippet generator only showed:
|
|
I've got Jenkins 2.32.2 and everything works fine, but I know that when you use the snippet generator and select "step: General Build Step" and then select "Publish rich text message" the generator will show |
rodrigc
commented
Feb 16, 2017
|
Yes, you are absolutely correct.
I don't know what the convention is for implementing pipeline build steps, but |
|
Actually I just checked the code and also found this tutorial. So when you follow the tutorial the "General Build Step" should also work for rtp. I changed some code arround and will test if it will work now. |
|
So I did a little bit of research and it seems that in "DescriptorImpl" of "RichTextPublisher" in function "FormValidation" |
…ed as a "General Build Step"
|
@rodrigc I fixed the snippet generator problem with this commit. Now you have the option to use rtp directly as a step or as a metastep ("General Build Step"), but I would always prefer to use it directly. |
| if (!useLastStable) { | ||
| return getRichTextFromActions(project.getActions(AbstractRichTextAction.class)); | ||
| } else { | ||
| for (AbstractBuild<?, ?> abstractBuild : project.getBuilds()) { | ||
| for (Run<?, ?> build : project.getBuilds()) { |
This comment has been minimized.
This comment has been minimized.
|
|
||
| Result res = abstractBuild.getResult(); | ||
| Result res = build.getResult(); | ||
| if(res == null) { | ||
| throw new IllegalStateException("abstractBuild.getResult() is null!"); |
This comment has been minimized.
This comment has been minimized.
|
@masterhard I committed your suggested changes. Let me know if there is anything else that needs to be changed. I also set the regarding issues in jira to "in review". |
|
@masterhard Just out of curiosity when will you merge this PR ? |
lechen26
commented
Mar 13, 2017
•
|
when this will be added to the pipeline? |
glib-briia
commented
Apr 21, 2017
•
|
Hi, Anyone got any ideas when is it going to be released? |
|
I'm on it. Waiting for jenkins-infra/repository-permissions-updater#291 approval now. |
|
Done |
This comment has been minimized.
This comment has been minimized.
renfeng
commented on pom.xml in be8a7de
Nov 15, 2018
|
Not obvious why it requires pipeline. What if someone don't want pipeline? |
enwi commentedFeb 7, 2017
•
edited
This pull-request fixes the folowing issues