[JIRA] (JENKINS-42614) Pipeline support in EnvInject

2019-04-24 Thread alexz.kh...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alex Z edited a comment on  JENKINS-42614  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline support in EnvInject   
 

  
 
 
 
 

 
 Pass text-yaml variable to job:likeEXTRA_VARIABLES_YAML:variabl1: value1then, merge extra data into job env:  {noformat}  def mergeEnv(envVar, extraVars) {  def common = new com.mirantis.mk.Common()  try { def extraParams = readYaml text: extraVars for(String key in extraParams.keySet()) { envVar[key] = extraParams[key] println("Parameter ${key} is updated from EXTRA vars.") } } catch (Exception e) {println("Can't update env parameteres, because: ${e.toString()}") }} extraVarsYAML = env.EXTRA_VARIABLES_YAML.trim() ?: ''if (extraVarsYAML) {mergeEnv(env, extraVarsYAML) extraVars = readYaml text: extraVarsYAML} else { extraVars = [:]}{noformat}  
 

  
 
 
 
 

 
 
 

 
 
 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-42614) Pipeline support in EnvInject

2019-04-24 Thread alexz.kh...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alex Z commented on  JENKINS-42614  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline support in EnvInject   
 

  
 
 
 
 

 
 Pass text-yaml variable to job: like EXTRA_VARIABLES_YAML: variabl1: value1 then, merge extra data into job env: 

 

def mergeEnv(envVar, extraVars) {
 def common = new com.mirantis.mk.Common()
 try {
 def extraParams = readYaml text: extraVars
 for(String key in extraParams.keySet()) {
 envVar[key] = extraParams[key]
 println("Parameter ${key} is updated from EXTRA vars.")
 }
 } catch (Exception e) {
println("Can't update env parameteres, because: ${e.toString()}")
 }
}

 

extraVarsYAML = env.EXTRA_VARIABLES_YAML.trim() ?: ''
if (extraVarsYAML) {
mergeEnv(env, extraVarsYAML)
 extraVars = readYaml text: extraVarsYAML
} else {
 extraVars = [:]
}

 

  
 

  
 
 
 
 

 
 
 

 
 
 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-42614) Pipeline support in EnvInject

2019-04-23 Thread cmc...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charles Choi edited a comment on  JENKINS-42614  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline support in EnvInject   
 

  
 
 
 
 

 
 In pipeline "Properties Content",Path=$Path;$JAVA\\bin;C: \\  Program Files (x86)\\PuTTY;C:\\NGS\\bin;C:\\Python27;C:\\Python27 \\  Scripts$Path is not evaluated.How to "Inject environment variables" using pipeline syntax? I would like to see workarounds documentation.  
 

  
 
 
 
 

 
 
 

 
 
 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-42614) Pipeline support in EnvInject

2019-04-23 Thread cmc...@hotmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charles Choi commented on  JENKINS-42614  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline support in EnvInject   
 

  
 
 
 
 

 
 In pipeline "Properties Content",Path=$Path;$JAVA\\bin;C:Program Files (x86)\\PuTTY;C:\\NGS\\bin;C:\\Python27;C:\\Python27Scripts $Path is not evaluated. How to "Inject environment variables" using pipeline syntax?  
 

  
 
 
 
 

 
 
 

 
 
 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-42614) Pipeline support in EnvInject

2019-04-03 Thread gvswan...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Swanand Gajendragadkar commented on  JENKINS-42614  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Pipeline support in EnvInject   
 

  
 
 
 
 

 
 As per description, there are multiple workarounds. Can anybody put link to workaround page, or mention some workarounds here?  
 

  
 
 
 
 

 
 
 

 
 
 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-42614) Pipeline support in EnvInject

2018-03-12 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize. Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-42614  
 
 
  Pipeline support in EnvInject   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Assignee: 
 Oleg Nenashev  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

 

[JIRA] (JENKINS-42614) Pipeline support in EnvInject

2017-03-09 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42614  
 
 
  Pipeline support in EnvInject   
 

  
 
 
 
 

 
Issue Type: 
  Epic  
 
 
Assignee: 
 Oleg Nenashev  
 
 
Components: 
 envinject-plugin  
 
 
Created: 
 2017/Mar/09 10:01 AM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Oleg Nenashev  
 

  
 
 
 
 

 
 EnvInject does not support Pipeline now. Though there are many workarounds, it would be useful to address particular integration use-cases  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

[JIRA] (JENKINS-42614) Pipeline support in EnvInject

2017-03-09 Thread o.v.nenas...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oleg Nenashev updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42614  
 
 
  Pipeline support in EnvInject   
 

  
 
 
 
 

 
Change By: 
 Oleg Nenashev  
 
 
Labels: 
 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.