Versions Compared

Key

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

...

  • For JS7 - Rollout of Scheduling Objects JOC , the JOC Cockpit can be used to interface with Git repositories in order to store and to rollout scheduling objects such as workflows and jobs.
    • JS7 supports the use of Git compliant servers to manage remote repositories such as GitLabGitHub.
    • JS7 makes use of a Git CLI Client that has to be provided by the user.
  • Scheduling objects can be versioned (tagged) with Git and can be rolled out to different JS7 environments via Git. This allows to create and to test the creation and testing of workflows in a development environment and to perform and  rollouts to a production environment by use of to be performed using a Git repository.
  • A connection to a Git repository is considered an additional option to manage for managing versions and rollouts of JS7 scheduling objects.
  • For operations available from the JOC Cockpit GUI see JS7 - Inventory Git Integration. For automation see JS7 - How to rollout from test to prod environments in a CI / CD pipeline.
  • The Git Repository Interface is made available with the following JS7 releases:
    • Display feature availability
      StartingFromRelease2.3.0
       
    • Release 2.3.0: Make JS7 objects available from the file system to allow use of external Git tools.
      • Jira
        serverSOS JIRA
        columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
        serverId6dc67751-9d67-34cd-985b-194a8cdc9602
        keyJOC-1144
    • Release 2.4.0: Offer the functionality from Enable JOC Cockpit to manage JS7 objects with Git.
      • Jira
        serverSOS JIRA
        columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
        serverId6dc67751-9d67-34cd-985b-194a8cdc9602
        keyJOC-1213
      • Jira
        serverSOS JIRA
        columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
        serverId6dc67751-9d67-34cd-985b-194a8cdc9602
        keyJOC-1214
      • Jira
        serverSOS JIRA
        columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
        serverId6dc67751-9d67-34cd-985b-194a8cdc9602
        keyJOC-1215

...

Anchor
configuration_object_mappings
configuration_object_mappings
Scheduling Objects

JS7 handles the below separation of Rollout Objects and Local Objects as described below. JOC Cockpit offers to configure per object type which category is appliedallows configuration of the category applied for individual object types.

  • Jira
    serverSOS JIRA
    columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
    serverId6dc67751-9d67-34cd-985b-194a8cdc9602
    keyJOC-1216
  • Jira
    serverSOS JIRA
    columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
    serverId6dc67751-9d67-34cd-985b-194a8cdc9602
    keyJOC-1217

...

JS7 scheduling object types that are independent from of a specific environment (dev, test, prod) and that can be rolled out across environments include:

  • Workflows
  • Resource Locks
  • File Order Sources
  • Notice Boards
  • Script Includes

Such objects can be managed with JS7 in a way that allows to re-use of the objects - without any changes - across rollout environments such as dev, test, prod.

...

The following scheduling object types typically hold values that are specific for an individual environment (dev, test, prod) and are therefore usually are added to a separate repository. Such objects are not rolled out across environments.

...

The JS7 inventory is organized by with folders.

  • Folders hold scheduling objects such as workflows etc. and any level of sub-folders.
  • Folders are the basic unit for JS7 - Default Roles and Permissions, for . For example, users can be granted access only to specific folders only.
  • Folders allow to perform bulk operations such as to deploydeploying, to releasereleasing, to remove and to rename removing and the renaming of scheduling objects to be performed.

Folders can be mapped to Git repositories managed by the same or by different Git servers Servers like this:


Flowchart
USER1 [label="User: 1",fillcolor="lightskyblue",fontname="Arial",fontsize="10pt"]
USER2 [label="User: 2",fillcolor="lightskyblue",fontname="Arial",fontsize="10pt"]
USER3 [label="User: 3",fillcolor="lightskyblue",fontname="Arial",fontsize="10pt"]

FOLDER1 [label="Folder: 1",fillcolor="white",fontname="Arial",fontsize="10pt"]
FOLDER1a [label="Sub-folder: 1.1",fillcolor="white",fontname="Arial",fontsize="10pt"]
FOLDER1b [label="Sub-folder: 1.2",fillcolor="white",fontname="Arial",fontsize="10pt"]
FOLDER2 [label="Folder: 2",fillcolor="white",fontname="Arial",fontsize="10pt"]
FOLDER3 [label="Folder: 3",fillcolor="white",fontname="Arial",fontsize="10pt"]

