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.yamlfile, 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_urlendpoint 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
python3in 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
ALLspinnaker pipelines to your local machine. Folderspin-existing-pipelineswill 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
ALLpipelines into spinnaker application
python3 spin-cli.py spin-update-all-pipelines
-
Update
config.yamlpresent in root folder with application & pipeline details -
To get above
step-1config defined pipelines to your local machine. Folderspin-existing-pipelineswill 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-2config defined pipelines into spinnaker application
python3 spin-cli.py spin-update-config-only-pipelines

