Developer day-to-day guide
Learn the day-to-day deployment tasks for developers in Harness CD, including manual and automated deployments, approvals, notifications, and deployment review.
This guide is intended to get you started with Harness CD in the Developer role.
For onboarding your team, go to the Onboarding path.
For CD tutorials, go to CD and GitOps tutorials.
If you have any additional questions, contact Harness Support.
What you will learn from this topic
Understand the three Harness entities (service, environment, and pipeline) and how they model a deployment
How to automate deployments using Git webhooks and the Harness API
Before you begin
This topic assumes you have set up the necessary Harness integrations (Harness Delegate, Kubernetes Cluster connector, AWS connector, Jira connector, SSO configuration, and so on) and your Harness account configurations.
Harness Continuous Delivery overview
Harness CD is a cloud-native software delivery platform that automates the deployment process, helping teams to release applications quickly, securely, and reliably.
Harness simplifies complex CD tasks by providing features like automated rollback, deployment verification, and performance analysis. Harness integrates with all tools and platforms and offers insights into deployment metrics to optimize the release process.
Harness' goal is to increase deployment frequency, reduce failures, and provide a reliable experience for software delivery.
Deployment entities
There are three Harness entities you define when performing a deployment with Harness:
Service: What you are deploying.
Environment: Where you are deploying.
Pipeline: How you are deploying.
These entities are summarized below.
Services
You can define a Harness service in your Harness project. The service defines the application, microservice, serverless function, or other workloads you are deploying. For more information, go to Create services, Deploy services on different platforms, and Services overview.
Environments
As you onboard more services, you also need to onboard more Harness environments for the different business environments where you are deploying these services.
A common pattern is three environments:
Development
QA
Production
For more information, go to Environments overview.
Pipelines
To deploy your service, you need to model your release process using a pipeline. Harness offers a pipeline modeling experience that automatically adds the steps needed for all popular deployment types and strategies. Harness also lets you build pipelines from scratch. For an example using Kubernetes, go to Kubernetes deployments.
Pipeline example
The following is an example of a common Kubernetes pipeline.
To copy it and paste it into the YAML builder in your Harness project, select Deployments, Create a Pipeline, name the pipeline, and then use the YAML builder to update any settings.
Manual deployment in Harness Manager
Depending on the project you have access to and the pipeline you have permissions to, a Harness user can log in and deploy a service using the Harness Manager UI.
Go to the Harness CD tutorials for various deployment types, or go to Kubernetes deployments for a Kubernetes-specific example.
The following video provides an overview of manually running a deployment:
Automated deployments with triggers
With Harness triggers, you can start automating your deployments from any location, such as a source repository, an artifact repository, or a third party system.
Any Developer with pipeline create and edit permissions can configure a trigger in Harness. Developers who engage with the trigger's listening source (webhook, artifact repository, etc.) can fire off a trigger.
The following example shows a GitHub webhook trigger automated deployment.
The pipeline trigger in Harness looks like this:

The webhook in GitHub looks like this:

Once the webhook is auto-created in your GitHub repository, Harness receives Git events from the webhook to initiate pipeline execution.
In Harness, the trigger indicates when it was activated.

Go to the Pipeline Executions page to see the pipeline initiated by the trigger:

For more information, go to Trigger pipelines using Git events.
Automated deployments using the Harness API
If you are the pipeline executor, you can also initiate pipeline executions via API. The API lets you integrate with any third party system to initiate and pass parameters to a Harness pipeline.
For more information, go to Execute a Pipeline with Input Set References.
Approval responses
Many pipelines have approvals as quality gates. Approvals require developers to review the pipeline's progress to ensure nothing is going wrong.
Depending on your user group and access to the project, you can see the approval action on the Home Screen.

And in the pipeline, you can view and add comments to your approval. This information is stored and logged with the pipeline for auditing.

Select Approve and the pipeline progresses. If you reject the approval, the pipeline ends and initiates rollback or the pipeline failure strategy.
For more information, go to Using manual Harness approval stages, the Approvals tutorial, and Notifications settings.
Role assignment for new team members
If your Harness Administrator has not set up the user groups, roles, and permissions for all your development teams, and if you are a Project Administrator, you can add your teammates to the project yourself.
For more information, go to Manage users.
Add pipeline notifications
If you are Pipeline Creator or Editor, you can add pipeline notifications to notify yourself and your teammates of deployment progress and status.
Harness integrates with Slack, Webhook, MS Teams, PagerDuty, and Emails. For more information, go to Notifications settings.

Deployment review
After a deployment occurs, you want to know what was deployed and where, so you can track the version of a service or an artifact across different environments.
For more information, go to Monitor deployments and services in CD dashboards.
Go to Environments to see an environment. The summary dashboard shows what version of a service is deployed in your environment.

You can also view the same information from a service perspective.

Conclusion
Thanks for reading this Developer role ramp-up guide. If you have any feedback or suggestions on how to improve it, contact Harness Support.
Next steps
Last updated
Was this helpful?