CBLT-82:  import build script from legacy jenkins

Change-Id: Ib769d045d1780f809f6e2d5fb34be36c92c8f299
CBLT-82:  adapt to new environment

Change-Id: Ia3904deea0185830f5638a7f1dff558e96d4d581