Gitlab Schedule Duplicator is a user script that allows you easily duplicate, create, or update the Gitlab pipeline schedule.
- Install a user script manager:
- Install Tampermonkey extension for Chrome.
- Install Greasemonkey extension for Firefox.
- Install/Update the script:
- Click here to install from the raw file.
- Go to Greasy Fork - Gitlab Schedule Duplicator to install from Greasy Fork.
- Go to Gitlab and enjoy!
- Go to the pipeline page.
- Click the "Duplicate" button to duplicate the schedule. The schedule will be created with the same configuration as the current pipeline. Provide access token if the browser requests it. The access token needs to have the
api
scope. Click here to create a new access token.
Note: The dropdown option is extracted from the variable description of the CiConfig (aka. .gitlab-ci.yml
) file.
The description of the variable must be in the following format:
variables:
MY_VARIABLE:
value: "option1"
# The options are wrapped in square brackets and separated by commas (,). Must be at the beginning of the line.
description: "[option1, option2, option3] - description" # <- this is the description
Following options will be replaced by the corresponding values:
Text | Description |
---|---|
$glBranches() |
Returns all branches of current project |
$glBranches(:gitlabProjectId) |
Returns all branches of a project by Id |
| And that's it! Discover more features by yourself.
I'm open to any contributions. Feel free to open an issue or a pull request. Thank you! <3