You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Introduction

Continuous Integration / Continuous Delivery (CI/CD) is a supported method for JS7 - Rollout of Scheduling Objects.

  • The scenario is described with the JS7 - Git Repository Interface.
  • CI/CD includes to perform the following steps
    • in a test environment
      • to set up a local Git repository that is used by JOC Cockpit.
    • in a prod environment
      • to set up a local Git repository that is used by JOC Cockpit.

The steps to take for setup of a local Git repository

  • are not necessarily related to use of PowerShell as any Git client can be used. The following explanations are provided as examples.
  • are performed similarly for test and prod environments.

Set up a local Git Repository

Location

Directories for Git repositories are created in the JOC Cockpit configuration directory:

  • for Unix to the directories
    • /var/sos-berlin.com/js7/joc/jetty_base/resources/joc/repositories/local
    • /var/sos-berlin.com/js7/joc/jetty_base/resources/joc/repositories/rollout
  • for Windows to the directories
    • C:\ProgramData\sos-berlin.com\js7\joc\jetty_base\resources\joc\repositories\local
    • C:\ProgramData\sos-berlin.com\js7\joc\jetty_base\resources\joc\repositories\rollout

The local and rollout sub-directories are used to hold the respective repository types, see JS7 - Git Repository Interface.

Directories can be different from the above examples as they are specified during installation of JOC Cockpit.

Setup

The below example assumes that 

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

There are a number of ways how to achieve this:

Example how to set up a local Git repository
# Find 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




  • No labels