[JIRA] (JENKINS-50418) when {branch} stage conditional regression

2019-10-22 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman closed an issue as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Bulk closing resolved issues.   
 

  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Change By: 
 Liam Newman  
 
 
Status: 
 Resolved Closed  
 

  
 
 
 
 

 
 
 

 
 
 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.189473.1522119615000.17553.1571801067158%40Atlassian.JIRA.


[JIRA] (JENKINS-50418) when {branch} stage conditional regression

2018-04-03 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer resolved as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-27 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer commented on  JENKINS-50418  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: when {branch} stage conditional regression   
 

  
 
 
 
 

 
 Probably environment name: "GIT_BRANCH", value: "origin/master" as you tried out above - there's no consistent env var for the branch across all SCMs except in the context of a multibranch Pipeline, so you do need check that Git-specific one.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-27 Thread ericdnel...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Eric Nelson commented on  JENKINS-50418  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: when {branch} stage conditional regression   
 

  
 
 
 
 

 
 This one is a stand alone pipeline job. Which explains why when I checked BRANCH_NAME it also did nothing.  Is there a recommendation for branch checking in stand alone pipeline jobs?   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-27 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer commented on  JENKINS-50418  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: when {branch} stage conditional regression   
 

  
 
 
 
 

 
 The branch conditional is checking against the more generalized BRANCH_NAME environment variable, which is only set for multibranch Pipelines. Is this on a multibranch Pipeline or just a standalone Pipeline job?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-27 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer assigned an issue to Andrew Bayer  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Assignee: 
 Andrew Bayer  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-27 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Component/s: 
 pipeline-model-definition-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-50418) when {branch} stage conditional regression

2018-03-26 Thread ericdnel...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Eric Nelson updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Change By: 
 Eric Nelson  
 

  
 
 
 
 

 
 The when branch conditional seems to still be broken. Similar to  -  JENKINS-41012 - . In this case we are using GitHub with webhooks to trigger a build.  Following the good test code in 41012 I tested with the following. Results - I get echo _expression_ and echo env, but branch is always skipped. Test pipeline code stage is:{code:java}stages {stage('test condition: _expression_') {when {_expression_ {return env.GIT_BRANCH == "origin/master"}}steps {sh 'echo "_expression_"'}}stage('test when: env') {when {environment name: "GIT_BRANCH", value: "origin/master"}steps {sh 'echo "env"'}}stage('test when: branch') {when {branch " origin/ master"}steps {sh 'echo "branch"'}}}{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from 

[JIRA] (JENKINS-50418) when {branch} stage conditional regression

2018-03-26 Thread ericdnel...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Eric Nelson created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50418  
 
 
  when {branch} stage conditional regression   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2018-03-27 03:00  
 
 
Environment: 
 Jenkins 2.112  Pipeline: API 2.26  Pipeline: Model API 1.2.7  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Eric Nelson  
 

  
 
 
 
 

 
 The when branch conditional seems to still be broken. Similar to JENKINS-41012. In this case we are using GitHub with webhooks to trigger a build.  Following the good test code in 41012 I tested with the following.  Results - I get echo _expression_ and echo env, but branch is always skipped.  Test pipeline code stage is: 

 

stages {
stage('test condition: _expression_') {
when {
_expression_ {
return env.GIT_BRANCH == "origin/master"
}
}
steps {
sh 'echo "_expression_"'
}
}

stage('test when: env') {
when {
environment name: "GIT_BRANCH", value: "origin/master"
}
steps {
sh 'echo "env"'
}
}

stage('test when: branch') {
when {
branch "master"
}
steps {
sh 'echo "branch"'
}
}
}