Skip to content

Commit

Permalink
Fix: Updated version (#20)
Browse files Browse the repository at this point in the history
* Fix: Updated version

* Update orbiter_translations/__init__.py

Co-authored-by: fritz-astronomer <[email protected]>
Signed-off-by: atulya-astronomer <[email protected]>

* Changed to a minor version

* Added sample cURL for getting JSON from Jenkinsfile

---------

Signed-off-by: atulya-astronomer <[email protected]>
Co-authored-by: fritz-astronomer <[email protected]>
  • Loading branch information
atulya-astronomer and fritz-astronomer authored Oct 18, 2024
1 parent 3b03c35 commit d7d6bda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion orbiter_translations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.2.3-1"
__version__ = "0.3.0"

version = __version__
8 changes: 8 additions & 0 deletions orbiter_translations/jenkins/json_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<jenkins-base-url>/pipeline-model-converter/toJson' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: <authentication-cookie(s)>' \
--data-urlencode 'jenkinsfile=<jenkinsfile>'
```
```pycon
>>> dags = translation_ruleset.test(input_value='''
... {
Expand Down

0 comments on commit d7d6bda

Please sign in to comment.