Run
Run steps define a series of shell commands.
Editor
- From the pipeline editor, select Run from the Select a step menu on the right
- Enter a name for the step in the Name field
- Add the necessary commands in the Script field
- Optionally select a shell from the Shell drop-down menu
- Expand the Container section and fill in the required fields, then select Add
The run step will be added in the pipeline editor.
info
Run step commands are executed inside the root directory of your git repository.
The root directory of your git repository, also called the workspace, is shared by all steps in your pipeline.
Manual
You can optionally add plugin steps directly to your pipeline file manually.
This pipeline runs go build
and go test
commands in the golang Docker image.
kind: pipeline
spec:
stages:
- type: ci
spec:
steps:
- name: test
type: run
spec:
container: golang
script: |
go build
go test