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.

Artifact Size in Quickbuild 6.1.X #24

krish ·

Is it possible to get artifact size and add that size to job recent build new column ?
I created new column through advance setting -> costume column setting. So in that new column i want to get publish artifact size on each build . Can anyone please suggest, how this can be done ?

Thanks,

  • solved #2
  • replies 2
  • views 936
  • stars 0
robinshen ADMIN ·

You may scripting the column value something like below:

groovy:
var totalSize = 0;
if (build.artifactsDir.exists()) {
  for (file in build.artifactsDir.listFiles()) {
    totalSize += file.lengh();
  }
}
return totalSize / 1000000 + "MB";
krish ·

Thank you for your help.