https://github.com/jmini/jbang-ci-test
CI Test with Jbang
https://github.com/jmini/jbang-ci-test
Last synced: about 2 months ago
JSON representation
CI Test with Jbang
- Host: GitHub
- URL: https://github.com/jmini/jbang-ci-test
- Owner: jmini
- Created: 2023-05-12T15:46:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T08:03:57.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T03:05:20.838Z (8 months ago)
- Language: PowerShell
- Size: 4.93 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
== jbang-ci-test
Test project to run a Jbang script xref:HelloWorld.java[`HelloWorld.java`] inside a GitLab CI pipeline.
Locally the script can be executed with:
[source]
----
./jbang run HelloWorld.java
----In GitLab CI, the build and the execute jobs are separated and allow to compile (always) or to execute (manual trigger) the script.
Chache folders (`JBANG_CACHE_DIR` and `JBANG_REPO`) are explicitly set up in order to be cached by GitLab.
The variable `JBANG_OPTS` can be modified in order to add options.
Setting the value to `--verbose` allows to get more output from Jbang.