[JIRA] (JENKINS-43820) Stage name must be a string literal

2020-03-19 Thread luke.lussen...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luke Lussenden commented on  JENKINS-43820  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Stage name must be a string literal   
 

  
 
 
 
 

 
 I would also appreciate support for constants. My use-case involves shared library code which makes post action decisions based on the failed stage name. Re-defining the stage name in multiple places is brittle and someone could easily decide to change the display name causing code to silently fail when the stage name doesn't match what it's looking for.  Using a constant would help this problem.   Support for: 

 

static final String BUILD = "Build Stage" 

  For stage names would be most appreciated.    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-55587) Env variables not available in pipeline options sections, outside of stages

2020-03-06 Thread luke.lussen...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luke Lussenden edited a comment on  JENKINS-55587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Env variables not available in pipeline options sections, outside of stages   
 

  
 
 
 
 

 
 I use the options style lock to wrap a few stages in a large pipeline and I have the same problem.  Even though the lock is deep within the pipeline, it seems the options are per-computed before the run and the ENV variables are not yet injected.   For my use case - I would really like to use the `GIT_URL` provided by the multibranch pipeline project as the source of my lock.  I don't mind multiple branches building at once, but there is a section they can't be in at the same time if they are on the same repo. ``` {code: groovy } stages { stage('do stuff 1'){} stage('do stuff 2'){} stage('locked set'){    stages {    options  \ { lock(resource: "${GIT_URL}") }    stage('first action set') \ { }        stage('second action set') \ { }        }    }    stage('do final stuff'){}} {code}   ``` If you have a parameterized build - I believe parameters are available to the options blocks - but not environment variables.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-55587) Env variables not available in pipeline options sections, outside of stages

2020-03-06 Thread luke.lussen...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Luke Lussenden commented on  JENKINS-55587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Env variables not available in pipeline options sections, outside of stages   
 

  
 
 
 
 

 
 I use the options style lock to wrap a few stages in a large pipeline and I have the same problem.  Even though the lock is deep within the pipeline, it seems the options are per-computed before the run and the ENV variables are not yet injected.   For my use case - I would really like to use the `GIT_URL` provided by the multibranch pipeline project as the source of my lock.  I don't mind multiple branches building at once, but there is a section they can't be in at the same time if they are on the same repo. ```groovy stages {  stage('do stuff 1'){}  stage('do stuff 2'){}  stage('locked set'){     stages {     options { lock(resource: "${GIT_URL}") }     stage('first action set'){ }         stage('second action set'){ }         }     }     stage('do final stuff'){} } ``` If you have a parameterized build - I believe parameters are available to the options blocks - but not environment variables.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





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