REPOSITORY1L [shape="ellipse",label="Repository: 1-local\njob resources etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]
REPOSITORY1R [shape="ellipse",label="Repository: 1-rollout\nworkflows etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]
REPOSITORY2L [shape="ellipse",label="Repository: 2-local\njob resources etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]
REPOSITORY2R [shape="ellipse",label="Repository: 2-rollout\nworkflows etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]
REPOSITORY3L [shape="ellipse",label="Repository: 3-local\njob resources etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]
REPOSITORY3R [shape="ellipse",label="Repository: 3-rollout\nworkflows etc.",fillcolor="darkolivegreen1",fontname="Arial",fontsize="10pt"]

USER1 -> FOLDER1 [label="  can access  ",fontname="Arial",fontsize="10pt"]
USER2 -> FOLDER1 [label="  can access  ",fontname="Arial",fontsize="10pt"]
USER2 -> FOLDER2 [label="  can access  ",fontname="Arial",fontsize="10pt"]
USER3 -> FOLDER3 [label="  can access  ",fontname="Arial",fontsize="10pt"]

FOLDER1 -> FOLDER1a [label="  includes  ",fontname="Arial",fontsize="10pt"]
FOLDER1 -> FOLDER1b [label="  includes  ",fontname="Arial",fontsize="10pt"]
FOLDER1a -> REPOSITORY1L [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER1a -> REPOSITORY1R [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER1b -> REPOSITORY1L [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER1b -> REPOSITORY1R [label="  maps to  ",fontname="Arial",fontsize="10pt"]

FOLDER2 -> REPOSITORY2L [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER2 -> REPOSITORY2R [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER3 -> REPOSITORY3L [label="  maps to  ",fontname="Arial",fontsize="10pt"]
FOLDER3 -> REPOSITORY3R [label="  maps to  ",fontname="Arial",fontsize="10pt"]

...

The mapping of folder objects to repositories implies:

  • user access:
    • users with JS7 access permissions to manage folders and to access the Git repository can manage scheduling objects in the JOC Cockpit and can commit, push, pull scheduling objects to/from Git,
    • users with JS7 access permissions to manage folders but without access to the Git repository can manage scheduling objects in the JOC Cockpit,
    • users with JS7 access permissions to view folders do not require Git access.
  • folder usage:
    • if a single Git repository should be used then all folders have to be available from a single top-level folder,
    • for use with a number of Git repositories each top-level folder maps to a different repository,
    • folders can remain without Git integration for local management and deployment.

JOC Cockpit maps top-level folders to Git repositories and stores the respective relevant Git repository URL for each folder in its inventory.

...

  • Security level LOW maps to use of a single Git account used by all users. Credentials are stored with the root account's profile in the JS7 database.
  • Security level MEDIUM maps to use of an individual Git account per user. Credentials are stored with each user account's profile in the JS7 database.
  • Security level HIGH does not allow to store storage of Git credentials with JOC Cockpit. Operations on the remote Git repository have to be performed with tools external to JOC Cockpit such as Git Extensions.

The following credentials are used managed depending on the Git serverServer's authentication method:

  • Git Server
    • host(:port) of the remote Git Server
  • Git Accountgit_account
    • account that is used to connect to a Git server
    git_
  • User name
    • name used as author name e.g. for commits
  • E-Mail
    • mail address used as author mail address, for example for commits
  • password
    • the user's password for HTTP(S) Git access
  • git_private key
    • the path to the user's private key file for SSH Git access
  • Access Tokengit_access_token
    • the access token for for HTTP(S) Git access

If repositories are used from a number of Git Servers, that require different sets of user credentials, then this can be managed within one JOC Cockpit account, Only one set of credentials per Git Server is used.

If repositories are used from the same Git Servers a number of Git servers that require different sets of user credentials then separate user accounts in JOC Cockpit have to be used.

...

  • The JS7 - REST Web Service API executes a set of Git operations by use of using the Git Command Line Client.
  • Any All operations to add scheduling objects to a repository, to stage, commit, push, pull and to merge objects are available from the JS7 REST Web Service API.
  • The JOC Cockpit offers the provides a user interface for respective Git operations.
  • Users are free to use additional tools such as Git Extensions to manage repositories.

...

  • The local repository for a JS7 top-level folder is created when a user performs the checkout or  clone operation for the Git repository via the JOC Cockpit.
  • The local repository is persistent and is updated from the JOC Cockpit database (store operation) and from the remote Git repository (pull operation).
  • The remote Git repository is updated from the local repository by use of the push operation.
  • The JS7 - Cleanup Service removes any local repositories if the JS7 top-level folder no longer exists, i.e. if a top-level folder is has been dropped from the JOC Cockpit.

The following REST Web Service API operations are available:

  • /inventory/repository/git-/checkout
    • checks out a specific branch or tag from the Git repository to the local repository
  • /inventory/repository/git-/clone
    • initially clones a Git repository to a local repository
  • /inventory/repository/git-/add
    • adds or updates (stagestages) a all new or modified scheduling object on the file system to the local repository
  • git-reset
    • un-stages a modification from the local repository, the modified file in the file system remains unchanged and still contains the modification
  • git-delete
    • removes an already added scheduling object from the local repository
  • /inventory/repository/git/commit
    • commits all
    git-commit
    • commits newly staged scheduling objects to a local repository
  • /inventory/repository/git-/push
    • pushes changes from the local repository to the remote Git repository

...

Versioning of JS7 scheduling objects is performed by use of using the tagging capabilities of Git. 

...

The following operations are available:

  • git-tag
    • JS7 REST Web Service API not implemented yet
    • tags a commit with a version label
  • /inventory/repository/git-/push
    • see above

Rollout

Rollout between JS7 instances is performed by use of using the Git functionality. The JS7 REST Web Service API manages the processes for checkout and cloning.

The following operations are available:

  • /inventory/repository/git-/checkout
    • checks out a specific branch or tag from on the remote repository to the local repository
  • /inventory/repository/git-/clone
    • initially clones a remote repository to a local repository
  • /inventory/repository/git-/pull
    • pulls recent changes from the remote repository to the local repository

...

The synchronization of scheduling objects between the JOC Cockpit database and the local repositories are is managed by the JS7 REST Web Service API and are is available from the JOC Cockpit GUI.

The following JS7 REST Web Service operations are available:

  • ./inventory/repository/read
    • reads the file tree of the local repository file system folder and updates the JOC Cockpit database
  • ./inventory/repository/store
    • stores a set of scheduling objects from the JOC Cockpit database to the file system folder of the local repository
  • ./inventory/repository/delete
    • deletes a set of scheduling objects from the file system folder of the local repository
  • ./inventory/repository/update
    • adds or updates a set of scheduling objects in the JOC Cockpit database with scheduling objects from the local repository's file system folder

...

  • Architecture
    • A dedicated JOC Cockpit instance is used with Controller and Agents for each rollout environment such as dev, test, prod.
    • A set of two Git repositories are is used per folder and per rollout environment:
      • one repository holding local objects such as job resources that are specific for an environment,
      • one repository holding rollout objects such as workflows that are rolled out across environments.
    • The JOC Cockpit database holds the JS7 scheduling objects:

      • each JOC Cockpit instance is connected to its own database,
      • each repository is mapped to an individual JOC Cockpit instance,
      • the database can be updated from a local repository.
  • Users
    • All users act in the same JOC Cockpit instance of the respective relevant rollout environment that is a single client to the Git server.
    • Changes to the Git repositories are performed on behalf of the users' individual accounts and are added to the remote repositories.
  • Rollout
    • Deployments are performed from a single source (JOC Cockpit) to each Controller and Agents per rollout environment (dev, test, prod).
    • Rollouts are performed by copying rollout objects from a local Git repository to a remote Git repository of the target rollout environment (dev => test => prod).

...

  • Operations similarly available from JOC Cockpit:
    • Push changes from a local repository to a remote repository.
    • Pull changes from a remote repository to a local repository.
    • Tag changes (commits) for versioning purposes in a remote repository.
  • Operations not available from JOC Cockpit:
    • Manage branches in a remote repository.
    • Checkout branches to a local repository.

...

  • Job Development in a dev environment 
    • A number of scheduling objects, e.g. workflows, are created or changed by a job developer.
    • On completion of the change the job developer deploys the workflows to Controller and Agents to perform functional tests in the dev environment.
    • With functional tests being successful the developer:
      • stores changes of to workflows and related rollout objects to the local dev-rollout repository, commits changes and pushes changes to the remote dev-rollout repository.
      • optionally stores changes of local objects such as job resources to the local dev-local repository, commits changes and pushes changes to the remote dev-local repository.
  • Integration Testing in a test environment:
    • A tester with access to the job developer's remote dev-rollout repository adopts the current change:
      • The tester performs a checkout operation of the remote dev-rollout repository to a local dev-rollout repository.
      • The tester is offered the list of recent commits to the dev-rollout repository. From this list the tester filters the commits related to the change by date, author or message the commits related to the change. Typically the change is assigned an identifier (Issue Key or similar) that is available with the messages of any commits related to this change.
      • From the selected commits the tester receives the list of changed files and launches the operation to copy the files in this list from the local dev-rollout repository to the local test-rollout repository.
      • The tester updates the JOC Cockpit instance from the local test-rollout repository.
    • The tester adjusts local objects such as job resources as required by the change.
    • The tester deploys changed workflows and related local objects to Controller and Agents to perform integration testing.
    • On completion of integration tests with changes being approved the tester:
      • optionally tags the latest commit in the remote test-rollout repository with a label, e.g. v2.3-approved.
        • Should the tester modify workflows then the tester commits changes to the local test-rollout repository and pushes changes to the remote test-rollout repository before tagging.
        • Some users might deny object modifications to be being performed in a test environment and instead prefer to apply modifications in dev environments only.
      • optionally stores changes of local objects to the local test-local repository, commits changes and pushes changes to the remote test-local repository.
  • Production Rollout to a prod environment
    • An operator with access to the tester's test-rollout repository adopts the current change:
      • The operator performs a checkout operation of the remote test-rollout repository to a local test-rollout repository. Optionally the checkout is performed for the tag v2.3-approved should the tester have tagged the change accordingly.
      • The operator is offered the list of recent commits to the test-rollout repository. From this list the operator filters the commits related to the change by date, author or message the commits related to the change. Typically the change is assigned an identifier (Issue Key or similar) that is available with the messages of any commits related to this change.
      • From the selected commits the operator receives the list of changed files and launches the operation to copy the files in this list from the local test-rollout repository to the local prod-rollout repository.
      • The operator updates the JOC Cockpit instance from the local prod-rollout repository.
    • The operator adjusts local objects such as job resources as required by the change. 
    • The operator deploys changed workflows and local objects to the Controller and Agents for production use.
    • On completion of deployment the operator:
      • stores changes to the local prod-rollout repository, commits changes and pushes changes to the remote prod-rollout repository.
      • optionally tags changes in the remote prod-rollout repository with a label, e.g. v2.3.
      • optionally stores changes of to local objects to the local prod-local repository, commits changes and pushes changes to the remote prod-local repository.

...

Each environment dev, test, prod makes use of an individual JS7 instance using JOC Cockpit and database, Controller and Agents. Any operations are performed by the JS7 REST Web Service API.

  • Job Development and Integration Testing are explained from in the above use case described above: Lifecycle Support for Workflow Changes.
  • Production Rollout
    • Checkout remote test-rollout repository to local test-rollout repository, optionally based on use of a tag such as v2.3-approved.
    • Filter commits relevant to a change by an identifier available from the commit message and create the list of files affected by resulting commits.
    • Copy files in this list from the local test-rollout repository to the local prod-rollout repository.
    • Update the JOC Cockpit instance from the local prod-rollout repository.
    • Deploy changed workflows to Controller and Agents for production use.
    • Store changes to the local prod-rollout repository, commit changes and push changes to the remote prod-rollout repository.
    • optionally tags Optionally tag changes in the remote prod-rollout repository with a label, e.g. v2.3.

...

...