...
 
Commits (4)
    https://gitcode.net/jenkins-zh/jcli-ishell-plugin/-/commit/eceb450f439cae7044f4b9269fa619eb3bf0d58e Reduce the binary file size by upx (#7) 2020-11-28T22:08:23+08:00 Zhao Xiaojie rick@jenkins-zh.cn * Reduce the binary file size by upx * Fix the compress format issues * Use tar xJ to uncompress tar file * Backup git repo https://gitcode.net/jenkins-zh/jcli-ishell-plugin/-/commit/ae93644faf5eff4d1d43182e235335183fadc6eb Update jenkins-zh/git-backup-actions requirement to v0.0.4 (#9) 2020-11-30T08:02:02+00:00 dependabot[bot] 49699333+dependabot[bot]@users.noreply.github.com https://gitcode.net/jenkins-zh/jcli-ishell-plugin/-/commit/5ba9c08f08999fd9fcc3ed1bf2e4044e331dcf0f Update actions/checkout requirement to v2.3.4 (#8) 2020-11-30T14:24:00+00:00 dependabot[bot] 49699333+dependabot[bot]@users.noreply.github.com https://gitcode.net/jenkins-zh/jcli-ishell-plugin/-/commit/f666790c8e3199bb1348e9b1d93bd54e51eea683 Update README.md 2020-11-30T22:28:11+08:00 Zhao Xiaojie rick@jenkins-zh.cn
name: Backup Git repository
on:
workflow_dispatch:
push:
branches:
- master
jobs:
BackupGit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Backup to Gitee
uses: jenkins-zh/git-backup-actions@v0.0.4
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@gitee.com:jenkins-zh/jcli-ishell-plugin.git"
- name: Backup to CodeChina
uses: jenkins-zh/git-backup-actions@v0.0.4
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@codechina.csdn.net:jenkins-zh/jcli-ishell-plugin.git"
\ No newline at end of file
......@@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build
runs-on: macos-10.15
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v2.1.3
......@@ -24,6 +24,9 @@ jobs:
args: check
- name: Build
run: |
export PATH=$PATH:${PWD}/upx-3.96-amd64_linux
curl -L https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz | tar xJ
upx -V
make build
- name: Test
run: |
......
......@@ -8,17 +8,17 @@ builds:
- amd64
- arm64
goos:
- freebsd
- windows
- linux
- darwin
ignore:
- goos: freebsd
goarch: arm64
hooks:
post:
- upx "{{ .Path }}"
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}}
- -w
dist: release
archives:
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
......@@ -30,9 +30,9 @@ archives:
arm64: arm64
format_overrides:
- goos: windows
format: zipREADME.md
format: zip
files:
-
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
......
......@@ -2,6 +2,7 @@ NAME := jcli-ishell-plugin
build:
go build
upx $(NAME)
chmod u+x $(NAME)
copy: build
......
# jcli-ishell-plugin
This is a plugin for [Jenkins CLI](https://github.com/jenkins-zh/jenkins-cli/) which allows you to manage your jobs in an interactive way.
# Get started
```
jcli config plugin fetch
jcli config plugin install ishell
```
# More plugins
You can find more plugins from [here](https://github.com/jenkins-zh/jcli-plugins).