[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Mahima Mishra edited a comment on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I am also stuck in the same situation, where I need to use scripted parallel block within declarative and the blueocean view is doesn't display the stages for scripted block correctly.!Screenshot from 2019-11-01 13-05-19.png |thumbnail ! Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196562.154689880.6855.1572613740408%40Atlassian.JIRA.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Mahima Mishra commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I am also stuck in the same situation, where I need to use scripted parallel block within declarative and the blueocean view is doesn't display the stages for scripted block correctly. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196562.154689880.6836.1572613683857%40Atlassian.JIRA.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Mahima Mishra updated an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: Mahima Mishra Attachment: Screenshot from 2019-11-01 13-05-19.png Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196562.154689880.6834.1572613683463%40Atlassian.JIRA.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Mahima Mishra updated an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: Mahima Mishra Attachment: Screenshot from 2019-11-01 13-05-19.png Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.196562.154689880.6798.1572613620621%40Atlassian.JIRA.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Adam Carroll commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax Thanks Jesse Glick and An Tran for digging into this more! I personally am not concerned whether or not this is a bug or improvement, as long as it is fixed . It does sound a lot like a bug to me, but I do understand the argument for it being an improvement. Whatever the best path to resolution is will be fine with me. Based on the tickets An Tran linked above, it looks like others desire this functionality as well. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I found some tickets that maybe related: https://issues.jenkins-ci.org/browse/JENKINS-53751 https://issues.jenkins-ci.org/browse/JENKINS-53162 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax Contra Olivier Lamy’s comment there I consider this a bug. Blue Ocean should pay attention to the build metadata as provided by official Pipeline APIs and may not make assumptions about the mechanism used to run a build, except insofar as that is intrinsically required for a certain feature. (For example, a stage restart button should only appear next to a Declarative stage, because the feature of restarting a stage is tied to Declarative semantics.) Regardless of how the issue is classified, the question of whether it will be fixed or not depends entirely on the development team’s time and priorities. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax Jesse Glick From what I see in last comment int this ticket here https://issues.jenkins-ci.org/browse/JENKINS-53048?focusedCommentId=351304=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-351304 , Adam Carroll really wants to have an improvement instead of a bug report because the UI really on supports only declarative syntax of parallel command. If there is a bug, I would open a new one and keep this as improvement. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: Jesse Glick Issue Type: Improvement Bug Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I do not know how Blue Ocean works in any detail. My comment was very much about the terminology. None of the examples given so far in this issue are using actual Scripted syntax—they all start with pipeline, which is Declarative syntax, and so all bets are off. At any rate, the closest Scripted analogue I can come up with for the original Declarative script would be parallel 'Build and Test Linux': { stage("Build (Linux)") { echo "Inside for loop 1" } stage("Test (Linux)") { echo "Inside for loop 2" } }, 'Build and Test Windows': { stage("Build (Windows)") { echo "Inside for loop 3" } stage("Test (Windows)") { echo "Inside for loop 4" } } which indeed also fails to display the stages—only the branches are shown. (Similarly when the whole script is enclosed in stage('Build and Test') {…}.)So I would consider that a bug in Blue Ocean: it should display a Pipeline build with a structure that its visualization layer supports, regardless of the syntax used to run that build. Perhaps there is some workaround that a B.O. developer could explain. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I did experiment a lot already before asking here Ok let's keep the terminology aside. Can you help me to understand why only one stage is shown in each parallel branch even though I habe 2 stages for each branch in my script? Is it a bug? Should I create a bug report for that? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I do not know, you would need to experiment. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax Jesse Glick Ok, so what is the correct way to do it? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax An Tran again that is not Scripted syntax. It is a script block inside Declarative syntax. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran edited a comment on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I can confirm that I have the same behaviour like that of the author. Only one stage of scripted pipeline in parallel branches is shown!Screenshot 2019-04-02 at 09.31.50.png!{code:java} pipeline { stages { stage('testing') { steps {script { parallel "task1": { node("ios") {stage("build") {echo "windows-build"}stage("deploy") {echo "windows-deploy"} } }, "task2": {node("ios") { stage("build") { echo "windows-build" } stage("deploy") { echo "windows-deploy" }} }} }} } } {code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran edited a comment on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I can confirm that I have the same behaviour like that of the author. Only one stage of scripted pipeline in parallel branches is shown!Screenshot 2019-04-02 at 09.31.50.png!{code:java}stage('testing') { steps {script { parallel "task1": { node("ios") {stage("build") {echo "windows-build"}stage("deploy") {echo "windows-deploy"} } }, "task2": {node("ios") { stage("build") { echo "windows-build" } stage("deploy") { echo "windows-deploy" }} }} }}{code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax I can confirm that I have the same behaviour like the author. Only one stage of scripted pipeline in parallel branches is shown stage('testing') { steps { script { parallel "task1": { node("ios") { stage("build") { echo "windows-build" } stage("deploy") { echo "windows-deploy" } } }, "task2": { node("ios") { stage("build") { echo "windows-build" } stage("deploy") { echo "windows-deploy" } } } } } } Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title An Tran updated an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: An Tran Attachment: Screenshot 2019-04-02 at 09.31.50.png Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Jesse Glick commented on JENKINS-55438 Re: Allow sequential stages inside parallel in Scripted syntax First of all, the second example is not Scripted syntax; it is pseudo-Declarative (pipeline) with a script block. Second, node is not a stage. Try using the actual stage step. If Blue Ocean in fact refuses to display a valid Scripted build with an identical structure of parallel / stage steps that is displayed when run from a Declarative build, then I would consider that a bug rather an RFE. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Andrew Bayer assigned an issue to Unassigned Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: Andrew Bayer Assignee: Andrew Bayer Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Change By: Andrew Bayer Component/s: blueocean-plugin Component/s: pipeline Component/s: pipeline-model-definition-plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-55438) Allow sequential stages inside parallel in Scripted syntax
Title: Message Title Adam Carroll created an issue Jenkins / JENKINS-55438 Allow sequential stages inside parallel in Scripted syntax Issue Type: Improvement Assignee: Andrew Bayer Attachments: exampleParallelSequential.PNG, exampleParallelSequentialIncorrect.PNG Components: pipeline, pipeline-model-definition-plugin Created: 2019-01-07 22:06 Labels: pipeline script scripted parallel sequential Priority: Minor Reporter: Adam Carroll Similar to JENKINS-46809, I would like the Blue Ocean GUI to properly visualize multiple stages in sequence that are all parallel of each other. Below is an example image of what this looks like using declarative syntax (working): Here is the declarative example code I wrote to generate the example image: pipeline { agent { label 'master' } stages { stage('Build and Test') { parallel { stage("Build and Test Linux") { stages { stage("Build (Linux)") { agent any steps { echo "Inside for loop 1" } } stage("Test (Linux)") { agent any steps { echo "Inside for loop 2" } } } } stage("Build and Test Windows") { stages { stage("Build (Windows)") { agent any steps { echo