未验证 提交 98c10918 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Add snapcraft support (#321)

* Add snap yaml file

* Add snapcraft into readme document

* Add more snap info

* Set git ignore for *.snap

* snapcraft can be release

* fix the description in the snapcraft config file
上级 7b906965
......@@ -29,3 +29,6 @@ app/cmd/test.yaml
app/i18n/bindata.go
app/i18n/jcli/zh_CN/LC_MESSAGES/jcli.mo
app/i18n/jcli.pot
# snap package
*.snap
......@@ -56,6 +56,7 @@ sudo mv jcli /usr/local/bin/
* [GoFish](https://gofi.sh/) 的用户可以使用命令 `gofish install jcli` 来安装
* [Scoop](https://scoop.sh/) 的用户可以使用命令 `scoop install jcli` 来安装
* [Chocolatey](https://chocolatey.org/packages/jcli) 的用户可以使用命令 `choco install jcli` 来安装
* [Snapcraft](https://snapcraft.io/jcli) 的用户可以使用命令 `sudo snap install jcli` 来安装
了解更多[如何下载 jcli](doc/download-zh.md).
你可以从[这里](http://somsubhra.com/github-release-stats/?username=jenkins-zh&repository=jenkins-cli)获取下载的统计信息。
......
......@@ -58,6 +58,7 @@ Here are other package managers:
* [GoFish](https://gofi.sh/) users can use `gofish install jcli`
* [Scoop](https://scoop.sh/) users can use `scoop install jcli`
* [Chocolatey](https://chocolatey.org/packages/jcli) users can use `choco install jcli`
* [Snapcraft](https://snapcraft.io/jcli) users can use `sudo snap install jcli`
See more about [how to download jcli](doc/download.md).
You can find the download details [from here](http://somsubhra.com/github-release-stats/?username=jenkins-zh&repository=jenkins-cli).
......
......@@ -20,7 +20,11 @@ var _ = Describe("shell command", func() {
ctrl = gomock.NewController(GinkgoT())
rootCmd.SetArgs([]string{})
rootOptions.Jenkins = ""
rootOptions.ConfigFile = "test.yaml"
tempFile, err := ioutil.TempFile("", "example")
Expect(err).To(BeNil())
rootOptions.ConfigFile = tempFile.Name()
shellOptions.ExecContext = util.FakeExecCommandSuccess
})
......
name: jcli
version: v0.0.25
summary: Jenkins CLI allows you manage your Jenkins in an easy way.
description: |
Jenkins CLI allows you manage your Jenkins in an easy way. No matter if you're a plugin developer, administrator or just a regular user, it is made for you!
confinement: strict
base: core18
license: MIT
grade: stable
parts:
jcli:
plugin: dump
source: .
organize:
jcli: bin/linux
apps:
jcli:
command: bin/linux/jcli
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册