cli2jenkins
v1.0.0
Published
Command line tool to create jenkins jobs for running CLI scripts
Downloads
1
Readme
cli2jenkins - CLI script to Jenkins converter
Creates jenkins jobs for running CLI scripts.
Usage
- Install a Jenkins server locally, enable suggested plugins.
- Navigate to the directory in which you want to run a CLI command.
- Execute the following script in a terminal with elevated permissions:
wherenpx cli2jenkins CLI_COMMAND --jenkins-dir=PATH [--schema-detector=DETECTOR]
CLI_COMMAND
is the command that you want to run in Jenkins,PATH
is the path to the Jenkins data root directory, andDETECTOR
is the way to request and parse the CLI support arguments schema (currently, onlysymfony
detector is supported - contribute to the project to add more). - The script will create/update a folder in Jenkins with jobs for each available command variation of the desired script execution.
- Restart the Jenkins server to apply the changes made by the script.
You can also run npx cli2jenkins --help
for usage options.