jobs.<job_id>.steps

1 minute read
On this page

A job contains a sequence of tasks called steps that are used to execute commands or actions. Steps execute in containers that share the same job workspace directory. Because step commands run in their own containers, any changes to environment variables or other local filesystem directories are not saved as the workflow runs from step to step.

Steps can run the following:

  • A custom command.

  • A CloudBees action in your repository or a public repository.

Example usage

name: Greeting from the Hive on: push: branches: - '**' jobs: my-job: steps: - name: Print a greeting uses: docker://alpine:3.18 shell: sh env: FIRST_WORD: Hello SECOND_WORD: there THIRD_WORD: world run: | echo $FIRST_WORD $SECOND_WORD $THIRD_WORD