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
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

Auto generated by spf13/cobra on 2-Sep-2020