Minimal

Minimal Sample

This is a basic extension to the solution seed, which limits the deploy step to local context only. See

[cdEmulate.bat] --------------------
[cdEmulate.bat] Initialise Emulation
[cdEmulate.bat] --------------------
[cdEmulate.ps1]   ACTION              : (not supplied, options cionly, buildonly, packageonly or cdonly)
[cdEmulate.ps1]   BUILDNUMBER         : 773 (auto incrimented from C:\Users\vagrant\BUILDNUMBER.counter)
[cdEmulate.ps1]   REVISION            : release
[cdEmulate.ps1]   AUTOMATIONROOT      : C:\automation (default)
[cdEmulate.ps1]   SOLUTIONROOT        : C:\minimal\automation-solution (found C:\minimal\automation-solution\CDAF.solution)
[cdEmulate.ps1]   SOLUTION            : minimal-package (from C:\minimal\automation-solution\CDAF.solution)
[cdEmulate.ps1]   CDAF_DELIVERY       : WINDOWS (derived from domain membership)
[cdEmulate.ps1]   ciProcess           : C:\automation\processor\buildPackage.ps1 (default)
[cdEmulate.ps1]   cdProcess           : .\release.ps1 (default)

[buildPackage.ps1] ============================================
[buildPackage.ps1] Continuous Integration (CI) Process Starting
[buildPackage.ps1] ============================================
[buildPackage.ps1]   BUILDNUMBER     : 773
[buildPackage.ps1]   REVISION        : release
[buildPackage.ps1]   ACTION          :
[buildPackage.ps1]   LOCAL_WORK_DIR  : TasksLocal (default)
[buildPackage.ps1]   REMOTE_WORK_DIR : TasksRemote (default)
[buildPackage.ps1]   AUTOMATIONROOT  : C:\automation (not supplied, derived from invocation)
[buildPackage.ps1]   SOLUTIONROOT    : C:\minimal\automation-solution
[buildPackage.ps1]   SOLUTION        : minimal-package (found $SOLUTIONROOT\CDAF.solution)
[buildPackage.ps1]   BUILDENV        : WINDOWS (derived from domain membership)
[buildPackage.ps1]   WORKSPACE_ROOT  : C:\minimal
[buildPackage.ps1]   hostname        : HP-800-G1
[buildPackage.ps1]   whoami          : vagrant
[buildPackage.ps1]   CDAF Version    : 3.0.0
[buildPackage.ps1]   Pre-build Task  : none (C:\minimal\automation-solution\prebuild.tsk)
[buildPackage.ps1]   Post-build Task : none (C:\minimal\automation-solution\postbuild.tsk)
[buildPackage.ps1]   CM Driver       : none (C:\minimal\automation-solution\*.cm)
[buildPackage.ps1]   PV Driver       : none (C:\minimal\automation-solution\*.pv)

[buildPackage.ps1] Remove Build Process Temporary files and directories

[buildPackage.ps1] CDAF Container Features Set ...
[buildPackage.ps1]   containerBuild            : (not defined in C:\minimal\automation-solution\CDAF.solution)

[06/28/2025 16:27:20] & "C:\automation\buildandpackage\buildProjects.ps1" minimal-package 773 release "C:\automation" "C:\minimal\automation-solution"

[buildProjects.ps1] +----------------------------+
[buildProjects.ps1] | Process BUILD all projects |
[buildProjects.ps1] +----------------------------+
[buildProjects.ps1]   SOLUTION          : minimal-package
[buildProjects.ps1]   BUILDNUMBER       : 773
[buildProjects.ps1]   REVISION          : release
[buildProjects.ps1]   AUTOMATIONROOT    : C:\automation
[buildProjects.ps1]   SOLUTIONROOT      : C:\minimal\automation-solution
[buildProjects.ps1]   ACTION            :
[buildProjects.ps1]   BUILDENV          : WINDOWS
[buildProjects.ps1]   Project list      : none (C:\minimal\automation-solution\buildProjects)

[buildProjects.ps1] Load solution properties ...

[Transform.ps1] PROPFILE  : C:\minimal\automation-solution\CDAF.solution
[Transform.ps1]   productName = Minimal Release Package
[Transform.ps1]   solutionName = minimal-package
[Transform.ps1]   artifactPrefix = 0.0
[Transform.ps1]   packageFeatures = minimal
[Transform.ps1]   packageMethod = tarball
[Transform.ps1]   processSequence = localTasks.ps1

