Hi Julia, No the pipeline config APIs for update/delete does not work for pipeline which comes from a config-repository. You will have to update your script to update the repo as needed.
Hope this helps. Thanks Kritika On Thursday, August 6, 2020 at 2:37:27 PM UTC+5:30 [email protected] wrote: > Hi there, > > we have pipelines defined via config repositories and we have a ruby > script triggering API calls on demand to reconfigure some parameters and > environment variables. Can this even work with config repositories? I'm > wondering now, because we are getting an error when editing some parameters > via a call to https://api.gocd.org/current/#edit-pipeline-config. Our > server is 20.2.0 currently and the call returns: > > put: https://gocdserver:8154/go/api/admin/pipelines/mypipeline > Something did not work, the pipelines may remain in partially wrong state: > 422 Unprocessable Entity > Detail: { > "message" : "Can not operate on pipeline 'mypipeline' as it is defined > remotely in 'https://<svn repo URL here> at 9580'." > } > > Would be nice if some can give us an quick answer, before we spend to much > time on a script which will not work this way anyways. Thanks in advance! > > Regards > Julia > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/df57c174-9527-453b-b6f7-a2ec6e57f67an%40googlegroups.com.
