jx create step

list of jx commands

jx create step

Creates a step in the Jenkins X Pipeline

Synopsis

Creates a step in the Jenkins X Pipeline

jx create step [flags]

Examples

  # Create a new step in the Jenkins X Pipeline interactively
  jx create step
  
  # Creates a step on the command line: adding a post step to the release build lifecycle
  jx create step -sh "echo hello world"
  
  # Creates a step on the command line: adding a pre step to the pullRequest promote lifecycle
  jx create step -p pullrequest -l promote -m pre -c "echo before promote"

Options

  -d, --dir string         The root project directory. Defaults to the current dir
  -h, --help               help for step
  -l, --lifecycle string   The lifecycle stage to add your step. Possible values: setup, setversion, prebuild, build, postbuild, promote
  -m, --mode string        The create mode for the new step. Possible values: pre, post, replace
  -p, --pipeline string    The pipeline kind to add your step. Possible values: release, pullrequest, feature
  -c, --sh string          The command to invoke for the new step

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input (default true)
      --verbose      Enables verbose output

SEE ALSO

Auto generated by spf13/cobra on 26-Feb-2020

Last modified February 26, 2020: release 0.0.1499 (c2bbe2c)