Add getCommandBuilder command

We need to have an ability to build command line options for
docker command, e.g:
  docker build --build-arg CALICO_REPO=repo \
               --build-arg CALICO_VER=mcp-0.1 \
               --build-arg LIBCALICO_REPO=repo \
               --build-arg LIBCALICO_VER=mcp-0.1
               ...

This can be easily done by groovy and works in jenkins
   ["opt1", "opt2", "opt3"].collect{ "--build-arg " + it }.join(" ")

but doesn't for pipelines because of [1], so we need to
have our own bicycle - the first one, but not the last

[1]. https://issues.jenkins-ci.org/browse/JENKINS-26481

Change-Id: I5e06b305fc7e3d0c26c847779ec8a1ad81850e51
2 files changed
tree: 44343861e77f1a969cd1ec70a554dee0a7e2ca4c
  1. src/
  2. vars/
  3. .gitreview