jobs.<job_id>.steps[*].with.entrypoint

1 minute read

Use jobs.<job_id>.steps[*].with.entrypoint to set the container entrypoint which will override the ENTRYPOINT specified within the container image.

CloudBees platform has the following key differences from GitHub Actions (GHA):

  • If your container does not contain a shell, you must specify an entrypoint. Otherwise, your job will fail.

  • CloudBees allows shell and run with uses: docker://, unlike GHA, which forces use of the entrypoint.

Unlike Docker ENTRYPOINT, the platform entrypoint instruction accepts only a single string defining the executable to be run.

In the following example, shell is not specified, and entrypoint is defined.

steps: - name: Run a command uses: docker://alpine:3.18 with: entrypoint: /bin/echo run: