deployPackager.groovy

Create changesets from SQL scripts and deploy the changesets. 

USAGE

hammer [<hammer-options>] groovy deployPackager.groovy
     [dbdef=<dbdef-name> | pipeline=<pipelineRef>]
     [manifest=<directory> | <JSON-file>] || scm=true]
     [labels=<label-list>] [contexts=<contexts-list>]
     [showDebug=true] [invalidsAction=warn|fail]  
     [dbdefDeploy=true|false]
     [commitPrefix="<text>"]
     [preview]
     [createDatabaseBackup=<true|false>]
     [invalidsAction=<warn|fail>]
     [cleanup]

REQUIREMENTS

Either dbdef= or pipeline= must be the first option in the command. Only one is allowed. Changes are packaged and deployed either to the DbDef specified or the first (leftmost) DbDef in the pipeline. 

Either manifest= or scm=true is required. Only one is allowed. 

  • The deployPackager.groovy command and its options are case-sensitive.
  • When specifying labels and contexts that should be added to change sets produced by deployPackager.groovy DO NOT include dashes before the argument names
    • Correct: hammer groovy deployPackager.groovy pipeline=PIPELINE1 scm=true labels=label1,label2 contexts=context1,context2
    • Incorrect: hammer groovy deployPackager.groovy pipeline=PIPELINE1 scm=true --labels=label1,label2 --contexts=context1,context2 

OUTPUT OPTIONS

OPTIONS

DATICAL SERVICE OPTIONS

Use the following options to specify a project stored in Datical Service. Place them as hammer command options, before the groovy keyword. 

NOTES

The Deployment Packager gets SQL files to process from one of two sources:

Merge methodologies in SCM mode:

EXAMPLES

Datical DB - See Running Deployment Packager (CLI examples)

Datical Service - See Using Datical DB Hammer Commands with Projects in Datical Service (Packaging Example)

OUTPUT

Different output is produced depending on whether packaging succeeds or fails. 

During the process you will see multiple deploy operations recorded in the log on the way to a completed change deployment. 

See Output from Deployment Packager.