While I don't know if GoCD natively has the feature you're looking for, I would like to offer you a different solution to the problem.
Solution: Move all the pipeline as a code YAML / JSON files to a separate repository that everybody in the team has Read-Only access while any changes to the repo is managed by the same folks managing access to Prod. In our organization some teams use JIRA to raise a change request, while others send in a Merge Request (or Pull Request) with the changes they want. On Mon, Feb 10, 2020 at 7:09 PM Prabhakar <[email protected]> wrote: > > Hi All, > > Is there a way in Gocd to assign agents based on the role. This i required > to avoid sharing agents between two environments, like for eg. Prod & > Preprod should not be sharing same agents. > > I can understand we can map agents to environments based on our > requirements but when you write pipeline as a code nothing is stopping you > to map any agents with any environment and this may lead you to deploy > Preprod code base into Prod. > > There is no guard wheel available to protect the wrong deployments and > assigning wrong agents. > > If we have roles that are mapped to certain agents and again that agents > can be restricted in network level between environments. Is this something > that can be achieved in gocd? > > thanks in advance!!! > > Cheers! > Prabha. > > -- > 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/aa62881b-b01d-4a8a-8e1b-6ade0b05ed81%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/aa62881b-b01d-4a8a-8e1b-6ade0b05ed81%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/CAD9m7Cw-mQX%2BZpVNyL9szyHrJ%3DCE23WxH3fOa0jSHnLXrWePgA%40mail.gmail.com.
