1 Star 0 Fork 0

chaoz / jenkins-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.goreleaser.yml 2.23 KB
一键复制 编辑 原始数据 按行查看 历史
Rick 提交于 2020-04-20 21:45 . Add date as part of version print (#388)
# Official documentation at http://goreleaser.com
project_name: jcli
#before:
# hooks:
# - make gen-data
builds:
- env:
- CGO_ENABLED=0
binary: jcli
goarch:
- 386
- amd64
- arm
- arm64
goos:
- freebsd
- windows
- linux
- darwin
ignore:
- goos: freebsd
goarch: arm64
ldflags:
- -X github.com/jenkins-zh/jenkins-cli/app.version={{.Version}}
- -X github.com/jenkins-zh/jenkins-cli/app.commit={{.ShortCommit}}
- -X github.com/jenkins-zh/jenkins-cli/app.date={{.Date}}
dist: release
archives:
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
replacements:
darwin: darwin
linux: linux
windows: windows
386: 386
amd64: amd64
arm: arm
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
github:
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
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
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
bindir: /usr/bin
replacements:
amd64: 64bit
386: 32bit
arm: arm
arm64: arm64
darwin: macOS
linux: linux
windows: windows
#signs:
# - artifacts: checksum
# cmd: gpg2
1
https://gitee.com/lhc0101/jenkins-cli.git
git@gitee.com:lhc0101/jenkins-cli.git
lhc0101
jenkins-cli
jenkins-cli
master

搜索帮助