diff --git a/orbiter_translations/__init__.py b/orbiter_translations/__init__.py index fc44013..2546acc 100644 --- a/orbiter_translations/__init__.py +++ b/orbiter_translations/__init__.py @@ -1,3 +1,3 @@ -__version__ = "0.2.3-1" +__version__ = "0.3.0" version = __version__ diff --git a/orbiter_translations/jenkins/json_demo.py b/orbiter_translations/jenkins/json_demo.py index 69a462d..cb2e59d 100644 --- a/orbiter_translations/jenkins/json_demo.py +++ b/orbiter_translations/jenkins/json_demo.py @@ -3,6 +3,14 @@ Jenkins provides a nifty API in the [pipeline-model-definition-plugin](https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/EXTENDING.md#conversion-to-json-representation-from-jenkinsfile). This API can convert a Jenkins Pipeline script (Groovy) to a JSON schema. Users can leverage this API to convert Jenkins Pipeline to a JSON structure. +Sample cURL: +``` +curl --location '/pipeline-model-converter/toJson' \ + --header 'Content-Type: application/x-www-form-urlencoded' \ + --header 'Cookie: ' \ + --data-urlencode 'jenkinsfile=' +``` + ```pycon >>> dags = translation_ruleset.test(input_value=''' ... {