HI Ashwanth, Do we have any API open which updates the Project path of the material ? I have searched in the GOCD API section but i can't find it.
Request you to please help on this. Regards, Nitesh On Sun, Jan 10, 2021 at 1:41 PM Nitesh Kumar <[email protected]> wrote: > Thanks, > > Yes, i am planning to automate and to update materials before executing my > pipes. > > i have gone through the APIs but i can't find any endpoint which updates > the pipeline, do we have any? > > On Sun, Jan 10, 2021 at 12:52 PM 'Ashwanth Kumar' via go-cd < > [email protected]> wrote: > >> You can check the GoCD APIs online at https://api.gocd.org/ (against the >> corresponding version of your GoCD Server). >> >> If you're planning to automate your way through, >> https://github.com/gocd-contrib/gomatic might be of your interest. >> >> >> On Sun, Jan 10, 2021 at 12:38 PM Nitesh Kumar <[email protected]> >> wrote: >> >>> Thanks, >>> >>> So, do we have any endpoint which updates the pipeline ? >>> >>> Regards, Nitesh >>> >>> On Sat, Jan 9, 2021 at 3:24 AM Marques Lee <[email protected]> >>> wrote: >>> >>>> When the server needs to check a material in the flyweight directory to >>>> determine whether it should schedule pipelines, it doesn’t bind environment >>>> variables, most likely because environment variables are scoped to a single >>>> pipeline. On the other hand, materials aren’t necessarily unique to a >>>> pipeline. The same material can be used in other pipelines and contexts >>>> (eg, config repo) so the material service wouldn’t have defined behavior >>>> for other uses to bind environment variables, which are scoped to a single >>>> pipeline. At least that’s what I am inferring off the top of my head >>>> without digging into the code too much. >>>> >>>> So, unfortunately, there’s no solution that is both quick and long-term >>>> that I’m an think of. The quick one is bulk editing your config xml. The >>>> long term is reimplementing in pipelines as code so that you can apply >>>> changes to multiple pipeline config a very easily. >>>> >>>> On Fri, Jan 8, 2021 at 11:39 AM Nitesh Kumar <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> Thanks, I can editing config.xml but doing everytime for each change >>>>> number would be really horrible 😞 >>>>> >>>>> Any other ideas? >>>>> >>>>> It looks a wiered case that we can't use env variables in materials >>>>> even my pipeline does exist in the same environment >>>>> >>>>> On Fri, 8 Jan 2021, 21:38 Marques Lee, <[email protected]> wrote: >>>>> >>>>>> But, since that's a lot of work and you need a solution in the >>>>>> immediate, I think your *only* option is to bulk-edit the config XML >>>>>> and do this with a good text editor. >>>>>> >>>>>> On Friday, January 8, 2021 at 8:05:51 AM UTC-8 Marques Lee wrote: >>>>>> >>>>>>> Actually, nevermind on the environment variable - I don't think you >>>>>>> can use those in materials, and you're wanting to use it there it seems. >>>>>>> Using pipelines as code would really be the best option, IMO. >>>>>>> >>>>>>> On Friday, January 8, 2021 at 7:57:11 AM UTC-8 Marques Lee wrote: >>>>>>> >>>>>>>> I would just do what Ashwanth suggested with Environments: put your >>>>>>>> pipelines (and agents!) in the same environment and then you can apply >>>>>>>> these (e.g., environment variables) globally to all pipelines in that >>>>>>>> environment. >>>>>>>> >>>>>>>> On Friday, January 8, 2021 at 6:37:26 AM UTC-8 [email protected] >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Yes, these pipeline already exists. >>>>>>>>> >>>>>>>>> but updating the config XML every time when we will have new >>>>>>>>> change from client will be risky. >>>>>>>>> >>>>>>>>> request you to please help another way around ? >>>>>>>>> >>>>>>>>> On Friday, January 8, 2021 at 7:05:47 PM UTC+5:30 >>>>>>>>> [email protected] wrote: >>>>>>>>> >>>>>>>>>> IMHO, Environment in GoCD helps in grouping pipelines to provide >>>>>>>>>> environment related settings (via environment variables) or agents >>>>>>>>>> (that >>>>>>>>>> have environment specific access / configurations). A variable used >>>>>>>>>> in the >>>>>>>>>> pipeline's material isn't specific to an environment and also >>>>>>>>>> Parameters >>>>>>>>>> are specific to a pipeline. So much so, that when a pipeline is >>>>>>>>>> saved all >>>>>>>>>> the parameters that are referred within (either on config / jobs / >>>>>>>>>> stages) >>>>>>>>>> should be available else the config validation would fail and the new >>>>>>>>>> pipeline changes wouldn't get saved. >>>>>>>>>> >>>>>>>>>> For your current situation, I do have a few suggestions: >>>>>>>>>> 1. If you're creating the pipelines right now, I would recommend >>>>>>>>>> using the YAML / JSON DSL which would make your life easier. You can >>>>>>>>>> find >>>>>>>>>> and replace the values quickly. >>>>>>>>>> 2. If these 100s of pipelines already exist, During an off-peak >>>>>>>>>> time / with maintenance mode enabled -- You can import the config.xml >>>>>>>>>> locally and find-replace the material path and import the new config >>>>>>>>>> back >>>>>>>>>> as a one time migration. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Fri, Jan 8, 2021 at 6:45 PM [email protected] < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Thanks , >>>>>>>>>>> >>>>>>>>>>> but i can't see any option to set parameter global to the >>>>>>>>>>> environment , do we have any other option ? >>>>>>>>>>> >>>>>>>>>>> i have got 100 pipes, where having same TFS path but dynamic >>>>>>>>>>> change number, which needs to concatenated with TFS path , so we >>>>>>>>>>> want to >>>>>>>>>>> execute 100 pipes in one for different -different change number on >>>>>>>>>>> adhoc >>>>>>>>>>> basis. >>>>>>>>>>> >>>>>>>>>>> On Friday, January 8, 2021 at 6:32:24 PM UTC+5:30 >>>>>>>>>>> [email protected] wrote: >>>>>>>>>>> >>>>>>>>>>>> You could use Parameters for that purpose. >>>>>>>>>>>> >>>>>>>>>>>> On Fri, 8 Jan, 2021, 18:13 [email protected], < >>>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi, >>>>>>>>>>>>> >>>>>>>>>>>>> is there any way we can use a lobal variable and use that >>>>>>>>>>>>> variable in my GO pipe Material path - like TFS repo path >>>>>>>>>>>>> >>>>>>>>>>>>> This is really urgent , and quick help will be very much >>>>>>>>>>>>> appreciated. Thanks in advance >>>>>>>>>>>>> >>>>>>>>>>>>> Regards, Nitesh >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> 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/aee436d7-9c27-4005-9d35-070aed4e048an%40googlegroups.com >>>>>>>>>>>>> <https://groups.google.com/d/msgid/go-cd/aee436d7-9c27-4005-9d35-070aed4e048an%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>>>> . >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>> 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/80994bd0-3d71-4a8d-9bd6-a929c01bada3n%40googlegroups.com >>>>>>>>>>> <https://groups.google.com/d/msgid/go-cd/80994bd0-3d71-4a8d-9bd6-a929c01bada3n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>> . >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> Ashwanth Kumar / ashwanthkumar.in >>>>>>>>>> >>>>>>>>>> -- >>>>>> 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/ff7c92b5-83f8-4a22-b013-a69657c95019n%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/go-cd/ff7c92b5-83f8-4a22-b013-a69657c95019n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>>> 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/CAKns_UmS4e4vEb%2BLvYhcMLy5QqNSxp_uFy5Bm%2BwGm%3D-WsBBmbg%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/go-cd/CAKns_UmS4e4vEb%2BLvYhcMLy5QqNSxp_uFy5Bm%2BwGm%3D-WsBBmbg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> 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/CAPKX9jZ3TSpMPf2ZCH0TxF8GwqV9Y7YVtNLDZ%3D%2BsA0KycDaBGg%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/go-cd/CAPKX9jZ3TSpMPf2ZCH0TxF8GwqV9Y7YVtNLDZ%3D%2BsA0KycDaBGg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> Thanks&Regards >>> >>> Nitesh kumar >>> >>> -- >>> 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/CAKns_Un-5L9Ahe7wXRV3ch1PubGptBYhK%2BQEnL4EKh6DKnwZ6w%40mail.gmail.com >>> <https://groups.google.com/d/msgid/go-cd/CAKns_Un-5L9Ahe7wXRV3ch1PubGptBYhK%2BQEnL4EKh6DKnwZ6w%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> >> Ashwanth Kumar / ashwanthkumar.in >> >> -- >> 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/CAD9m7Cx8b80M6uDb3KymCcLGS_-W3FkzQMyQ719Y8HkeA%2BP1-w%40mail.gmail.com >> <https://groups.google.com/d/msgid/go-cd/CAD9m7Cx8b80M6uDb3KymCcLGS_-W3FkzQMyQ719Y8HkeA%2BP1-w%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Thanks&Regards > > Nitesh kumar > -- Thanks&Regards Nitesh kumar -- 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/CAKns_UnMPAW7L_7yOriUWU1jjD3dr1WVPvhSems%2BTfzgQgc9Cw%40mail.gmail.com.
