ControlTier > controltier-elements
 

ZipBuilder

Simple builder to create a Zip file package of the "basedir" (deployment-basedir) in the "targetdir" (deployment-install-root) using the object name as file name and timestamp versioning

Overview

Open in Workbench ZipBuilder: Simple builder to create a Zip file package of the "basedir" (deployment-basedir) in the "targetdir" (deployment-install-root) using the object name as file name and timestamp versioning

Design

Super Type
Builder
Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Children, proximity: 1
Logger Name Builder

Constraints

Allowed Child Dependencies

  • BuilderBuildFile1
  • BuilderBuildstamp1
  • BuilderBuildTarget1
  • BuilderImportMax1
  • BuilderImportMin1
  • BuilderPackageBuildtimePattern1
  • BuilderPackageExtension1
  • BuilderPackageFilebase1
  • BuilderPackageInstallRank1
  • BuilderPackageInstallroot1
  • BuilderPackageRequireBuildstamp1
  • BuilderPackageSeparator1
  • BuilderPackageType1
  • BuilderPackageVendor1
  • BuilderPackageVersion1
  • BuilderPath1
  • BuilderScmBinding1
  • BuilderScmConnection1
  • BuilderScmLabel1
  • BuilderScmModule1
  • BuilderScmUser1
  • BuilderScmView1
  • BuilderVersionBuild1
  • BuilderVersionMajor1
  • BuilderVersionMinor1
  • BuilderVersionRelease1
  • BuilderVersionTag1

1: These types have a Singleton constraint. Only one instance may be added as a resource.

Allowed Parent Dependencies

Attributes

Exported Attributes

Name Property
basedir deployment-basedir
targetdir deployment-install-root

Defaults for Imported Attributes

Name Default
buildPath /bin:/usr/bin
importMax 1
importMin 1
packageExtension zip
packageFilebase ${entity.name}
packageInstallRank 10
packageInstallroot ${opts.basedir}
packageSeparator -
packageType zip
requireBuildstamp false

Commands

Note
Commandline options displayed in square brackets "[]" are optional. If an option expects arguments, then angle brackets are shown after the option "<>". Any default value is shown within the brackets.

Build

run the build cycle

Usage
Build [-buildstamp <${DSTAMP}${TSTAMP}>]

Workflow

  1. runBuildScript
  2. repoImport

Options

Option Description
buildstamp build identifier

runBuildScript

runs the build script

Usage
runBuildScript [-basedir <>] [-buildfile <>] [-buildstamp <>] [-target <>] [-targetdir <>]
Execution bash
Arguments cd ${opts.basedir}; zip -r ${opts.targetdir}/${entity.name}.zip .

Options

Option Description
basedir directory where build resources reside
buildfile build file to execute
buildstamp build identifier
target build target to evaluate
targetdir directory build artifacts will be written