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)

# get credentials
./deploy-git.sh get-credentials    "${request_options[@]}"

# store credentials
./deploy-git.sh store-credentials  "${request_options[@]}" --server=github.com --user-account=community \
                                                           --user-name="Community" --user-mail="community@sos-berlin.com" \
                                                           --user-private-key=/var/sos-berlin.com/js7/joc/resources/joc/repositories/private/sos-community.rsa

# delete credentials
./deploy-git.sh delete-credentials "${request_options[@]}" --server=github.com

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 related cmdlets can be found in PowerShell CLI 2.0 - Cmdlets - Git Repository Integration.

...