Skip to content

How to add a CI job #1693

@wuhuizuo

Description

@wuhuizuo

Make a PR included changes:

  1. Add a prow job entry in a repo-branch file in /prow-jobs folder, please create it if not exist. But if you create a new file or rename a file please update it in /prow-jobs/kustomization.yaml
  2. A job DSL in /jobs/<org>/<repo> folder, named: <job-name>.groovy
    • if the folder not existed, create a file aa_folder.groovy to create the folder.
    • if the job is for trunk branch or feature branches, you should put it in /pipelines/<org>/<repo>/latest dir, but no need to add another aa_folder.groovy file in the latest dir.
  3. A executer pod yaml file in /pipelines/<org>/<repo> folder, named pod-<job-name>.yaml
    • if the job is for trunk branch or feature branches, you should put it in /pipelines/<org>/<repo>/latest dir.
  4. A Jenkins pipeline groovy script in /pipelines/<org>/<repo> folder, named: <job-name>.groovy
    • if the job is for trunk branch or feature branches, you should put it in /pipelines/<org>/<repo>/latest dir.
    • using the pod yaml in groovy

Sample files:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions