35 Star 136 Fork 21

Jenkins中文社区 / jenkins-formulas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update-config.sh 627 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
ltsVersion=$(curl http://updates.jenkins.io/stable/latestCore.txt -L -s)
weeklyVersion=$(curl http://updates.jenkins.io/latestCore.txt -L -s)
newLts=$(yq read config.yaml lts | grep $ltsVersion)
if [[ "$newLts" == "" ]]; then
echo "found a new version of lts $ltsVersion"
yq write config.yaml 'lts.+' $ltsVersion -i
else
echo "no new version of lts"
fi
newWeekly=$(yq read config.yaml weekly | grep $weeklyVersion)
if [[ "$newWeekly" == "" ]]; then
echo "found a new version of lts $weeklyVersion"
yq write config.yaml 'weekly.+' $weeklyVersion -i
else
echo "no new version of weekly"
fi
Go
1
https://gitee.com/jenkins-zh/jenkins-formulas.git
git@gitee.com:jenkins-zh/jenkins-formulas.git
jenkins-zh
jenkins-formulas
jenkins-formulas
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891