代码拉取完成,页面将自动刷新
同步操作将从 Jenkins中文社区/jenkins-cli 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Official documentation at http://goreleaser.com
project_name: jcli
builds:
- env:
- CGO_ENABLED=0
binary: jcli
goarch:
- amd64
- arm64
goos:
- windows
- linux
- darwin
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
hooks:
post:
- upx "{{ .Path }}"
ldflags:
- -X github.com/linuxsuren/cobra-extension/version.version={{.Version}}
- -X github.com/linuxsuren/cobra-extension/version.commit={{.ShortCommit}}
- -X github.com/linuxsuren/cobra-extension/version.date={{.Date}}
- -w
- -s
dist: release
archives:
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: darwin
linux: linux
windows: windows
amd64: amd64
arm64: arm64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- README-zh.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next-{{.ShortCommit}}"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: jcli
tap:
owner: jenkins-zh
name: homebrew-jcli
folder: Formula
homepage: "https://github.com/jenkins-zh/jenkins-cli"
description: Jenkins CLI allows you manage your Jenkins as an easy way
dependencies:
- name: vim
type: optional
- name: bash-completion
type: optional
test: |
version_output = shell_output("#{bin}/jcli version")
assert_match version.to_s, version_output
install: |
bin.install name
# Install bash completion
output = Utils.popen_read("#{bin}/jcli completion")
(bash_completion/"jcli").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/jcli completion --type zsh")
(zsh_completion/"_jcli").write output
(Pathname.pwd/"man").mkpath
system "#{bin}/jcli", "doc", "--doc-type", "ManPage", "man"
man1.install Dir["man/*.1"]
prefix.install_metafiles
nfpms:
- file_name_template: "{{ .Binary }}-{{.Os}}-{{.Arch}}"
homepage: https://github.com/jenkins-zh/jenkins-cli
description: Jenkins CLI allows you manage your Jenkins as an easy way
maintainer: rick <rick@jenkins-zh.cn>
license: MIT
vendor: Jenkins
formats:
- deb
- rpm
suggests:
- java
- docker
recommends:
- bash-completion
- vim
bindir: /usr/bin
replacements:
amd64: 64bit
arm64: arm64
darwin: macOS
linux: linux
windows: windows
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。