[JIRA] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-20 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite commented on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 
As far as I know, the git plugin uses the variable expansion facilities provided by the Jenkins core. Since  

 
$GIT-RELEASE_BRANCH
 

 
is not expanded, I assume that is common throughout Jenkins. 
If you choose to submit a bug report to the git plugin on that variable expansion, I'll forward it to Jenkins core. If I were on the Jenkins core team (which I'm not), I would probably then close the bug report as intentionally not implemented. It is certainly your choice if you submit a bug report or not, but I don't intend to change the behavior of the git plugin in this area. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-19 Thread thomas.wab...@siemens.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Wabner commented on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 
First of all: many thanks for this dep analyze! 
I can confirm that it works, if I change the variable from  
GIT*-RELEASE_BRANCH to GIT_*RELEASE_BRANCH 
Beside: If have used a maven styled job ... but nevertheless ... in general variable substitution works in this way. I was not aware of, that in Jenkins it is required to name the variables in such style. 
If you think, also the variable  GIT-RELEASE_BRANCH 
should also expand, we can create another JIRA issue for this.  
I would expect, that every variable with common variable patterns inside ${} should be useable? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-19 Thread thomas.wab...@siemens.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Wabner edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 First of all: many thanks for this dep analyze!I can confirm that it works, if I change the variable from  {{GIT * - * RELEASE_BRANCH to  GIT*_*RELEASE_BRANCH  GIT_RELEASE_BRANCH }}     Beside: If have used a maven styled job ... but nevertheless ... in general variable substitution works in this way. I was not aware of, that in Jenkins it is required to name the variables in such style.If you think, also the variable  {{GIT-RELEASE_BRANCH}}should also expand, we can create another JIRA issue for this. I would expect, that *every* variable with common variable patterns inside ${} should be useable? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 A third test shows that if you name the variable GIT_RELEASE_BRANCH instead of GIT-RELEASE_BRANCH, the variable is evaluated as expected.  Steps I took to show the issue include:# Create a freestyle project using Git as SCM, with https://github.com/MarkEWaite/JENKINS-26197.git as the repository# Define branch to build as:{noformat}$GIT_RELEASE_BRANCH - or  -  ${GIT_RELEASE_BRANCH}{noformat}# Select "*Prepare an environment for the run*", and set "Properties Content" to be:{noformat}GIT_RELEASE_BRANCH=jenkins{noformat}# Define a post job build step with Jenkins text finder plugin and have it check the file README.md contains JENKINS-32435 as a string 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite commented on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 
A third test shows that if you name the variable GIT_RELEASE_BRANCH instead of GIT-RELEASE_BRANCH, the variable is evaluated as expected. Steps I took to show the issue include: 
 

Create a freestyle project using Git as SCM, with https://github.com/MarkEWaite/JENKINS-26197.git as the repository
 

Define branch to build as: 

 
$GIT_RELEASE_BRANCH - or ${GIT_RELEASE_BRANCH}
 


 

Select "Prepare an environment for the run", and set "Properties Content" to be: 

 
GIT_RELEASE_BRANCH=jenkins
 


 

Define a post job build step with Jenkins text finder plugin and have it check the file README.md contains JENKINS-32435 as a string
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





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

[JIRA] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite resolved as Not A Defect 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 

Status:
 
 Open Resolved 
 
 
 

Resolution:
 
 Not A Defect 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 A second (less trivial) test shows that the plugin is evaluating some environment variables injected by the EnvInject plugin.  Steps I took:# Install the EnvInject plugin and restart Jenkins# Create a freestyle project using Git as SCM, with https://github.com/MarkEWaite/JENKINS-26197.git as the repository# Define the branch to build as:{noformat}$BRANCH_TO_BUILD - or - ${BRANCH_TO_BUILD}{noformat}# Select "*Prepare an environment for the run*", leave defaults for all values there, and set "Properties Content" to be:{noformat}BRANCH_TO_BUILD=jenkins{noformat}# Define a post job build step with text finder and have it check the file README.md for the text JENKINS-32435I've attached a picture of the environment configuration I used.!BRANCH_TO_BUILD-property.png|thumbnail!I'll also attach the job configuration file that I used. I'm not sure how to use the scripting technique you described, especially since the EnvInject plugin help text for the script content panel says "*However, adding or overriding environment variables in the script doesn't have any impacts in the build job*". 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 A second (less trivial) test shows that the plugin is evaluating some environment variables injected by the EnvInject plugin.  Steps I took:# Install the EnvInject plugin and restart Jenkins# Create a freestyle project using Git as SCM, with https://github.com/MarkEWaite/JENKINS-26197.git as the repository# Define the branch to build as:{noformat}$BRANCH_TO_BUILD - or - ${BRANCH_TO_BUILD}{noformat}# Select "*Prepare an environment for the run*", leave defaults for all values there, and set "Properties Content" to be:{noformat}BRANCH_TO_BUILD=jenkins{noformat}# Define a post job build step with text finder and have it check the file README.md for the text JENKINS-32435I've attached a picture of the environment configuration I used.!BRANCH_TO_BUILD-property.png|thumbnail!I'll also attach the job configuration file that I used. I'm not sure how to use the scripting technique you described, especially since the EnvInject plugin help text for the script content panel says "*However, adding or overriding environment variables in the script doesn't have any impacts in the build job*". 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite commented on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 
As far as I can tell from a first trivial test, the plugin is evaluating some environment variables for the "Branches to build" argument. Steps I took: 
 

Create a freestyle project using Git as SCM, with git://github.com/jenkinsci/git-client-plugin.git as the repository
 

Define the branch to build as: 

 
$JENKINS_HOME
 


 

