You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
kind: pipeline # kind 属性定义了对象的种类。此示例定义了一个管道对象。
|
|
|
|
|
type: docker # type 属性定义管道的类型。此示例定义了一个 Docker 管道,其中每个管道步骤都在 Docker 容器内执行。
|
|
|
|
|
name: default # name 属性定义了管道的名称。您可以为您的项目定义一个或多个管道
|
|
|
|
|
clone:
|
|
|
|
|
disable: true # 启用代码拉取
|
|
|
|
|
|
|
|
|
|
steps: # 步骤部分定义了一系列串行执行的管道步骤。如果管道中的任何步骤失败,管道将立即退出
|
|
|
|
|
- name: greeting # name 属性定义管道步骤的名称
|
|
|
|
|
image: alpine # image 属性定义了一个执行 shell 命令的 Docker 镜像。您可以使用来自任何 DockerHub 中的任何 Docker镜像。
|
|
|
|
|
commands: # commands 属性将在 Docker 容器内执行的 shell 命令列表定义为容器入口点。如果任何命令返回非零退出代码,则管道步骤将失败。
|
|
|
|
|
- echo hello
|
|
|
|
|
- echo world
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#kind: pipeline
|
|
|
|
|
#type: exec
|
|
|
|
|
#name: default
|
|
|
|
|
#
|
|
|
|
|
#platform:
|
|
|
|
|
# os: linux
|
|
|
|
|
# arch: amd64
|
|
|
|
|
#
|
|
|
|
|
#steps:
|
|
|
|
|
# - name: greeting
|
|
|
|
|
# commands:
|
|
|
|
|
# - echo hello world
|
|
|
|
|
#node:
|
|
|
|
|
# role: pi-runner
|
|
|
|
|
#---
|
|
|
|
|
#kind: pipeline
|
|
|
|
|
#type: docker
|
|
|
|
|
#name: code-analysis
|
|
|
|
|
#
|
|
|
|
|
#steps:
|
|
|
|
|
# - name: code-analysis
|
|
|
|
|
# image: plugins/sonarqube-scanner:linux-amd64
|
|
|
|
|
# settings:
|
|
|
|
|
# sonar_host: http://124.221.150.102:9000
|
|
|
|
|
# sonar_token: sqp_1f8c46141040c583d8e1f81f4f8302230ee1317e
|
|
|
|
|
# sonar_name: pert
|
|
|
|
|
# sonar_key: pert
|
|
|
|
|
# level: TRACE
|
|
|
|
|
# showProfiling: true
|
|
|
|
|
#node:
|
|
|
|
|
# role: pi-runner
|