Unable to Remove Template from Pipeline and Unable to Delete Pipeline

1,000 views
Skip to first unread message

Joshua Davis

unread,
Oct 22, 2014, 4:32:01 PM10/22/14
to go...@googlegroups.com
I'm pretty sure I posted this but I don't see it showing up now 30 minutes later.  Sorry if it gets duplicated.


I created a pipeline template for a lot of our common build pipelines (we have a lot of them).  So I have about 8 different pipelines hooked up to the same template.  Now I want to remove the template and create some custom stages (potentially creating a new template) but it seems "Once you go templates, you can never go back."  I can't disable the template.  Is this by design? (attached 'Disable_Template_Error').

So I decided I would just delete the offending pipeline and start over, but when I navigate to the admin tab for the pipelines, some of them I can delete and some of them I can't.  I'm an admin so I should have full control, right?  Also, most of the pipelines are ones that I created.  What gives?  (attached 'Pipeline_Delete_Error').

I was able to unblock myself by manually modifying the config xml to remove the template and adding a dummy stage that I can later modify, but this is *super* painful.  Am I missing something obvious?

I am on Go Version: 14.2.0(377-d8a2866d6af85e)
Disable_Template_Error.png
Pipeline_Delete_Error.png

srinivas upadhya

unread,
Oct 22, 2014, 9:36:28 PM10/22/14
to Joshua Davis, go...@googlegroups.com
On Thu, Oct 23, 2014 at 2:01 AM, Joshua Davis <josh.k...@gmail.com> wrote:
I'm pretty sure I posted this but I don't see it showing up now 30 minutes later.  Sorry if it gets duplicated.


I created a pipeline template for a lot of our common build pipelines (we have a lot of them).  So I have about 8 different pipelines hooked up to the same template.  Now I want to remove the template and create some custom stages (potentially creating a new template) but it seems "Once you go templates, you can never go back."  I can't disable the template.  Is this by design? (attached 'Disable_Template_Error').

​There is a missing feature here - "Inline template". So if a pipeline is using a template but you want to now edit it but not the template - you must be able to inline it i.e. to make it a normal pipeline with stages etc. & no template.​ Should be easy enough for a developer to pick this up. Mind putting in a PR?

 
So I decided I would just delete the offending pipeline and start over, but when I navigate to the admin tab for the pipelines, some of them I can delete and some of them I can't.  I'm an admin so I should have full control, right?  Also, most of the pipelines are ones that I created.  What gives?  (attached 'Pipeline_Delete_Error').

​You are unable to delete the pipeline because there is some downstream pipeline depending on this pipeline. So if any pipeline depends on a pipeline you cannot delete the upstream pipeline without deleting the dependency.​ "Thats a feature not a bug"!

 
I was able to unblock myself by manually modifying the config xml to remove the template and adding a dummy stage that I can later modify, but this is *super* painful.  Am I missing something obvious?

​Currently Config XML editing is the only way to remove template.

 
I am on Go Version: 14.2.0(377-d8a2866d6af85e)

--
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 go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aravind Reddy

unread,
Nov 23, 2014, 7:22:32 PM11/23/14
to go...@googlegroups.com, josh.k...@gmail.com
I am in the same boat. Any idea when template inline feature will be implemented? Do you want me to submit a request?

srinivas upadhya

unread,
Nov 24, 2014, 11:09:36 PM11/24/14
to go...@googlegroups.com, josh.k...@gmail.com
I implemented this functionality in this PR. Hopefully it will go in next release.

Aravind Reddy

unread,
Nov 26, 2014, 7:01:36 PM11/26/14
to go...@googlegroups.com, josh.k...@gmail.com
Thanks
Reply all
Reply to author
Forward
0 new messages