gocd | Main repository for GoCD - Continuous Delivery server | Continuous Deployment library

 by   gocd Java Version: 23.1.0 License: Apache-2.0

kandi X-RAY | gocd Summary

kandi X-RAY | gocd Summary

gocd is a Java library typically used in Devops, Continuous Deployment applications. gocd has no bugs, it has build file available, it has a Permissive License and it has medium support. However gocd has 1 vulnerabilities. You can download it from GitHub, Maven.

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

            kandi-support Support

              gocd has a medium active ecosystem.
              It has 6813 star(s) with 970 fork(s). There are 218 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 59 open issues and 3316 have been closed. On average issues are closed in 382 days. There are 17 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of gocd is 23.1.0

            kandi-Quality Quality

              gocd has 0 bugs and 0 code smells.

            kandi-Security Security

              gocd has 1 vulnerability issues reported (0 critical, 0 high, 1 medium, 0 low).
              gocd code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gocd is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gocd releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              gocd saves you 1357527 person hours of effort in developing the same functionality from scratch.
              It has 593874 lines of code, 35607 functions and 6132 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gocd and discovered the below as its top functions. This is intended to give you an instant insight into gocd implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            gocd Key Features

            No Key Features are available at this moment for gocd.

            gocd Examples and Code Snippets

            No Code Snippets are available at this moment for gocd.

            Community Discussions

            QUESTION

            How do I inspect the working directory structure of a GoCD job run?
            Asked 2021-May-11 at 04:27

            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:41

            Currently, I'm adding directorying listing commands to the jobs themselves, then inspect the out in the logs.

            Source https://stackoverflow.com/questions/67427790

            QUESTION

            Replacing a terraform deployed lambda in place with cloudformation
            Asked 2021-Jan-13 at 11:30

            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:30

            The 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.

            Source https://stackoverflow.com/questions/65700783

            QUESTION

            How to trigger a build in Go cd when a commit occurs in Github
            Asked 2020-Nov-21 at 01:43

            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:42

            You 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.

            Source https://stackoverflow.com/questions/64936978

            QUESTION

            Copy file from pod to GCE bucket
            Asked 2020-Aug-07 at 18:20

            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:20

            My 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.

            Source https://stackoverflow.com/questions/63306823

            QUESTION

            Parametrized pipeline in GoCD?
            Asked 2020-Jul-24 at 07:37

            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:37

            Yes. 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

            Source https://stackoverflow.com/questions/62947650

            QUESTION

            Run a docker container with gocd CI/CD
            Asked 2020-Apr-08 at 19:55

            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:

            1. build the image;
            2. run container and test it;
            3. deploy.
            ...

            ANSWER

            Answered 2020-Apr-08 at 19:55

            Finally, 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):

            Source https://stackoverflow.com/questions/60503946

            QUESTION

            go-cd - run basic linux commands (cd, etc) in GoCD at task level
            Asked 2020-Apr-06 at 10:36

            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:

            1. Pipeline1 - > Stage1 > Job1 > Task 1 : git clone my-project

            2. Pipeline1 - > Stage1 > Job1 > Task 2 : bash my-project/script.sh

            What I want to achieve:

            1. Pipeline1 - > Stage1 > Job1 > Task 1 : git clone my-project2

            2. Pipeline1 - > Stage1 > Job1 > Task 2 : cd my-project2

            3. Pipeline1 - > Stage1 > Job1 > Task 3 : build package (*tar.gz file)

            4. Pipeline1 - > Stage1 > Job1 > Task 4 : mkdir newDirectory/

            5. 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:36

            Just 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!

            Source https://stackoverflow.com/questions/61005379

            QUESTION

            Unable to get ENV variables in GoCD Kubernetes using YAML config
            Asked 2020-Jan-28 at 22:30
            GoCD Version: 19.12.0

            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:30

            The 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.

            Source https://stackoverflow.com/questions/59950896

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gocd

            This is a Java/JRuby on Rails project. Here is the guide to setup your development environment.

            Support

            We'd love it if you contributed to GoCD. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link