How to update multiple spinnaker pipelines at a time using spin-cli ?
- Connect to spinnaker and automatically download pipeline json files
- Note: If run-time argument passed for
config.yaml
file, then it will GET/UPDATE for only pipelines present in config.yaml file
- Note: If run-time argument passed for
- Update files in local machine
- Upload files again to spinnaker to update pipelines
- Install spin-cli: https://spinnaker.io/setup/spin/
- Update
gate_api_url
endpoint as require. I am using localhost now and my config.yaml looks like below without auth key.
# path: cat ~/.spin/config.yaml
gate:
endpoint: http://localhost:9000
- Install
python3
in your local machine
python3 --version
- Clone this repo
- Navigate to the downloaded folder in terminal or command prompt
- To know about required run-time arguments
python3 spin-cli.py help
- To get
ALL
spinnaker pipelines to your local machine. Folderspin-existing-pipelines
will get create upon successful execution.
python3 spin-cli.py spin-get-all-pipelines
-
Update spinnaker pipelines config field in files as required and save it
-
To update
ALL
pipelines into spinnaker application
python3 spin-cli.py spin-update-all-pipelines
-
Update
config.yaml
present in root folder with application & pipeline details -
To get above
step-1
config defined pipelines to your local machine. Folderspin-existing-pipelines
will get create upon successful execution.
python3 spin-cli.py spin-get-config-only-pipelines
-
Update spinnaker pipelines config field in files as required and save it
-
To update as per above
step-2
config defined pipelines into spinnaker application
python3 spin-cli.py spin-update-config-only-pipelines