It does not seem to be possible to change the name of an existing pipeline anywhere in GoCD. As simple as it sounds, is there any way to rename a GoCD pipeline that doesn't require a long series of actions in the UI?
The only way I was able to rename a pipeline is to clone it under a new name and then delete the old one. But deleting a pipeline also isn't straight-forward because is not possible to remove a pipeline that still belongs to some environment. Therefore, I first had to remove the pipeline from all environments and only then I was able to delete it.
There are some similar discussions about renaming pipelines here and there but since they are like five years old I thought a simple pipeline rename must somehow be supported in the meantime...
Once the GoCD agent has been installed and pointed at your GoCD server, go to the Agents tab on the GoCD dashboard. You should see something like this: Note that the hostname is as reported by the agent, and the IP address is as reported by the server. To add the agent to the cloud, click “Enable”.
GoCD can store pipeline definitions in a source code repository (either in your application's repository, or in a separate repository). This way, you can keep your pipeline definitions out of GoCD and under version control, and manage them externally.
You can add variables to an environment by editing the configuration of the environment. Click on the name of the environment to edit configuration. You specify variables on an environment in the Config XML by adding an < environmentvariables > section to the environment definition.
You'll have to change the pipeline name inside the Config XML. To get there, go to: Admin -> Config XML. You'll need to change this in two places on the config.
You can use gocd api call https://api.gocd.org/17.3.0/#edit-pipeline-config and just
`$ curl 'https://ci.example.com/go/api/admin/pipelines/my_pipeline' \
-u 'username:password' \
-H 'Accept: application/vnd.go.cd.v3+json' \
-H 'Content-Type: application/json' \
-H 'If-Match: "e064ca0fe5d8a39602e19666454b8d77"' \
-X PUT \
-d '{
"name": "my_pipeline",
}'`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With