CI/CD pipelines next to your code
Describe a pipeline in a file in the repository, push it, and every run shows up with its steps, live logs, test results and what it published. Steps run in Code4 Cloud or on machines of your own.
Run on push, on merge requests or by hand
A pipeline runs on a push to matching branches, on merge request events, or only when someone starts it. A run started by hand can take parameters, with defaults you declare.
Find a pipeline or a run by repository, branch, trigger or the person who started it, and star the pipelines you watch to keep them in the project menu with the status of the last run.
Live logs
Open a run to see its steps and the log of each one, following new output as it arrives.
Rerun the whole run or retry from the failed step, stop a run in progress, and download the log of a step or of the whole run.
Test results
The Tests tab lists the test results the run published. Search for a test and filter by status to find the failing ones, with the time each test took.
What went into each run
The Changes tab lists the commits that went into the run, with their authors and dates, and narrows them by author and date.
An issue key in a commit message opens that issue, and a commit that came with a merge request shows its key. When a build breaks, you go from the run straight to the change and the work behind it.
Ask AI why a step failed
When a step fails, Explain failure reads its log and tells you why: a category such as code, test, flaky or infrastructure, a summary, the probable cause and, when there is one, a suggested fix. The explanation is saved, so the next person sees it without waiting.
A fix with a code change can be applied from the same place: it goes to the branch of the merge request, or to a new branch with a merge request of its own, never straight to main. Explain failure works on every plan.
Pipelines as code
A pipeline lives in the .ci folder of the repository and is written in YAML, Java, TypeScript or Go: all four describe the same pipelines. A repository can declare several, for example a check for merge requests, a build for main and a release started by hand.
Each step is one container: an image, a command and its settings. Steps pass files to each other and publish test reports.
Skip work that is already done
A step whose result depends only on its definition and its files is cached: when the same step comes up again, it is skipped and its outputs are restored. Give a step a cache key and the files it depends on, and it runs again only when those files change.
Our cloud or your machines
By default steps run in Code4 Cloud: each step gets a fresh Linux machine that is removed after the step, with nothing to set up.
Connect self-hosted runners when a step needs hardware of your own, such as a GPU or more memory, or access to your network. Install a runner on a Linux host, in Docker or in Kubernetes, tag it, and let steps ask for it by tag. Your own runners are not limited on any plan.
Secrets and parameters
Passwords, tokens and settings live in Secrets and Parameters, and a step asks for them by name. A secret can be limited to protected branches and kept away from self-hosted runners.
When a name is missing or a secret may not go to a step, the step fails before it starts and says which name it was.
Manual steps and approvals
A step can wait for a person: it shows Awaiting action until someone starts it. A step tied to an environment that requires approvals waits for enough votes from people allowed to deploy there.
Deploy steps ship a service to one of your environments with the same history and rollback as a deployment started by hand.
Gate merges on pipelines
List the pipelines that must pass in a branch protection rule, and a merge request cannot be merged until each of them has a successful run on its latest commit.
Questions about CI/CD
- Do we have to set up runners?
- No. Steps run in Code4 Cloud by default. Connect your own runners only when you need your hardware or your network.
- Which languages can a pipeline be written in?
- YAML, Java, TypeScript or Go. All of them describe the same pipelines, so pick the one your team reads best.
- How are cloud minutes counted?
- Each plan includes cloud CI minutes a month, and steps on your own runners do not use them. The numbers are on the pricing page.
- Can a pipeline deploy?
- Yes. A deploy step ships a service to an environment of the project, with approvals where the environment requires them, and the deployment gets the same history and rollback as any other.