Flow includes built-in job templates for common CI/CD tasks. You can also create custom organization jobs to standardize pipelines across the team.
Background
Organization members can select organization jobs when configuring job nodes in a pipeline.
Built-in jobs cover common CI/CD tasks and accelerate pipeline creation.
Custom organization jobs let you standardize tasks and reduce setup time for your team.
When you add a job node to a pipeline, the job selection panel displays the Organization Job section (for example, the "Build Java image and..." test job) alongside built-in job categories. Built-in categories include code scanning (Java code scanning, Java security scanning, JavaScript code scanning, Python code scanning, and source code vulnerability detection), test (Maven unit tests and Gradle unit tests), build, deploy, and tools.
Organization jobs
Create an organization job
In the Flow console, navigate to , and then click Create Organization Job or the + Organization Job icon.
Orchestrate an organization job
Select a base job type for your organization job and click Next.
In the Select Job dialog box, select the run command job type.
Configure the job steps and click Save.
In the Configure New Organization Job dialog box, select a container image address (for example, build-steps/alinux3) and configure download source code. In the job steps section, click Add Step, select the run command step, enter your command (for example, echo hello,world!), and click Save.
Managing jobs
Both built-in jobs and organization jobs are managed on the Organization Job tab under .
-
Organization jobs support copy, edit, delete, enable, and disable operations. Built-in jobs can only be enabled or disabled. Disabling a job prevents organization members from selecting it in pipelines. To add a new job, click Create Organization Job.
Orchestrate an organization job
Select a base job type for your organization job and click Next.
In the dialog box, select Run Command from the job category list on the left, select the Run Command job card in the content area on the right, and then click Next.
Configure the job steps and click Save.
In the Configure New Organization Job dialog box, select Download All Pipeline Sources from the Download Pipeline Source drop-down list. In the Task Steps section, click Add Step, add a Run Command step, enter echo hello word in the command editor, and then click Save.
Use organization jobs
On the pipeline creation or editing page, click New Job. In the drawer that appears, select Organization Job.