[buildProjects.ps1] Clean temp files and folders from workspace
[buildProjects.ps1] Delete .\*.tar.gz

[buildProjects.ps1] No project directories found containing build.ps1 or build.tsk, assuming new solution, continuing ...

[06/28/2025 16:27:20] & "C:\automation\buildandpackage\package.ps1" minimal-package 773 release "C:\automation" "C:\minimal\automation-solution" TasksLocal TasksRemote

[package.ps1] +-----------------+
[package.ps1] | Package Process |
[package.ps1] +-----------------+
[package.ps1]   SOLUTION                   : minimal-package
[package.ps1]   BUILDNUMBER                : 773
[package.ps1]   REVISION                   : release
[package.ps1]   AUTOMATIONROOT             : C:\automation
[package.ps1]   SOLUTIONROOT               : C:\minimal\automation-solution
[package.ps1]   LOCAL_WORK_DIR             : TasksLocal
[package.ps1]   REMOTE_WORK_DIR            : TasksRemote
[package.ps1]   ACTION                     :
[package.ps1]   Prepackage Tasks           : none (C:\minimal\automation-solution\package.tsk)
[package.ps1]   Prepackage Script          : none (.\package.ps1)
[package.ps1]   Postpackage Tasks          : none (C:\minimal\automation-solution\wrap.tsk)
[package.ps1]   Remote Target Directory    : none (C:\minimal\automation-solution\propertiesForRemoteTasks)
[package.ps1]   Container Target Directory : none (C:\minimal\automation-solution\propertiesForContainerTasks)
[package.ps1]   pwd                        : C:\minimal
[package.ps1]   hostname                   : HP-800-G1
[package.ps1]   whoami                     : vagrant
[package.ps1]   CDAF Version               : 3.0.0
[package.ps1]   packageFeatures            : minimal (option minimal)

[package.ps1]   --- Start Package Process ---

[package.ps1] Delete TasksLocal

[package.ps1] Load solution properties from C:\minimal\automation-solution\CDAF.solution

[Transform.ps1] PROPFILE  : C:\minimal\automation-solution\CDAF.solution
[Transform.ps1]   productName = Minimal Release Package
[Transform.ps1]   solutionName = minimal-package
[Transform.ps1]   artifactPrefix = 0.0
[Transform.ps1]   packageFeatures = minimal
[Transform.ps1]   packageMethod = tarball
[Transform.ps1]   processSequence = localTasks.ps1

Created manifest.txt file ...

# Manifest for revision minimal-package
SOLUTION=minimal-package
BUILDNUMBER=773
REVISION=release
productName=Minimal Release Package
solutionName=minimal-package

artifactPrefix=0.0
packageFeatures=minimal
packageMethod=tarball

processSequence=localTasks.ps1

[package.ps1] Always create local working artefacts, even if all tasks are remote
[06/28/2025 16:27:20] & 'C:\automation\buildandpackage\packageLocal.ps1' 'minimal-package' '773' 'release' 'TasksLocal' 'C:\minimal\automation-solution' 'C:\automation'

[packageLocal.ps1] ---------------------------------------------------------------
[packageLocal.ps1]   WORK_DIR_DEFAULT                : TasksLocal
[packageLocal.ps1]   Local Artifact List             : none (C:\minimal\automation-solution\storeForLocal)
[packageLocal.ps1]   Generic Artifact List           : none (C:\minimal\automation-solution\storeFor)
[packageLocal.ps1]   Local Tasks Properties List     : none (C:\minimal\automation-solution\propertiesForLocalTasks)
[packageLocal.ps1]   Generated local properties      : none (propertiesForLocalTasks)
[packageLocal.ps1]   Local Environment Properties    : none (C:\minimal\automation-solution\propertiesForLocalEnvironment)
[packageLocal.ps1]   Local Tasks Encrypted Data      : none (C:\minimal\automation-solution\cryptLocal)
[packageLocal.ps1]   Common Encrypted Data           : none (C:\minimal\automation-solution\crypt)
[packageLocal.ps1]   Local Tasks Custom Scripts      : none (C:\minimal\automation-solution\customLocal)
[packageLocal.ps1]   Common Custom Scripts           : none (C:\minimal\automation-solution\custom)
[packageLocal.ps1]   Remote Tasks Properties List    : none (C:\minimal\automation-solution\propertiesForRemoteTasks)
[packageLocal.ps1]   Generated remote properties     : none (propertiesForRemoteTasks)
[packageLocal.ps1]   Container Tasks Properties List : none (C:\minimal\automation-solution\propertiesForContainerTasks)
[packageLocal.ps1]   Generated Container properties  : none (propertiesForContainerTasks)

