[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Victor Martinez commented on JENKINS-54322 Re: Add ability SKIP stage in script pipeline PR: https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/346 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194973.1540842384000.6938.1564761000415%40Atlassian.JIRA.
[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Victor Martinez assigned an issue to Victor Martinez Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Change By: Victor Martinez Assignee: Victor Martinez 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194973.1540842384000.6922.1564760941432%40Atlassian.JIRA.
[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Victor Martinez started work on JENKINS-54322 Change By: Victor Martinez Status: Open In Progress 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194973.1540842384000.6929.1564760941589%40Atlassian.JIRA.
[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Victor Martinez updated JENKINS-54322 Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Change By: Victor Martinez Status: In Progress Review 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.194973.1540842384000.6931.1564760941633%40Atlassian.JIRA.
[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Gabriel Loewen commented on JENKINS-54322 Re: Add ability SKIP stage in script pipeline It would be great to have this feature, or at least whitelist markStageSkippedForConditional so that the method is allowed in groovy sandbox. I am trying to bring my codebase into compliance with groovy script security, but I am finding it incredibly difficult as there are features that I need to support in scripted pipeline that are only supported securely in declarative pipelines, such as markStageSkippedForConditional. 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-54322) Add ability SKIP stage in script pipeline
Title: Message Title S. Panchenko edited a comment on JENKINS-54322 Re: Add ability SKIP stage in script pipeline I do agree with this proposal. In addition to, there is another reason. This should prevent against the error: {quote} "Scripts not permitted to use staticMethod org.jenkinsci.plugins.pipeline.modeldefinition.Utils markStageSkippedForConditional java.lang.String. Administrators can decide whether to approve or reject this signature. {quote} For another, this may duplicate JENKINS-37781 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-54322) Add ability SKIP stage in script pipeline
Title: Message Title S. Panchenko commented on JENKINS-54322 Re: Add ability SKIP stage in script pipeline I do agree with this proposal. In addition to, there is another reason. This should prevent against the error: "Scripts not permitted to use staticMethod org.jenkinsci.plugins.pipeline.modeldefinition.Utils markStageSkippedForConditional java.lang.String. Administrators can decide whether to approve or reject this signature. 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-54322) Add ability SKIP stage in script pipeline
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Change By: Andrew Bayer Component/s: pipeline-stage-step-plugin Component/s: pipeline 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-54322) Add ability SKIP stage in script pipeline
Title: Message Title Alexandr Semak updated an issue Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Change By: Alexandr Semak Labels: Script jekins pipleine jenkins pipeline 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-54322) Add ability SKIP stage in script pipeline
Title: Message Title Alexandr Semak updated an issue Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Change By: Alexandr Semak I try to improve visualization for pipeline.I want skip stage and mark skip stage as skip.But using Skripted Pipeline i must approve signature. {code:java}staticMethod org.jenkinsci.plugins.pipeline.modeldefinition.Utils markStageSkippedForConditional java.lang.String{code} Using it: {code:java}import org.jenkinsci.plugins.pipeline.modeldefinition.Utilsmap_dev = ["dev", "qa", "stage" ,"perf"]prodPromoter = nullmap_dev.each { stage("${it}") { try{ prodPromoter = input(message: "Deploy ${it}") } catch(e){ Utils.markStageSkippedForConditional("${it}") } }}{code} I now that i can using Declarative Pipeline like this: {code:java}when { _expression_ { try {devPromoter = input(message: "Deploy") } catch(e) { return false } } } steps { }{code} BUT, can Could you please just add Utils.markStageSkippedForConditional to @whitelist ?Because Scripted pipleine more readable and flexible for me... Thank you for advance! 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
[JIRA] (JENKINS-54322) Add ability SKIP stage in script pipeline
Title: Message Title Alexandr Semak created an issue Jenkins / JENKINS-54322 Add ability SKIP stage in script pipeline Issue Type: Improvement Assignee: Unassigned Components: pipeline Created: 2018-10-29 19:46 Environment: Jenkins ver. 2.138.2 Labels: jekins Script pipleine Priority: Major Reporter: Alexandr Semak I try to improve visualization for pipeline. I want skip stage and mark skip stage as skip. But using Skripted Pipeline i must approve signature. staticMethod org.jenkinsci.plugins.pipeline.modeldefinition.Utils markStageSkippedForConditional java.lang.String Using it: import org.jenkinsci.plugins.pipeline.modeldefinition.Utils map_dev = ["dev", "qa", "stage" ,"perf"] prodPromoter = null map_dev.each { stage("${it}") { try{ prodPromoter = input(message: "Deploy ${it}") } catch(e){ Utils.markStageSkippedForConditional("${it}") } } } I now that i can using Declarative Pipeline like this: