How can I modify a Jenkins job environment variable value using Groovy? -


im using groovy postbuild plugin , trying modify exists job environment variable test im running on jobs log:

def map = ["x":"", "y":"", "z":""]  map.each{ it.value = (manager.getlogmatcher("$it.key(.*)\$")).tostring().split(':')[1] }  if(map.get('x') == ""){  job_environment_variable = foo } else {  job_environment_variable = boo } 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -