Every business is a software business, and is under pressure to innovate constantly. This increased velocity introduces new business risks. CloudBees (www.cloudbees.com) is building the world’s first end-to-end automated software delivery system, enabling companies to balance governance and developer freedom.
Go to siteThe CloudBees API interfaces with CloudBees CI and CD solutions to automate and manage build, test, and deployment processes for software projects. Through integration with Pipedream, you can harness the potential of the CloudBees API to create custom workflows. This might include triggering deployments, managing build statuses, or responding to events within your CI/CD pipeline. Automating these tasks can expedite the development cycle, reduce errors, and enhance productivity.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudbees: {
type: "app",
app: "cloudbees",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://x-api.rollout.io/public-api/users`,
headers: {
Authorization: `Bearer ${this.cloudbees.$auth.api_token}`,
"Content-Type": `application/json`,
},
})
},
})
Automated Deployment Trigger: Set up a Pipedream workflow that listens for a successful build event from your source control platform (e.g., GitHub). Upon detecting this event, it triggers a deployment using the CloudBees API, ensuring that code transitions from repository to production smoothly and without manual intervention.
Build Status Notifications: Configure a Pipedream workflow to monitor build statuses via the CloudBees API. When a build fails, the workflow can send real-time notifications to a Slack channel, alerting the team to investigate and resolve the issue promptly.
Dynamic Resource Allocation: Create a workflow on Pipedream that uses the CloudBees API to adjust resources dynamically based on the pipeline load. For instance, if the API reports high usage, the workflow can spin up additional build executors or scale down when activity is low to optimize costs.
CloudBees uses API keys for authentication. When you connect your CloudBees account, Pipedream securely stores the keys so you can easily authenticate to CloudBees APIs in both code and no-code steps.
To find the API Token:
From the team or group that is currently open on the CloudBees Feature Management dashboard, in the left panel, select App Settings >> Integrations.