Conversation
Yaaaay - looking forward to utilizing this a bunch. |
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
Oh, ok, it's not master, it's your feature branch, is there any reason to use an origin branch in this case instead of a fork? |
BTW every commit in this PR is spamming the JIRA issue with comments. |
} else if (type instanceof DescribableHelper.HeterogeneousObjectType) { | ||
pw.println("<p><strong>Nested choice of objects</strong></p><ul>"); | ||
for (Map.Entry<String,DescribableHelper.Schema> entry : ((DescribableHelper.HeterogeneousObjectType) type).getTypes().entrySet()) { | ||
pw.println("<li><code>$class: '" + entry.getKey() + "'</code></li>"); |
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.
DescribableHelper.CLAZZ
instead of $class
?
Prototype site generation looks like a great start - obviously lots of tweaks to the presentation needed, and we need to add GDSL/DSLD generation, but that all can come after the guts here go in. Can't speak to the code specifically, but the output seems to do all we need it to do. |
I'm 🐝 on this - it may not be perfect yet, but it's far enough that it can be built on for more. |
Yes—@abayer said he might want to work on it directly. But if he agrees with the contents so far, it could just be merged.
I know, this is a bug in the JIRA link daemon, that it does not pay attention to branch. Feel free to fix it. |
fwiw, a copy of the initial HTML output is up at https://rawgit.com/abayer/10ad3f9e9fd57bf9b1a5/raw/35adaabd9b2e0f2d6eec9e45c5c15912ddd2bf6d/workflow-reference.html |
…iews of GlobalVariable cannot currently be rendered.
@jglick - curious - do you remember where the JIRA link daemon source is? |
No, ask on #infra. |
@abayer separate org in GH jenkins-infra |
…n there happened to be no implementations loaded.
I was going to ask that :) If you point me to that repo I'll fix it. About the HTML format, I would suggest a little change: move the
I know this clean up work will be done later in sepatate PRs, but I'm sure I'll forget to send this comment later, so here it is 😄 |
Oh, there are many changes that should be made. The current output is just a proof of concept to validate that the relevant data is included. |
So starting some work on gdsl generation and there is one thing we're not reporting for steps, so far as I can tell - return type. It's generally void, but there are some cases ( |
Sorry, this information is not available by reflection. Anyway several steps return different types depending on the options you selected. I think all we can do is display the I somehow lucked out and got a clean build, so seeking rebees (or whatever you think appropriate) from @abayer / @amuniz. With this in |
🐝 it is. |
Ah, I see that @rsandell's script does that via Groovy magic and guesswork - https://github.com/abayer/workflow-experiments/blob/master/workflow-gdsl.groovy#L125 |
@jglick Is there a way to tell whether the step has a return value at all vs a void one? If I can't even tell that, either all steps are going to have to go in the GDSL as return type void or as return type Object... |
🐝 |
Only works for steps which happen to use
No. All you can do is treat them as returning If information about the return value is critical, then we will need a new API in Also note that many block-scoped steps—but not all—return any value returned by (some invocation of) their block. So the logical type is something like <T> T theStep(String someParameter, Closure<T> body) |
Ok, for now, I'll just go with |
JENKINS-26126
@reviewbybees esp. @abayer