1.0.0 • Published 4 years ago

cli2jenkins v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

cli2jenkins - CLI script to Jenkins converter

Creates jenkins jobs for running CLI scripts.

Usage

  1. Install a Jenkins server locally, enable suggested plugins.
  2. Navigate to the directory in which you want to run a CLI command.
  3. Execute the following script in a terminal with elevated permissions:
    npx cli2jenkins CLI_COMMAND --jenkins-dir=PATH [--schema-detector=DETECTOR]
    where CLI_COMMAND is the command that you want to run in Jenkins, PATH is the path to the Jenkins data root directory, and DETECTOR is the way to request and parse the CLI support arguments schema (currently, only symfony detector is supported - contribute to the project to add more).
  4. The script will create/update a folder in Jenkins with jobs for each available command variation of the desired script execution.
  5. Restart the Jenkins server to apply the changes made by the script.

You can also run npx cli2jenkins --help for usage options.