gocd | Main repository for GoCD - Continuous Delivery server | Continuous Deployment library
kandi X-RAY | gocd Summary
kandi X-RAY | gocd Summary
This is the main repository for GoCD - a continuous delivery server. GoCD helps you automate and streamline the build-test-release cycle for worry-free, continuous delivery of your product. To quickly build your first pipeline while learning key GoCD concepts, visit our Test Drive GoCD.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process application event
- Get a list of all pipelines that have been added to
- Updates the pipeline
- Method migration
- Process an agent request
- Creates an instance from a server
- Creates an instance from a live agent
- Returns a ValueStreamMap for the given material fingerprint
- Generates ValueStreamMap for given pipeline name and counter
- Returns a JSON representation of the session statistics
- Generate the XML for the pipeline
- Sets up the routes
- Serialize the job instance
- Gets the page numbers
- Provides the model exposed as the REST API
- Main entry point
- Creates a new type adapter for the given type
- Runs the downloader
- Performs the pre - flight
- Gets the config files
- Display the pipeline configuration
- Display the status of an agent
- Builds the script
- Called when a cluster profile is updated
- Parse the response from a parse directory and convert it to a response
- Convert the JSON string to a TaskConfig object
gocd Key Features
gocd Examples and Code Snippets
Community Discussions
Trending Discussions on gocd
QUESTION
I've got a job that's failing and I think the problem is that I've misunderstood what the layout of the directory structure for the running job.
How can I see what's actually on disk so I can diagnose what's happening? Can I do it from the GoCD UI, or am I going to have to connect to the agent box and look at things that way?
In Jenkins, I'd just use the "workspace" link to eyeball the layout.
...ANSWER
Answered 2021-May-07 at 02:41Currently, I'm adding directorying listing commands to the jobs themselves, then inspect the out in the logs.
QUESTION
I've got a requirement to move from our existing terraform/gocd deployment structure for our lambdas to using codepipeline and cloudformation.
The main obstacle I've hit is cloudformation can't deploy a lambda with an existing name meaning I currently need to delete the existing lambda, for our test environment and lesser used lambdas not a huge problem but there are a few critical ones I'd rather have a cleaner way of moving across, is there a way to replace it in place?
...ANSWER
Answered 2021-Jan-13 at 11:30The only way is to import existing resources to CloudFormation. Please note that not all resources can be imported. The list of supported ones is here.
In terms of lambda, the following resources can be imported:
- AWS::Lambda::Alias
- AWS::Lambda::CodeSigningConfig
- AWS::Lambda::Function
- AWS::Lambda::Version
However, importing procedure is not that straightforward. For it to work you already need to have proper templates which match the existing resources.
Thus its better to do some practice runs on test functions and other resources to get familiar with the process and its requirements, before you attempt using production functions. Also, you can consider using former2 to help you with generation of these initial templates from existing lambda as a starting point.
QUESTION
I am wondering how I would configure a material in GoCD to trigger a build when a commit is made on the linked GitHub account.
...ANSWER
Answered 2020-Nov-21 at 01:42You can follow "Integrating GoCD with GitHub" which uses a pull request workflow on GitHub side.
Each time a PR is done or updated on GitHub, the gocd-build-github-pull-requests plugin from Ashwanth Kumar would kick-in and build said PR, updating its status on GitHub after said build.
QUESTION
I am using gocd for ci/cd. Result is tar archive. I need to copy resulting tar to GCE bucket.
I have gocd-agent docker image with included google sdk.
I know how to use gcloud with service account from local machine, but not from inside pod.
How to use service account assigned to pod with gcloud auth on pod?
Final goal is to use gsutil to copy above mentioned archive to bucket in same project.
...ANSWER
Answered 2020-Aug-07 at 18:20My first thought would be to create Secret
based on the service account, reference it in a pod yaml definiton to mount to some file and then run gcloud auth
from the pod using that file. There's more info in Google cloud docs.
Another option which is quite new is to use Workload Identitiy. Seems you'd need to configure GKE cluster to enable this option. And it's working for some versions of GKE.
QUESTION
I'm evaluating GoCD if we would be able to use it instead of Jenkins.
Is there any way how to create a parameterized pipeline like parametrized jobs in Jenkins?
In Jenkins, we're using these parameters in some jobs which are executed manually to configure "full-rebuild" of the project:
This bool value is passed as ENV variable to the job. I have found that GoCD has ENVs but I didn't find if there is a way how such ENV can be selected before manual executing.
Thanks
...ANSWER
Answered 2020-Jul-24 at 07:37Yes. It is possible to parameterize pipelines in GoCD.
Go to pipeline settings -> parameters and add desired parameters. A parameter can be added with a default value, if required.
The next time a pipeline is triggered, one could override the default value with new value and trigger it.
The parameters can be accesses inside pipeline scripts using #{myParam}
.
More detail here: https://docs.gocd.org/current/configuration/admin_use_parameters_in_configuration.html
Below is a snapshot to set Docker information as environment variables. enter image description here
QUESTION
I have build a CI/CD with gitlab and docker. In my gitlab-ci.yml i just write commands to build and launch container to run test and that's it.
Now i m looking for a way to do the same thing with a GOCD ci/cd server. But the official documentation from gocd directly come to kubernetees or Docker in Docker or Docker outside Docker. I don't need this.
I have one GOCD-server and two GOCD-agents.
I want to build and run ONE container and perhaps deploy it. I m not able to find a simple tutorial to make a pipeline with three stages on GOCD:
- build the image;
- run container and test it;
- deploy.
ANSWER
Answered 2020-Apr-08 at 19:55Finally, i was able to get it working by myself, here are the following steps :
Pre-requisites:- docker-ce and docker-compose must be installed on each agents
- go user must be on group docker
- /var/run/docker.sock must be on mode 666
- each agent must have an access to your gitlab/github/repository hub and the fingerprint host must be added before first connection
add manually the fingerprint host on each gocd-agent, you must be connected as go user (or don't forget to set the right owner to known_hosts file):
QUESTION
I have had a good amount of experience using GoCD. I previously used bash scripts to generate builds and was successful as well. For some reason, I have to use basic linux commands as individual tasks.
What I have done successfully:
Pipeline1 - > Stage1 > Job1 > Task 1 : git clone my-project
Pipeline1 - > Stage1 > Job1 > Task 2 : bash my-project/script.sh
What I want to achieve:
Pipeline1 - > Stage1 > Job1 > Task 1 : git clone my-project2
Pipeline1 - > Stage1 > Job1 > Task 2 : cd my-project2
Pipeline1 - > Stage1 > Job1 > Task 3 : build package (*tar.gz file)
Pipeline1 - > Stage1 > Job1 > Task 4 : mkdir newDirectory/
Pipeline1 - > Stage1 > Job1 > Task 5 : mv *tar.gz newDirectory/
Whilst I am able to achieve task 1,3,4; but for commands like cd, mv
, I get error like check if agent can run cd
, cannot find the file
(when I run the mv
cmd as it is in terminal it works!) respectively.
I came across GoCD Command Respository, but I am not sure how would it help me. Can anyone help if you faced the same situation earlier?
...ANSWER
Answered 2020-Apr-06 at 10:36Just in case anyone was looking for the answer!
Okay, so I was playing around settings and found the field of 'Working directory' while creating a new task. here you can specify the directory where you want to run your command relative to where git checks out the materials. This serves te purpose of cd
.
Will update this answer when I get something for mv
.
Thanks!
QUESTION
I'm trying to get environment variables defined in the Kubernetes deployment (system) in my GoCD YAML config in order to pass the GitHub authentication when pulling the resource. I've confirmed that I'm able to call the repository using a personal access token. (via https://[TOKEN]@github.com/[COMPANY]/[REPO].git)
This, of course, also works if I do the same for the actual YAML git
field.
The GoCD secrets in K8s:
...ANSWER
Answered 2020-Jan-28 at 22:30The team and I researched this a little further and found a workaround. Most issues and articles explain what is written in the docs, that you really need access to bin\bash -c
in order to get the variables.
The YAML plugin creator also uses secure, encrypted variables to store sensitive data which is fine, but for our team it means that a lot of Kubernetes features are not utilised.
The workaround:
Use the GUI to create a pipeline in GoCD, enter the GitHub link, add a username and the personal access token for the user as the password, test the connection is OK. Once created, go to Admin -> Pipelines and click the Download pipeline configuration and select YAML.
The generated YAML has the token encrypted as with the GoCD servers private key.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gocd
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page