Versions Compared

Key

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

...

Code Block
languagebash
titleExample for Listing Objects from a Git Repository
linenumberstrue
# common options for connection to JS7 REST API
request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller)

# list items from JOC Cockpit rollout repository
./deploy-git.sh list-item    "${request_options[@]}" --folder=/TestRepo --recursive

# list items from JOC Cockpit local repository
./deploy-git.sh list-item    "${request_options[@]}" --folder=/TestRepo --recursive --local

...

Code Block
languagebash
titleExamples for Storing Scheduling Objects to a Git Repository
linenumberstrue
# common options for connection to JS7 REST API
request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller)

# store items to JOC Cockpit rollout repository: folder
./deploy-git.sh store-item  "${request_options[@]}" --folder=/TestRepo --recursive

# store items to JOC Cockpit rollout repository: object path and type of object
./deploy-git.sh store-item  "${request_options[@]}" --path=/TestRepo/03_VariablesPassing/jdwVariablesAdHoc --type=WORKFLOW

# store items to JOC Cockpit local repository: object path and type of object
./deploy-git.sh store-item  "${request_options[@]}" --path=/TestRepo/03_VariablesPassing/jdjVariablesJobResource --type=JOBRESOURCE --local

# store items to JOC Cockpit rollout repository: object path and type of object
./deploy-git.sh store-item  "${request_options[@]}" --path=/TestRepo/51_JobTemplates/51_JobTemplate --type=JOBTEMPLATE

# store items to JOC Cockpit rollout repository: change objects including any referencing objects and referenced objects
./deploy-git.sh store-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01

# store items to JOC Cockpit rollout repository: change objects without referencing objects
./deploy-git.sh store-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no-referencing

# store items to JOC Cockpit rollout repository: change objects without referenced objects
./deploy-git.sh store-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no references

...

Code Block
languagebash
titleExamples for Updating the JOC Cockpit Inventory from a Git Repository
linenumberstrue
# common options for connection to JS7 REST API
request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller)

# update inventory items from JOC Cockpit rollout repository: folder
./deploy-git.sh update-item "${request_options[@]}" --folder=/TestRepo

# update inventory items from JOC Cockpit local repository: folder
./deploy-git.sh update-item "${request_options[@]}" --folder=/TestRepo --local

# update inventory items from JOC Cockpit rollout repository: path and object type
./deploy-git.sh update-item "${request_options[@]}" --path=/TestRepo/03_VariablesPassing/jdwVariablesAdHoc --type=WORKFLOW

# update inventory items from JOC Cockpit rollout repository: change objects including any referencing and referenced objects
./deploy-git.sh update-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01

# update inventory items from JOC Cockpit rollout repository: change objects excluding referencing objects
./deploy-git.sh update-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no-referencing

# update inventory items from JOC Cockpit rollout repository: change objects excluding referenced objects
./deploy-git.sh update-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no-references

...

Code Block
languagebash
titleExamples for Deleting Scheduling Objects from a Git Repository
linenumberstrue
# common options for connection to JS7 REST API
request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller)

# delete items from JOC Cockpitrollout repository: folder
./deploy-git.sh delete-item "${request_options[@]}" --folder=/TestRepo/03_VariablesPassing

# delete items from JOC Cockpit rollout repository: object path and type
./deploy-git.sh delete-item "${request_options[@]}"  --path=/TestRepo/03_VariablesPassing/jdwVariablesAdHoc --type=WORKFLOW

# delete items from JOC Cockpit rollout repository: object path and type
./deploy-git.sh delete-item "${request_options[@]}"  --path=/TestRepo/51_JobTemplates/51_JobTemplate --type=JOBTEMPLATE

# delete items from JOC Cockpit local repository: object path and type
./deploy-git.sh delete-item "${request_options[@]}"  --path=/TestRepo/03_VariablesPassing/jdjVariablesJobResource --type=JOBRESOURCE --local

# delete items from JOC Cockpit rollout repository: change objects including any referencing and referenced objects
./deploy-git.sh delete-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01

# delete items from JOC Cockpit rollout repository: change objects excluding referencing objects
./deploy-git.sh delete-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no-referencing

# delete items from JOC Cockpit rollout repository: change objects excluding referenced objects
./deploy-git.sh delete-item  "${request_options[@]}" --folder=/TestRepo --change=CH-TestRepo-01 --no-references

...