CircleCI Orbs


Condense commands, executors, and jobs into single, reusable lines of code.

Use Orbs

Don’t reinvent the wheel. Save time by importing pre-built commands, jobs, and executors into your configuration file.

Explore orbs ▸ Read the docs ▸

Create Orbs

Share your expertise and contribute to the developer community by creating reusable CircleCI orbs for teams as they configure their CI/CD workflow.

Learn how to create orbs ▸

Reusable commands, executors, and jobs

Orbs define reusable commands, executors, and jobs so that commonly used pieces of configuration can be condensed into a single line of code.

          
            version: 2.1

            description: An orb with some simple ways to help you with your first build.
            
            commands:
              circleci-env-highlights:
                steps:
                - run:
                    command: |-
                      echo "TRIGGERER: ${CIRCLE_USERNAME}"
                      echo "BUILD_NUMBER: ${CIRCLE_BUILD_NUM}"
                      echo "BUILD_URL: ${CIRCLE_BUILD_URL}"
                      echo "BRANCH: ${CIRCLE_BRANCH}"
                      echo "RUNNING JOB: ${CIRCLE_JOB}"
                      echo "JOB PARALLELISM: ${CIRCLE_NODE_TOTAL}"
                      echo "CIRCLE_REPOSITORY_URL: ${CIRCLE_REPOSITORY_URL}"
                    name: Show some of the CircleCI runtime env vars

              hello-triggerer:
                parameters:
                  to:
                    default: ${CIRCLE_USERNAME}
                    type: string
                steps:
                - run: echo "Hello << parameters.to >>"

              system-info:
                steps:
                - run:
                    command: |-
                      echo "uname:" $(uname -a)
                      echo "arch: " $(arch)
                    name: Show system information
            
            executors:
              default:
                docker:
                - image: circleci/buildpack-deps:<< parameters.tag >>
                parameters:
                  tag:
                    default: curl-browsers
                    type: string
            
            jobs:
              hello-build:
                executor: default
                steps:
                - hello-triggerer
                - circleci-env-highlights
                - system-info





















            
          
        

Thank You for Submitting Your Info


You should receive an automated response notifying you that we received your info. Someone from our Enterprise team will be reaching out to you shortly.


CircleCI Success Logo