Get Started with Harness CI
Welcome to the Harness CI onboarding guide. Discover how Harness accelerates software builds, enhances developer productivity, and streamlines CI processes with intelligence features, AI-driven insights, and hyper-optimized build infrastructure.
This guide will help you quickly get started with Harness CI, from setup to running your first build.
Prerequisites
Before beginning the walkthroughs in this guide, ensure you have:
- Access to a Harness account.
- Access to a source code repository such as Harness Code Repository.
- Have reviewed CI overview and CI key concepts.
- Have reviewed the Harness Platform onboarding guide and Harness Platform key concepts.
- Have reviewed the Harness CI migration guides if you're migrating from another CI provider.
Create your first Harness CI pipeline
This getting started guide will walk you through setting up a build pipeline for the first time.
- Interactive Guide
- Step-by-step
Create a pipeline
- Click the module selector in the top left and navigate to the Continuous Integration module.
- Click Pipelines
- Click + Create a Pipeline.
- Enter the name of your pipeline.
- Click Start.
Add and configure a CI stage
- Click Add Stage.
- Select Build as your stage type and name your stage.
- Select your git provider. If you choose you a third party provider, you will need to set up a connector. Refer to the connectors' documentation
- Select your code repository.
- Click Set up Stage.
Choose your infrastructure
In your CI stage:
- Click the Infrastructure tab.
- Choose Cloud.
- This will run the build on Harness Cloud. To learn more, refer to the Harness Cloud documentation.
- Learn more about which build infrastructure option is right for you.
- Leave the default options for the operating system and architecture.
- Click Continue.
Create your execution steps
In your CI stage:
- Click the Execution tab.
- Click the plus button to add a step.
- Find and select the Run step from the step library.
- Name your run step.
- Enter your build command. For example:
echo "Harness CI is fast"
- Click Apply Changes.
- Click Save.
Run your pipeline
In your pipeline:
- Click Run.
- Select Git Branch as your build type.
- Enter your branch name.
- Click Run Pipeline.
Congratulations on running your first CI pipeline!
Next Steps
Explore the documentation to learn what your Harness CI pipelines can do.