Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
[user@engine mci]$ # Start in your MettleCI home directory (default: /opt/dm/mci/)
[user@engine mci]$ pwd
/opt/dm/mci

[user@engine mci]$ # SCP/FTP the compliance zip file you downloaded from software.mettleci.io to this directory 
[user@engine mci]$ ll dm-compliance-rules-59.zip

-rw-r--r-- 1 root root 38578 Jan 13 11:41 dm-compliance-rules-59.zip

[user@engine mci]$ # Unzip it.  This will create a subdirectory /opt/dm/mci/compliance.
[user@engine mci]$ unzip dm-compliance-rules-59.zip
Archive:  dm-compliance-rules-59.zip
   creating: compliance/
  inflating: compliance/One Dataflow.sjb.grm
  inflating: compliance/rules.cfg
  inflating: compliance/Link Sort.pjb.grm
  inflating: compliance/Range Lookup.pjb.grm
   creating: compliance/.git/
<SNIP>

[user@engine mci]$ ll
total 52648
drwxrwxr-x  6 mciworkb dstage      163 Jan 13 11:05 cli
drwxrwxr-x  3 ec2-user dstage     4096 Jan  8 15:59 compliance
-rwxrwxrwx  1 mciworkb dstage      282 Jan 10 12:31 datastage-users.yaml
<SNIP>

[user@engine mci]$ ll compliance/
total 128
-rw-rw-r-- 1 ec2-user dstage  1478 Jan  8 15:59 Adjacent Transformers.pjb.grm
-rw-rw-r-- 1 ec2-user dstage  3246 Jan  8 15:59 CCMigrateTool Stages.pjb.grm
-rw-rw-r-- 1 ec2-user dstage  2227 Jan  8 15:59 CCMigrateTool Stages.sjb.grm
<SNIP>

[user@engine mci]$ # The compliance directory is a local Git repository of default Compliance Rules
[user@engine mci] cd compliance
[user@engine compliance]$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       Adjacent Transformers.pjb.grm
#       CCMigrateTool Stages.pjb.grm
#       CCMigrateTool Stages.sjb.grm
<SNIP>

[user@engine mci] # You're ready to go!

Using a Local Repository

How to do adds/commits to make your new rules and/or changes to Workbench.