Run the job, confirm that the value of $JENKINS_HOME is inserted in the build log
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 As far as I can tell from a first trivial test, the plugin is evaluating some environment variables for the "Branches to build" argument.  Steps I took:# Create a freestyle project using Git as SCM, with git://github.com/jenkinsci/git-client-plugin.git as the repository# Define the branch to build as:{noformat}$JENKINS_HOME{noformat}# Run the job, confirm that the value of $JENKINS_HOME is inserted in the build logI also used the brace separated form of the variable and confirmed it was expanded in the build log.# Create a freestyle project using Git as SCM, with git://github.com/jenkinsci/git-client-plugin.git as the repository# Define the branch to build as:{noformat}xy${JENKINS_HOME}/zz/y{noformat}# Run the job, confirm that the value of  xy  $JENKINS_HOME /zz/y  is inserted in the build log 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 
 
 
 
 
 
 
 We try to use the "Branches to build" setting of the GIT plugin with variable substitution.That it should be possible and work is stated in the inline help for this parameter:{noformat}${ENV_VARIABLE}It is also possible to use environment variables. In this case the variables are evaluated and the result is used as described above.E.g. ${TREEISH}, refs/tags/${TAGNAME},...{noformat}We have setup our job with the flag "Prepare environment to run" and added following parameter as "Properties Content":{noformat}GIT-RELEASE_BRANCH=refs/heads/release/20160113{noformat}In the field of "Branches to build" we tried to use{noformat}${GIT-RELEASE_BRANCH}{noformat}We have also tried  {noformat}  ${ENV_GIT-RELEASE_BRANCH} .  {noformat}   We can see for a specific build that the parameter is available as "Environment Variable".The job log looks like this (where the parameter is not replaces by the content):{noformat} > D:\git\cmd\git.exe rev-parse "origin/${GIT-RELEASE_BRANCH}^{commit}" # timeout=10 > D:\git\cmd\git.exe rev-parse "${GIT-RELEASE_BRANCH}^{commit}" # timeout=10{noformat}We expect, that the variable is replaced by its content and used in the git command invocation. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 

[JIRA] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 
 
 
 
 
 
 
 We try to use the "Branches to build" setting of the GIT plugin with variable substitution.That it should be possible and work is stated in the inline help for this parameter: === { { noformat} ${ENV_VARIABLE}It is also possible to use environment variables. In this case the variables are evaluated and the result is used as described above.E.g. ${TREEISH}, refs/tags/${TAGNAME},... {noformat } }  ===   We have setup our job with the flag "Prepare environment to run" and added following parameter as "Properties Content": {noformat}  GIT-RELEASE_BRANCH=refs/heads/release/20160113 {noformat}   In the field of "Branches to build" we tried to use {noformat} ${GIT-RELEASE_BRANCH} {noformat}   We have also tried ${ENV_GIT-RELEASE_BRANCH}.We can see for a specific build that the parameter is available as "Environment Variable".The job log looks like this (where the parameter is not replaces by the content):{ { noformat}  > D:\git\cmd\git.exe rev-parse "origin/${GIT-RELEASE_BRANCH}^{commit}" # timeout=10 > D:\git\cmd\git.exe rev-parse "${GIT-RELEASE_BRANCH}^{commit}" # timeout=10 {noformat } } We expect, that the variable is replaced by its content and used in the git command invocation. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 

[JIRA] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 

Attachment:
 
 JENKINS-32435-env-vars-not-expanded-in-branch-to-build-injected-environment.xml 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite assigned an issue to Unassigned 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Change By:
 
 Mark Waite 
 
 
 

Assignee:
 
 Mark Waite 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Waite edited a comment on  JENKINS-32435 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 
 As far as I can tell from a first trivial test, the plugin is evaluating some environment variables for the "Branches to build" argument.  Steps I took:# Create a freestyle project using Git as SCM, with git://github.com/jenkinsci/git-client-plugin.git as the repository# Define the branch to build as:{noformat}$JENKINS_HOME{noformat}# Run the job, confirm that the value of $JENKINS_HOME is inserted in the build log I also used the brace separated form of the variable and confirmed it was expanded in the build log.# Create a freestyle project using Git as SCM, with git://github.com/jenkinsci/git-client-plugin.git as the repository# Define the branch to build as:{noformat}xy${JENKINS_HOME}/zz/y{noformat}# Run the job, confirm that the value of $JENKINS_HOME is inserted in the build log 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [git-plugin] (JENKINS-32435) Branches to build does not read content of environment variable

2016-01-13 Thread thomas.wab...@siemens.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Wabner created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32435 
 
 
 
  Branches to build does not read content of environment variable  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Mark Waite 
 
 
 

Components:
 

 git-plugin 
 
 
 

Created:
 

 13/Jan/16 5:12 PM 
 
 
 

Environment:
 

 Windows, git executeable, jenkins 1.643, git-plugin 2.4.1 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Thomas Wabner 
 
 
 
 
 
 
 
 
 
 
We try to use the "Branches to build" setting of the GIT plugin with variable substitution. 
That it should be possible and work is stated in the inline help for this parameter: === {{$ {ENV_VARIABLE} 
It is also possible to use environment variables. In this case the variables are evaluated and the result is used as described above. E.g. $ {TREEISH} 
, refs/tags/$ {TAGNAME} 
,...}} === 
We have setup our job with the flag "Prepare environment to run" and added following parameter as "Properties Content": 
 GIT-RELEASE_BRANCH=refs/heads/release/20160113 
In the field of "Branches to build" we tried to use $ {GIT-RELEASE_BRANCH}  We have also tried ${ENV_GIT-RELEASE_BRANCH}.  We can see for a specific build that the parameter is available as