Unconditionally gathering the JUnit results was actually simple: just add a post block each test stage, see the Jenkinsfile here <https://github.com/yonadev/yona-server/blob/master/Jenkinsfile>.
The input is a little harder. I know how to do it through a script, but I'd like to stay in the declarative model. See my follow on question here <https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/jenkinsci-users/t58kWb3RGvg> . Regards, Bert On Wednesday, March 1, 2017 at 10:34:44 AM UTC+1, Bert wrote: > > Thanks! > The input I figured out. Gathering the JUnit results (unconditionally) > before asking for user input is where I'm stuck at. > > Regards, > Bert > > On Wednesday, March 1, 2017 at 10:20:44 AM UTC+1, Baptiste Mathus wrote: >> >> For user input, you should be able to use the "input" step. >> >> For real world public usage of Declarative, there's mainly one I've heard >> of (Declarative reached 1.0 less than one month ago), I've seen a tweet for >> a mozilla project but can't find it again. >> >> 2017-03-01 8:08 GMT+01:00 Bert <[email protected]>: >> >>> Hello everyone, >>> >>> We recently switched to the declarative pipeline approach. The current >>> pipeline >>> <https://github.com/yonadev/yona-server/blob/master/Jenkinsfile> is >>> very simple: >>> >>> 1. Build >>> 2. Setup test server >>> 3. Run integration tests >>> 4. Post: Gather test results >>> >>> No I would like to add a user input to decide whether to take it to the >>> next stage: deploy it to acceptance test. The user providing that input >>> should be able to check the test results of that job, so the junit step >>> needs to move out of the post block, but it needs to remain >>> unconditional/always. >>> >>> How do I do that? >>> Related: are you aware of serious public deployment pipelines (using the >>> declarative syntax) with multiple deployment stages and user inputs? >>> >>> Thanks in advance, >>> Bert >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/cd0d4cd6-df50-4e41-a0ce-8ab41786d53c%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/cd0d4cd6-df50-4e41-a0ce-8ab41786d53c%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e3e3facf-31af-4206-9b5c-7ad226378e9f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
