-
Notifications
You must be signed in to change notification settings - Fork 3
Pipeline Interpreter
The pipeline interpreter is an utility tool developed by SmartCLIDE in an attempt to ease the migration of established projects that used an existing Continuous Deployment tool like Jenkins to the newer environment proposed by SmartCLIDE based on GitLab CI.
The utility is invoked from the command palette within the IDE by searching for “convert”. The full command label is “SmartCLIDE: Convert Jenkins pipeline…”.
After launch, the utility will search for suitable files in the opened directory, and let the user choose the one to be converted.
The utility will then communicate with a backend service to actually carry out the conversion, and will generate the output file in the same location as the selected input file. The generated output file will be automatically opened in a new editor tab as soon as it is available.
It must be noted that due to the wildly differing approaches taken by the CD tools and the broad approach offered by the Jenkins ecosystem, there is no possibility of providing a reliable and 100% compatible conversion service. So this utility tool will only provide a best-effort conversion of a Jenkins declarative pipeline. Scripted parts will most likely be left out of the end result or will generate a non-valid block in the converted result. It is highly recommended to start a GitLab CI pipeline from scratch or use one of the provided templates (https://docs.gitlab.com/ee/ci/examples/).
The source code for this functionality can be found in the following repositories: