[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Karl Wirth assigned an issue to Unassigned Jenkins / JENKINS-58164 how to use when branch keyword Change By: Karl Wirth Assignee: Karl Wirth 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.200215.156138344.13248.1561995360498%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Karl Wirth resolved as Fixed Seems to work. Jenkins / JENKINS-58164 how to use when branch keyword Change By: Karl Wirth Status: Open Resolved Resolution: Fixed 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.200215.156138344.7474.1561389540552%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Karl Wirth assigned an issue to Karl Wirth Jenkins / JENKINS-58164 how to use when branch keyword Change By: Karl Wirth Assignee: Karl Wirth 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.200215.156138344.7472.1561389540524%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Karl Wirth commented on JENKINS-58164 Re: how to use when branch keyword Hello Hokwang Lee, I have just tested and this seems to work with a multibranch pipeline. In the following only the branch 'main' exists: pipeline { agent any stages { stage('Checkout') { when { branch 'BRANCH_DOES_NOT_EXIST' } steps { echo 'Don't show this...' } } stage('Build') { when { branch 'main' } steps { echo 'Building...' } } stage('Test') { steps { echo 'Testing...' } } } } The relevant output I get in the console log is: [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Checkout) Stage "Checkout" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] echo Building... [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] echo Testing... [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Note that the stage 'Checkout' is successfully skipped when I run this against 'main' because it is not 'BRANCH_DOES_NOT_EXIST'. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You
[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Hokwang Lee updated an issue Jenkins / JENKINS-58164 how to use when branch keyword Change By: Hokwang Lee Hi, Is there a p4 way for below ? Please refer to [https://jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/]There's _expression_ like {code:java} ``` stage('a') { when { branch 'dev' } steps { } } {code} ``` How can I use for this in p4? 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.200215.156138344.7332.1561383540060%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58164) how to use when branch keyword
Title: Message Title Hokwang Lee created an issue Jenkins / JENKINS-58164 how to use when branch keyword Issue Type: Improvement Assignee: Unassigned Components: p4-plugin Created: 2019-06-24 13:37 Priority: Critical Reporter: Hokwang Lee Hi, Is there a p4 way for below ? Please refer to https://jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/ There's _expression_ like ``` stage('a') { when { branch 'dev' } steps { } ``` How can I use for this in p4? Add Comment