Versions Compared

Key

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

...

  • The setup of a local repository is explained with in the following chapterssections.
  • Git access includes to authenticate authentication with a Git Server and to access accessing remote repositories , see as described in JS7 - How to set up Git Access.

The steps to set up a local Git repository can be applied manually from the JOC Cockpit or from a Git Client and they can be applied by use of the JS7 REST Web Service API.

...

Setup using JOC Cockpit

The steps to set for setting up a local Git repository are explained with in the JS7 - Inventory Git Integration, chapter: Clone Git Repository article.

...

The below example assumes that that:

  • a top-level folder Accounting is used in the JOC Cockpit inventory,
  • this folder is mapped to a sub-directory in the file system with the same name in the file system,
  • this folder is created when setting up the repository otherwise it will be created by the JOC Cockpit the first time that objects should are to be stored to the repository.

There are a number of ways how to achieve of achieving this with a Git Client:

Code Block
languagepowershell
titleExample how to set up a local Git repository
linenumberstrue
# Navigate to the repository sub-directory managed by JOC Cockpit
cd /var/sos-berlin.com/js7/joc/jetty_base/resources/joc/repositories/rollout/Accounting

# Run Git commands
git init
git branch -M main
git remote add origin git@github.com:sos-berlin/js7-demo-inventory-rollout-test.git
git push -u origin main

Automation with the JS7 REST Web Service API

Users who whish wish to automate the steps required to set up a local Git repository can use the following resources:

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

Display feature availability
StartingFromRelease2.3.0

The example below example assumes that that:

  • a top-level Accounting folder Accounting is used in the JOC Cockpit inventory:
    • the folder will be used if it exists,
    • the folder will be created if it doesn't exist.
  • the folder is mapped to a sub-directory with the same name in the file system,

...

...