2 Star 2 Fork 0

hxulin / gokins

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Gokins

一款基于Go语言实现的快速部署 Jenkins 服务的命令行工具。

安装

Linux

sudo wget https://github.com/hxulin/gokins/releases/download/v2.0.0/gokins-2.0.0-linux-amd64 -O /usr/local/bin/gokins
sudo chmod +x /usr/local/bin/gokins

OS X

sudo curl -Lo /usr/local/bin/gokins https://github.com/hxulin/gokins/releases/download/v2.0.0/gokins-2.0.0-darwin-amd64
sudo chmod +x /usr/local/bin/gokins

Windows

可通过浏览器等工具下载获得可执行文件 gokins.exe,建议存放到系统环境变量目录。

如:C:\Windows

快速使用

设置用户授权信息

gokins username admin
gokins token 11aa09e6009204c2fbd84826784999dab5

加载样例配置文件

gokins load http://cdn.huangxulin.cn/gokins/config.yaml

加载的配置信息会保存到 $Home/.gokins/config.yaml 文件中,请根据实际需求修改配置参数。

查看任务列表信息

gokins ls

执行部署操作

gokins run 1005

在 Shell 中使用

#!/bin/bash

result=`gokins run 1005`
if [[ $result =~ .*SUCCESS.* ]]; then
  echo '部署成功'
fi
The MIT License (MIT) Copyright © 2022 hxulin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一款基于Go语言实现的快速部署 Jenkins 服务的命令行工具 展开 收起
Go 等 2 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/hxulin/gokins.git
git@gitee.com:hxulin/gokins.git
hxulin
gokins
gokins
master

搜索帮助