Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Pipeline plugins (a.k.a. preset plugins) are micro tools that allow you to enhance and refine the CI/CD workflow of your application by adding new features, integrating with external tools, and automating tasks.
Unlike custom scripts, preset plugins come bundled with specific variables and conditions that help you make the plugins work seamlessly with your CI/CD pipeline.
Some plugins are meant for pre-build/post-build, while some are meant for pre-deployment/post-deployment.
From this section, you can know more about the individual plugins and its purpose.
Codacy is an automated code analysis/quality tool that helps developers to ship better software in a faster manner.
Prerequisite: Make sure you have set up an account in Codacy
or get the API keys from an admin.
On the Edit build pipeline page, select the Pre-Build Stage (or Post-Build Stage).
Click + Add task.
Select Codacy from PRESET PLUGINS.
Enter a relevant name in the Task name
field. It is a mandatory field.
Enter a descriptive message for the task in the Description
field. It is an optional field.
Provide a value for the input variable. Note: The value may be any of the values from the previous build stages, a global variable, or a custom value.
CodacyEndpoint
String
API endpoint for Codacy
GitProvider
String
Git provider for the scanning
CodacyApiToken
String
API token for Codacy. If it is provided, it will be used, otherwise it will be picked from Global secret (CODACY_API_TOKEN).
Organisation
String
Your Organization for Codacy
RepoName
String
Your Repository name
Branch
String
Your branch name
Trigger/Skip Condition
refers to a conditional statement to execute or skip the task. You can select either:
Set trigger conditions
or
Set skip conditions
Pass/Failure Condition
refers to conditions to execute pass or fail of your build. You can select either:
Set pass conditions
or
Set failure conditions
Click Update Pipeline.
The Bitbucket Runner Trigger plugin by Devtron enables integration between Devtron CI/CD workflows and Bitbucket Runners. It allows users to remotely trigger and manage Bitbucket Runners directly from within their Devtron pipelines, enhancing automation capabilities and workflow control.
Before integrating the Bitbucket Runner Trigger plugin, ensure you have a Bitbucket account, properly configured Bitbucket Runner, and Bitbucket Token with appropriate permissions.
Go to Applications → Devtron Apps.
Click your application.
Go to App Configuration → Workflow Editor.
Click New Workflow and navigate to the Build and Deploy from Source Code.
Fill the required fields in the Create build pipeline window and navigate to the Pre-Build stage.
If you have already configured workflow, edit the build pipeline, and navigate to Pre-Build stage.
Under 'TASKS', click the + Add task button.
Select the Bitbucket Runner Trigger plugin.
Enter the following user inputs with appropriate values.
Enter the name of your task
e.g., Bitbucket Runner Trigger
Add a brief explanation of the task and the reason for choosing the plugin. Include information for someone else to understand the purpose of the task.
e.g., The Bitbucket Runner Trigger plugin is integrated to trigger a BitBucker Runner remotely through Devtron CI/CD workflow.
BitBucketWorkspaceName
STRING
The workspace name in Bitbucket where your repository is located
dev-workspace
BitBucketUsername
STRING
Your Bitbucket username used for authentication (Mandatory when pipeline is configured through SSH)
john.doe
BitBucketToken
STRING
Bitbucket access token for API authentication (Mandatory when pipeline is configured through SSH)
eyJ0eXBlIjoic2VydmljZV9hY2
BitBucketBranchName
STRING
The branch name where the pipeline will be triggered
main
BitBucketRepoName
STRING
The name of your Bitbucket repository
dev-repo
StatusTimeOutSeconds
STRING
Maximum time (in seconds) to wait for runner status response
300
Here you can set conditions to execute or skip the task. You can select Set trigger conditions
for the execution of a task or Set skip conditions
to skip the task.
Bitbucket Runner Trigger will not be generating an output variable.
Click Update Pipeline.
You can create CI/CD plugins using APIs. It can be any of the following: CI plugin or CD plugin.
Your plugin can be a single-step or multi-step plugin, where steps can be considered as tasks. The task can either be simple shell commands or it can be complex operations that require a specific container environment.
You will need a token to make API calls
In the following example, we are creating a single-step plugin named Secret Management Validator. Moreover, we want to execute a simple shell script; therefore, we are keeping the task type as SHELL
Required fields to edit in the above sample payload are:
name
Plugin name
description
Plugin description
tags
Array of tags
icon
Plugin icon url
Plugin steps
Array of tasks to execute (Details of fields discussed below)
Fields of a plugin steps are:
name
Step name
description
Description of step
index
Sequence at which the step needs to executed
outputDirectoryPath
Artifact output path
pluginStepVariable
Array of required input / output variables
pluginPipelineScript.script
Stringified bash script
Your new plugin will appear under Shared Plugins depending on which stage you have created it for: pre/post build (pluginStage = CI
), pre/post deployment (pluginStage = CD
), or both (pluginStage = CI_CD
)
The variables defined in the pluginStepVariable
array would appear as shown below.
To fetch details of a specific plugin by its ID
To fetch details of all plugins
To fetch list of all global variables
Refer the spec file for detailed definition of each field present in the request/response body of the API.