view scripts/hgall.groovy @ 247:ecae2b9a41d3

add code to stamp build number into build-number.txt lost in bamboo 5
author smith@nwoca.org
date Fri, 14 Jul 2017 18:21:46 +0100
parents f351338a3b3a
children
line wrap: on
line source

cmd = args ? args.join(' ') : 'out'

new File(".").eachDirRecurse { d ->

   if  ( new File(d,".hg").exists() ) {   
     println "$d.absolutePath: $cmd \n-----------------------------------"      
     println  "hg -R ${d.absolutePath} ${cmd}".execute().text
      
  }
}