jcasc-validator

module
v0.0.0-...-61269b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0

README

jcasc-validator

A simple tool to validate the generated jcasc configuration against a JCASC schema.

To run with examples

Download/Fork this repo and build the binary.

make build

Run the validator against the provided test resources

./build/jcasc-validator validate --schema-location test-resources/schema.json --template-location  test-resources/jcasc-config.yaml

To run the validator against a templated configfile, you need to template your config first some the validator has something to parse:

helm template <CHART_NAME> --output-dir generated

The JCASC config will be in the following location:

generated/<CHART_NAME>/charts/jenkins/templates/jcasc-config.yaml

To run this against a running Jenkins Server, you can use:

./build/jcasc-validator --jenkins-location http://my.jenkins.com --template-location ...

Directories

Path Synopsis
cmd
pkg
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL