Skip to main content
Skip table of contents

DataStage Compile Command

Purpose

Compiles a DataStage Job producing a jUnit-compatible testing output that can be utilised by built tools orchestrating a CI/CD pipeline.

This command produces a JUnit-compatible XML file called mettleci_compilation.xml which reports each individual job’s compilation result.

This command is also incorporated into the mettleci datastage ccmt command (documentation here).

Syntax

Syntax : datastage compile [options]

Description

  • -domain

    Services Tier (required)

    Required

  • -server

    Engine Tier (required)

    Required

  • -project

    Project Name (required)

    Required

  • -username

    User Name (required)

    Required

  • -password

    Password (required)

    Required

  • -include_server_routines

    Include Server Routines (optional)

  • -provision_rulesets

    Provision QualityStage Rulesets (optional)

  • -include-job-in-test-name

    Test case names will include the job name in the compilation jUnit report

Example

CODE
$> mettleci datastage compile \
   -domain service_tier.datamigrators.io:59445 \
   -username isadmin \
   -password mypassword \
   -server engine_tier.datamigrators.io \
   -project dstage1 \
   -include-job-in-test-name
Analyzing assets to compile
Compilation folder location = C:\Apps\command-shell\log\compiliation
Attempting to compile with 4 working threads.
Compiling DataStage jobs...
 * Compile 'engine_tier.datamigrators.io/dstage1/Jobs/Load/LD_STOCKITEM.pjb' - COMPLETED
 * Compile 'engine_tier.datamigrators.io/dstage1/Jobs/Load/LD_SALE.pjb' - COMPLETED
 * Compile 'engine_tier.datamigrators.io/dstage1/Jobs/Load/LD_SUPPLIER.pjb' - COMPLETED
 * Compile 'engine_tier.datamigrators.io/dstage1/Jobs/Load/LD_STOCK_HOLDING.pjb' - COMPLETED
Compilation complete


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.