Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Get Build version from text #3603

nancylt723 ·
Does this still work: http://wiki.pmease.com/display/QB51/Rea ... +from+File?

This is what I have in my general settings for Use specified Build Version: $\{groovy:repositories.get("repo").sourceViewSupport.readSourceAsString("/BrandedFares/version.txt")\}

My workspace starts with BrandedFares and the version.txt file is there, but what I am getting for the next build is $\{groovy:repositories.get("repo").sourceViewSupport.readSourceAsString("/BrandedFares/version.txt")\}

Do I need to replace repo with the name of the repo? What am I doing wrong?
  • replies 1
  • views 1059
  • stars 0
robinshen ADMIN ·
The tutorial is incorrect (and now fixed), please use below script instead:
${groovy:repositories.get("repo").sourceViewSupport.readSourceAsString("/BrandedFares/version.txt")}

Here please replace "repo" with your actual repository name. Also this does not work with DVCS such as git, hg, etc.