[packageLocal.ps1] Create TasksLocal and seed with solution files
[packageLocal.ps1]   .\manifest.txt --> TasksLocal
[packageLocal.ps1]   C:\automation\CDAF.windows --> TasksLocal\CDAF.properties
[packageLocal.ps1]   C:\automation\processor\delivery.bat --> TasksLocal
[packageLocal.ps1]   C:\automation\processor\delivery.ps1 --> TasksLocal

[packageLocal.ps1] packageFeatures = minimal
[packageLocal.ps1]   C:\automation\remote\getProperty.ps1 --> TasksLocal
[packageLocal.ps1]   C:\automation\local\localTasks.ps1 --> TasksLocal
[packageLocal.ps1]   C:\automation\local\localTasksTarget.ps1 --> TasksLocal
[packageLocal.ps1]   C:\automation\remote\execute.ps1 --> TasksLocal
[packageLocal.ps1]   C:\automation\remote\Transform.ps1 --> TasksLocal

[packageLocal.ps1] Copy local and remote definitions

[packageLocal.ps1]   No files found for tasksRunLocal.tsk tasksRunRemote.tsk

[packageLocal.ps1] zipLocal property not found in manifest.txt (CDAF.solution), no further action required.

[package.ps1] Remote Properties directory (C:\minimal\automation-solution\propertiesForRemoteTasks) or storeForRemote file do not exist, no action performed for remote task packaging

[package.ps1]   --- Package Complete ---
[buildPackage.ps1] artifactPrefix = minimal-package-0.0.773, generate single file artefact ...
[buildPackage.ps1]   Created C:\minimal\minimal-package-0.0.773
[06/28/2025 16:27:20] Move-Item '.\TasksLocal' '.\minimal-package-0.0.773'
[06/28/2025 16:27:20] cd minimal-package-0.0.773
[06/28/2025 16:27:20] tar -czf ../minimal-package-0.0.773.tar.gz .
[06/28/2025 16:27:21] cd ..
[buildPackage.ps1]   Create single script artefact release.ps1
[06/28/2025 16:27:21] Created release.ps1, MB : 0.0172100067138672

[buildPackage.ps1] Clean Workspace...
[buildPackage.ps1] Delete manifest.txt
[buildPackage.ps1] Delete minimal-package-0.0.773.tar.gz
[buildPackage.ps1] Delete minimal-package-0.0.773

[buildPackage.ps1][06/28/2025 16:27:21] Process complete, artefacts [release.ps1] placed in C:\minimal
Launching release.ps1 (0.0.773) ...
[06/28/2025 16:27:21] Extracting embedded package file ...
[06/28/2025 16:27:21] Decompressing package file ...
[06/28/2025 16:27:21] Execute Deployment ...

[delivery.bat] =========================================
[delivery.bat] Continuous Delivery (CD) Process Starting
[delivery.bat] =========================================
[delivery.ps1]   ENVIRONMENT      : WINDOWS
[delivery.ps1]   RELEASE          : Release (default)
[delivery.ps1]   OPT_ARG          : (not supplied)
[delivery.ps1]   WORK_DIR_DEFAULT : TasksLocal (default)
[delivery.ps1]   CDAF_CORE        : C:\minimal\TasksLocal
[delivery.ps1]   SOLUTION         : minimal-package (from manifest.txt)
[delivery.ps1]   BUILDNUMBER      : 773 (from manifest.txt)
[delivery.ps1]   WORKSPACE_ROOT   : C:\minimal
[delivery.ps1]   whoami           : vagrant
[delivery.ps1]   hostname         : HP-800-G1
[delivery.ps1]   CDAF Version     : 3.0.0
[delivery.ps1]   CDAF_ERROR_DIAG  : (not set or defined in C:\minimal\TasksLocal\CDAF.properties)
[delivery.ps1]   processSequence  : localTasks.ps1 (override)

