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.
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 testLast updated
Was this helpful?