Add support for Jenkins Pipeline jobs#12
Conversation
|
Fixes gatling/gatling#3018 |
9797799 to
77165fd
Compare
| </j:forEach> | ||
| </ul> | ||
| </t:summary> | ||
| </j:jelly> No newline at end of file |
|
Awesome Chris, thanks a lot! We'll give it a try asap and release a new version. |
|
Pushed up a commit with the proposed whitespace fixes. @slandelle I didn't really find any comprehensive docs on migration; it was kind of a combination of asking questions in IRC and on the mailing list, looking at the source code of other plugins and of Jenkins itself, and just trying things out until I understood it. The closest thing to docs that I found was this: https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md That actually has most of the information, it's just written in a way that is pretty hard to understand until you get into the code. This also has some useful information: https://github.com/jenkinsci/workflow-step-api-plugin I was planning on writing some kind of blog post / tutorial about the upgrade experience to share with Jenkins and hopefully make things easier for the next person :) That's why I broke it into so many commits. |
|
@cprice404 Could you please squash your commits into a single one? |
This commit refactors the plugin to use more modern Jenkins APIs,
so that it is compatible with the new "Pipeline" jobs.
This means that you can include a line like this in your Jenkins Pipeline
script:
gatlingArchive()
And the effect will be the same as if you'd added the Gatling post-build
action to your freestyle job; that is, you'll see the Gatling link appear
in the sidebar of both the Project and Build pages, the reports will be
available, the graphs will be visible, etc.
f686a84 to
6507e68
Compare
|
squashed. |
|
Awesome work, thanks! |
|
Does not make sense to both make |
|
@jglick is it harmful to support both? e.g. you can trigger the 'archive' functionality either way (though I recgonize that the code paths are slightly different). |

With these commits, the plugin can now be used from Jenkins Pipeline jobs, by adding a line like this to your pipeline build script: