Versions Compared

Key

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

Table of Contents

Introduction

The js7-inventory-schemas repository holds the RAML source of for the JS7 JSON schemas used for the JS7 inventory objects.

Prerequisites

js7-inventory-schemas is a standard maven project and can be build built with maven. At the time of writing SOS uses maven version 3.3.9.

Clone Repository

Navigate to your desired destination folder and clone the repository from GitHub:

Code Block
languagebash
git clone https://github.com/sos-berlin/js7-inventory-schemas

Checkout

Checkout Tagged Version

Code Block
languagebash
titleRetrieve list of available tagged versions
git fetch --all --tags
Code Block
languagebash
titleCheckout a desired version to a local branch
git checkout tags/[desired version] -b [desired local branch name]
e.g.
git checkout tags/v2.0.0 -b release/v2.0.0

Checkout Latest Tagged Version

Determine the latest tagged version and store it to as a local variable.

Code Block
languagebash
titleRetrieve Latest Tagged Version
tag=$(git describe --tags `git rev-list --tags --max-count=1`)

Checkout the latest version using the previously stored variable to a local branch "latest" local branch using the variable you have previously stored.

Code Block
languagebash
titleCheckout Latest
git checkout $tag -b latest

Build

From the root of the project that you checked out call:

...