[06/28/2025 16:27:22] & 'C:\minimal\TasksLocal\localTasks.ps1' 'WINDOWS' '773' 'minimal-package' 'C:\minimal\TasksLocal' ''

[localTasks.ps1] +--------------------------------+
[localTasks.ps1] | Process Locally Executed Tasks |
[localTasks.ps1] +--------------------------------+
[localTasks.ps1]   ENVIRONMENT            : WINDOWS
[localTasks.ps1]   BUILD                  : 773
[localTasks.ps1]   SOLUTION               : minimal-package
[localTasks.ps1]   WORK_DIR_DEFAULT       : C:\minimal\TasksLocal
[localTasks.ps1]   OPT_ARG                :
[localTasks.ps1]   localEnvironmentPath   : (not defined)
[localTasks.ps1]   CDAF Version           : 3.0.0
[localTasks.ps1]   WORKSPACE              : C:\minimal\TasksLocal
[localTasks.ps1]   Hostname               : HP-800-G1
[localTasks.ps1]   Whoami                 : vagrant

[localTasks.ps1][WARN] Properties not found (propertiesForLocalTasks\WINDOWS*) alter processSequence property to skip

[delivery.ps1] =========================================
[delivery.ps1]        Delivery Process Complete
[delivery.bat] =========================================

[cdEmulate.ps1] ------------------
[cdEmulate.ps1] Emulation Complete
[cdEmulate.ps1] ------------------
[cdEmulate.sh] --------------------
[cdEmulate.sh] Initialise Emulation
[cdEmulate.sh] --------------------
[cdEmulate.sh]   ACTION         : (not supplied, options cionly, buildonly, packageonly or cdonly)
[cdEmulate.sh]   BUILDNUMBER    : 104
[cdEmulate.sh]   REVISION       : release
[cdEmulate.sh]   AUTOMATIONROOT : /automation (derived from invocation)
[cdEmulate.sh]   SOLUTIONROOT   : /minimal/automation-solution (CDAF.solution found)
[cdEmulate.sh]   SOLUTION       : minimal-package (from CDAF.solution)
[cdEmulate.sh]   CDAF_DELIVERY  : LINUX (default)
[cdEmulate.sh]   ciProcess      : /automation/processor/buildPackage.sh (default)
[cdEmulate.sh]   cdProcess      : ./release.sh (due to artifactPrefix being set in /minimal/automation-solution/CDAF.solution)

