Wednesday, October 24, 2018

Technical sentences on GoCD Pipeline

Technical sentences on GoCD Pipeline



GoCD Overview :
-> GoCD is an open source continuous delivery and automation system.
-> It allows us to simplify the complex workflows using its parallel and sequential execution.
-> The GoCD ecosystem consists of GoCD server and GoCD agent.
GoCD Server :
-> In the GoCD ecosystem, the server is the one that controls everything.
-> It provides the user interface to users of the system and provides work for the agents to do.
-> The server does not do any user-specified "work" on its own.
-> It will not run any commands or do deployments.
-> To perform all these tasks it uses GoCD agents
GoCD Agent :
-> Go agents are responsible for running all the tasks like jobs and deployments.
-> GoCD Server must be have atleast one agent
Prerequisites :
To Setup GoCD echosystem the following pre-requisites are needed
-> A CentOS 7 VM vith atleast 1GB RAM.
-> A sudo User
-> A Domain name pointed towards the server(take if need otherwise not neccessary)
GoCD Server setup :
-> GoCD requires Java version 8 and supports both Oracle Java and OpenJDK
-> Then Install GoCD server by using yum command and makesure its running.
-> access GoCD server on browser with http://<IP of GoCD server>:8153
-> After login to GoCD Dashboard we can change Server Configurations unser Aadmin for the Security.
-> By default, the GoCD dashboard is not configured to use any kind of authentication and its not neccessary for all cases,
-> But its need when we use public facing servers like our CentOS Vm, & we can do authentication by a password file and LDAP so that we can add any number of users to server as our requirement.
-> We can use htpasswd as password file and for this we need Apache.
-> And we can access GoCD Dashboard with any user that we created above.
-> We can also add user through GoCD dashboard.
GoCD Agent setup :
-> To run a pipeline, at least one agent must to be configured.
-> So we can install GoCD Agent by simple yum command & make sure its up.
Creating a pipeline :
-> Pipelines are used to represent the workflow.
-> Go to GoCD Server dash board->click pipelines->Add Pipeline
-> Give pipelinename->Configure materials->go material of our choise or through Git Repo https://github.com/gocd-contrib/getting-started-repo.git
-> Create stage & jobs and run the pipeline
-> Bydefault pipeline has been paused , we can unpause it & wait till Pipeline triggers successfully.

No comments:

Post a Comment