Versions Compared

Key

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

...

Code Block
languagebash
titleExample for Deploying 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)

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

# add items to repository
./deploy-git.sh add           "${request_options[@]}" --folder=/TestRepo

# commit changes to repository and keep commit hash
hash=$(./deploy-git.sh commit      "${request_options[@]}" --folder=/TestRepo --message="v.1.23.34")

# pull changes from remote repository
./deploy-git.sh pull          "${request_options[@]}" --folder=/TestRepo

# push changes to remote repository
./deploy-git.sh push          "${request_options[@]}" --folder=/TestRepo

...