jcli job edit
jcli job edit
Edit the job of your Jenkins
Synopsis
Edit the job of your Jenkins. We only support to edit the pipeline job. Official Pipeline syntax document is here https://jenkins.io/doc/book/pipeline/syntax/
notepad is the default editor of Windows, vim is the default editor of unix. But if the environment variable “VISUAL” or “EDITOR” exists, jcli will take it. For example, you can set it under unix like this: export VISUAL=vi
jcli job edit [flags]
Options
-f, --filename string Filename to files to use to replace pipeline
-h, --help help for edit
--sample Give it a sample Jenkinsfile if the target script is empty
-s, --script string Script to use to replace pipeline. Use script first if you give filename at the meantime.
--trim If trim the leading and tailing white space (default true)
Options inherited from parent commands
--config-load If load a default config file (default true)
--configFile string 指定另外一个配置文件
--debug Print the output into debug.html
--doctor Run the diagnose for current command
--insecureSkipVerify If skip insecure skip verify (default true)
-j, --jenkins string 选择本次执行的 Jenkins
--logger-level string Logger level which could be: debug, info, warn, error (default "warn")
-o, --output string Format the output (default "json")
--proxy string The proxy of connection to Jenkins
--proxy-auth string The auth of proxy of connection to Jenkins
--proxy-disable Disable proxy setting
--token string The token of Jenkins
--url string The URL of Jenkins
--username string The username of Jenkins
SEE ALSO
- jcli job - Manage the job of your Jenkins
当前内容版权归 Jenkins中文社区 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Jenkins中文社区 .