Versions Compared

Key

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

...

Automation using the Unix Shell CLI

The JS7 - Unix Shell CLI for Git Deployment offers simplified access to the REST Web Service API for scripting purposes.

Display feature availability
StartingFromRelease2.7.1

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

# clone repository
./deploy-git.sh clone    "${request_options[@]}" --folder=/TestRepo --remote-url="git@github.com:sos-berlin/js7-demo-inventory-rollout-test"

# optionally checkout repository if a specific branch should be used
./deploy-git.sh checkout "${request_options[@]}" --folder=/TestRepo --branch=main

Automation using the JS7 PowerShell Module

The JS7 - PowerShell Module offers simplified access to the REST Web Service API for scripting purposes.

Execution of the PowerShell examples with the -debug option might prove to be instructive for logging REST API calls.

The documentation for the relevant cmdlets is available in the PowerShell CLI 2.0 - Cmdlets - Git Repository Integration article.

...