job - an automated process that clones your repository into a virtual environment and then carries out a series of phases such as compiling your code, running tests, etc. A job fails if the return code of the script phase is non zero.
phase - the sequential steps of a job. For example, the install phase, comes before the script phase, which comes before the optional deploy phase.
build - a group of jobs. For example, a build might have two jobs, each of which tests a project with a different version of a programming language. A build finishes when all of its jobs are finished.
stage - a group of jobs that run in parallel as part of sequential build process composed of multiple stages.
Breaking the Build
errored - a command in the before_install, install, or before_script phase returned a non-zero exit code. The job stops immediately.
failed - a command in the script phase returned a non-zero exit code. The job continues to run until it completes
canceled - a user cancel the job before it completes
Container-based - is the default for new projects. It is a Linux Ubuntu environment running in a container. It starts faster than the sudo-enabled environment, but has fewer resources and does not support the use of sudo, setuid or setgid;
Sudo-enabled - this Linux Ubuntu environment runs on full VM. It starts a little slower, but it has more computational resources and supports the use of sudo, setuid or setgid;
OS X - uses one of several versions of the OS X operating system. This environment is useful for building projects that require the OS X software, such as projects written in Swift. It is not a requirement to use the OS X environment if you develop on a macOS machine.
Getting Started
Core Concepts For Beginners
Breaking the Build
before_install
,install
, orbefore_script
phase returned a non-zero exit code. The job stops immediately.script
phase returned a non-zero exit code. The job continues to run until it completesInfrastructure and environmnet notes
sudo
,setuid
orsetgid
;sudo
,setuid
orsetgid
;Common Build Problems