[buildPackage.sh] ============================================
[buildPackage.sh] Continuous Integration (CI) Process Starting
[buildPackage.sh] ============================================
[buildPackage.sh]   BUILDNUMBER     : 104
[buildPackage.sh]   REVISION        : release
[buildPackage.sh]   ACTION          :
[buildPackage.sh]   LOCAL_WORK_DIR  : TasksLocal (default)
[buildPackage.sh]   REMOTE_WORK_DIR : TasksRemote (default)
[buildPackage.sh]   AUTOMATIONROOT  : /automation
[buildPackage.sh]   SOLUTIONROOT    : /minimal/automation-solution
[buildPackage.sh]   SOLUTION        : minimal-package (from CDAF.solution)
[buildPackage.sh]   BUILDENV        : LINUX (default)
[buildPackage.sh]   WORKSPACE_ROOT  : /minimal
[buildPackage.sh]   hostname        : HP-800-G1
[buildPackage.sh]   whoami          : vagrant
[buildPackage.sh]   CDAF Version    : 3.0.0
[buildPackage.sh]   Pre-build Task  : none (/minimal/automation-solution/prebuild.tsk)
[buildPackage.sh]   Post-build Task : none (/minimal/automation-solution/postbuild.tsk)
[buildPackage.sh]   CM Driver       : none (/minimal/automation-solution/*.cm)
[buildPackage.sh]   PV Driver       : none (/minimal/automation-solution/*.pv)

[buildPackage.sh] Remove Build Process Temporary files and directories

[buildProjects.sh] +----------------------------+
[buildProjects.sh] | Process BUILD all projects |
[buildProjects.sh] +----------------------------+

[buildProjects.sh]   SOLUTION       : minimal-package
[buildProjects.sh]   BUILDNUMBER    : 104
[buildProjects.sh]   REVISION       : release
[buildProjects.sh]   ACTION         : (not passed)
[buildProjects.sh]   BUILDENV       : LINUX
[buildProjects.sh]   AUTOMATIONROOT : /automation (global variable)
[buildProjects.sh]   SOLUTIONROOT   : /minimal/automation-solution (global variable)

[buildProjects.sh] Load properties from /minimal/automation-solution/CDAF.solution
  export  productName='Minimal Release Package'
  export  solutionName='minimal-package'
  export  artifactPrefix='0.0'
  export  packageFeatures='minimal'
  export  processSequence='localTasks.sh'
/automation/buildandpackage/buildProjects.sh: line 105: warning: command substitution: ignored null byte in input

[buildProjects.sh] No projects found, no build action attempted.

[package.sh] +-----------------+
[package.sh] | Package Process |
[package.sh] +-----------------+
[package.sh]   SOLUTION                 : minimal-package
[package.sh]   BUILDNUMBER              : 104
[package.sh]   REVISION                 : release
[package.sh]   LOCAL_WORK_DIR           : TasksLocal
[package.sh]   REMOTE_WORK_DIR          : TasksRemote
[package.sh]   ACTION                   :
[package.sh]   AUTOMATIONROOT           : /automation
[package.sh]   SOLUTIONROOT             : /minimal/automation-solution
[package.sh]   Pre-package Tasks        : none (/minimal/automation-solution/package.tsk)
[package.sh]   Post-package Tasks       : none (/minimal/automation-solution/wrap.tsk)
[package.sh]   Remote Target Directory  : none (/minimal/automation-solution/propertiesForRemoteTasks)
[package.sh]   remote artifact list     : none (/minimal/automation-solution/storeForRemote)
[package.sh]   Remote Target Directory  : none (/minimal/automation-solution/propertiesForContainerTasks)
[package.sh]   generic artifact list    : none (/minimal/automation-solution/storeFor)
[package.sh]   pwd                      : /minimal
[package.sh]   hostname                 : HP-800-G1
[package.sh]   whoami                   : vagrant
[package.sh]   CDAF Version             : 3.0.0
[package.sh]   packageFeatures          : minimal (option minimal)

[package.sh] Clean root workspace (/minimal)

[package.sh] Remove working directories

[package.sh] CDAF.solution file found in directory "/minimal/automation-solution", load solution properties

  productName='Minimal Release Package'
  solutionName='minimal-package'
  artifactPrefix='0.0'
  packageFeatures='minimal'
  processSequence='localTasks.sh'

[package.sh] Created manifest.txt file ...

  # Manifest for revision minimal-package
  SOLUTION=minimal-package
  BUILDNUMBER=104
  REVISION=release
  productName=Minimal Release Package
  solutionName=minimal-package

  artifactPrefix=0.0
  packageFeatures=minimal

  processSequence=localTasks.sh

[package.sh] Always create local artefacts, even if all tasks are remote

[packageLocal.sh] --- PACKAGE locally executed scripts and artefacts ---

[packageLocal.sh]   WORK_DIR_DEFAULT               : TasksLocal
[packageLocal.sh]   local artifact list            : none (/minimal/automation-solution/storeForLocal)
[packageLocal.sh]   Properties for local tasks     : none (/minimal/automation-solution/propertiesForLocalTasks)
[packageLocal.sh]   Generated local properties     : none (./propertiesForLocalTasks)
[packageLocal.sh]   local encrypted files          : none (/minimal/automation-solution/cryptLocal)
[packageLocal.sh]   common encrypted files         : none (/minimal/automation-solution/crypt)
[packageLocal.sh]   custom scripts                 : none (/minimal/automation-solution/custom)
[packageLocal.sh]   local custom scripts           : none (/minimal/automation-solution/customLocal)
[packageLocal.sh]   Properties for remote tasks    : none (/minimal/automation-solution/propertiesForRemoteTasks)
[packageLocal.sh]   Generated remote properties    : none (./propertiesForRemoteTasks)
[packageLocal.sh]   Properties for container tasks : none (/minimal/automation-solution/propertiesForContainerTasks)
[packageLocal.sh]   Generated container properties : none (./propertiesForContainerTasks)

[packageLocal.sh] Create TasksLocal and seed with solution files

mkdir: created directory 'TasksLocal'
'manifest.txt' -> 'TasksLocal/manifest.txt'
'/automation/CDAF.linux' -> 'TasksLocal/CDAF.properties'

[packageLocal.sh] packageFeatures = minimal
'/automation/remote/getProperty.sh' -> 'TasksLocal/getProperty.sh'
'/automation/local/localTasks.sh' -> 'TasksLocal/localTasks.sh'
'/automation/remote/execute.sh' -> 'TasksLocal/execute.sh'
'/automation/remote/transform.sh' -> 'TasksLocal/transform.sh'

'/automation/processor/delivery.sh' -> 'TasksLocal/delivery.sh'

[packageLocal.sh] Copy local and remote definitions

No files found for tasksRunLocal.tsk tasksRunRemote.tsk

[packageLocal.sh] zipLocal not set in CDAF.solution of any build property, no additional action.

[package.sh] --- Solution Packaging Complete ---

[buildPackage.sh] artifactPrefix = minimal-package-0.0.104, generate single file artefact ...
[buildPackage.sh][1] tar -czf minimal-package-0.0.104.tar.gz TasksLocal/
[buildPackage.sh][INFO]
[buildPackage.sh]   Create single script artefact release.sh
[buildPackage.sh]   Set resulting package file executable
[buildPackage.sh] chmod +x release.sh

[buildPackage.sh] Clean Workspace...
rm -rf TasksLocal
rm -rf propertiesForLocalTasks
rm './minimal-package-0.0.104.tar.gz'
rm -rf propertiesForLocalTasks
rm -f manifest.txt

[buildPackage.sh] Continuous Integration (CI) Finished, use ./release.sh <env> to perform deployment.

Launching release.sh (0.0.104) ...

[delivery.sh] =================================
[delivery.sh] Continuous Delivery (CD) Starting
[delivery.sh] =================================
[delivery.sh]   ENVIRONMENT      : LINUX
[delivery.sh]   RELEASE          : Release (default)
[delivery.sh]   OPT_ARG          :
[delivery.sh]   WORK_DIR_DEFAULT : TasksLocal
[delivery.sh]   CDAF_CORE        : /minimal/TasksLocal
[delivery.sh]   SOLUTION         : minimal-package (derived from TasksLocal/manifest.txt)
[delivery.sh]   BUILDNUMBER      : 104 (derived from TasksLocal/manifest.txt)
[delivery.sh]   WORKSPACE_ROOT   : /minimal
[delivery.sh]   whoami           : vagrant
[delivery.sh]   hostname         : HP-800-G1
[delivery.sh]   CDAF Version     : 3.0.0
[delivery.sh]   CDAF_ERROR_DIAG  : (not set or defined in /minimal/TasksLocal/manifest.txt)
[delivery.sh]   processSequence  : localTasks.sh (override)

'/minimal/TasksLocal/localTasks.sh' 'LINUX' 'Release' '104' 'minimal-package' 'TasksLocal' ''

[localTasks.sh] +--------------------------------+
[localTasks.sh] | Process Locally Executed Tasks |
[localTasks.sh] +--------------------------------+
[localTasks.sh]   ENVIRONMENT      : LINUX
[localTasks.sh]   RELEASE          : Release
[localTasks.sh]   BUILDNUMBER      : 104
[localTasks.sh]   SOLUTION         : minimal-package
[localTasks.sh]   WORK_DIR_DEFAULT : TasksLocal
[localTasks.sh]   OPT_ARG          : (Optional task argument not supplied)
[localTasks.sh]   whoami           : vagrant
[localTasks.sh]   hostname         : HP-800-G1
[localTasks.sh]   pwd              : /minimal/TasksLocal

[localTasks.sh]   Properties directory (./propertiesForLocalTasks) not found, no action taken.

[delivery.sh] =========================================
[delivery.sh]        Delivery Process Complete
[delivery.sh] =========================================

[cdEmulate.sh] ------------------
[cdEmulate.sh] Emulation Complete
[cdEmulate.sh] ------------------