WARNING: Jenkins X version 2.x is unmaintained. Do not use it.
Please refer to the v3 documentation for the latest supported version.
jx step git close
list of jx commands
jx step git close
Closes issue trackers, wikis and projects
Synopsis
This pipeline step will close git provider issue trackers, wikis and projects that are not in use (no issues, no wiki pages, no projects). It will log any it can’t close, indicating why.
jx step git close [flags]
Examples
# Close unused issue trackers, wikis and projects for organizations
jx step git close --org https://github.com/jenkins-x --org https://github.com/jenkins-x
# Close unused issue trackers, wikis and projects for an organization
jx step git close --org https://github.com/jenkins-x --include jenkins-x/jx
Options
--dir string The directory in which the git repo is checked out, by default the working directory
--dry-run execute as a dry run - print what would be done but exit before making any changes
--exclude stringArray A repo to ignore when closing issue trackers, wikis and projects e.g. jenkins-x/jx
-h, --help help for close
--include stringArray If any includes are specified then only those repos will have issue trackers, wikis and projects closed
--org stringArray An org to close issue trackers, wikis and projects for
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
- jx step git - git [command]
Auto generated by spf13/cobra on 2-Sep-2020
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 2, 2020: updated jx commands & API docs from 2.1.138 (4fc0bedc90)