Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Jenkins为发布标签轮询scm_Jenkins_Github - Fatal编程技术网

如何使用Jenkins为发布标签轮询scm

如何使用Jenkins为发布标签轮询scm,jenkins,github,Jenkins,Github,我需要一个使用Jenkins的发布标签轮询scm的帮助。Webhook触发器不工作,因为Jenkins位于防火墙后面。 如果在https://github.com///releases 我已经在Jenkins的“源代码管理”选项卡下配置了以下内容。 Git-> 在“存储库”下,指定存储库URL和凭据。在“高级”下,为“参考规范”配置的值如下: +refs/tags/*:refs/remotes/origin/tags/* 也适用于要构建的分支->/tags/ 已将SCM轮询配置为每5分钟运行一次

我需要一个使用Jenkins的发布标签轮询scm的帮助。Webhook触发器不工作,因为Jenkins位于防火墙后面。 如果在
https://github.com///releases
我已经在Jenkins的“源代码管理”选项卡下配置了以下内容。 Git-> 在“存储库”下,指定存储库URL和凭据。在“高级”下,为“参考规范”配置的值如下:
+refs/tags/*:refs/remotes/origin/tags/*

也适用于要构建的分支->/tags/

已将SCM轮询配置为每5分钟运行一次。在“Git Polling Log”下,它每5分钟进行一次轮询,并根据标记提供发布详细信息。但是詹金斯的工作没有触发。有人能帮我解决这个问题吗

从Git轮询日志:

Started on 13 Oct, 2020 4:42:00 PM
Polling SCM changes on master
Using strategy: Default
[poll] Last Built Revision: Revision 2f3a23888bdce0b4ac63044c00f71adedc0aa175 (origin/tags/fb-bin1, origin/tags/15thRelease, origin/tags/9thRelease, origin/tags/17thRelease, origin/tags/14thRelease, origin/tags/11thRelease, origin/tags/20thRelease, origin/tags/8thRelease, origin/tags/13thRelease, origin/tags/10thRelease, origin/tags/21stRelease, origin/tags/19thRelease, origin/tags/12thRelease, origin/tags/16thRelease, refs/tags/fb-bin1, refs/tags/15thRelease, refs/tags/13thRelease, refs/tags/8thRelease, refs/tags/19thRelease, refs/tags/16thRelease, refs/tags/12thRelease, refs/tags/17thRelease, refs/tags/9thRelease, refs/tags/21stRelease, refs/tags/11thRelease, refs/tags/10thRelease, refs/tags/20thRelease, refs/tags/14thRelease)
using credential 7cbf657e-010a-40fd-ad76-0813e675c188
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
 > git config remote.origin.url https://github.com/<user>/repo.git # timeout=10
Fetching upstream changes from https://github.com/<user>/repo.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress https://github.com/<user>/repo.git +refs/tags/*:refs/remotes/origin/tags/* # timeout=10
Polling for changes in
Seen branch in repository origin/bin
Seen branch in repository origin/master
Seen branch in repository origin/tags/10thRelease
Seen branch in repository origin/tags/11thRelease
Seen branch in repository origin/tags/12thRelease
Seen branch in repository origin/tags/13thRelease
Seen branch in repository origin/tags/14thRelease
Seen branch in repository origin/tags/15thRelease
Seen branch in repository origin/tags/16thRelease
Seen branch in repository origin/tags/17thRelease
Seen branch in repository origin/tags/19thRelease
Seen branch in repository origin/tags/20thRelease
Seen branch in repository origin/tags/21stRelease
Seen branch in repository origin/tags/22ndRelease
Seen branch in repository origin/tags/23rdRelease
Seen branch in repository origin/tags/24thRelease
Seen branch in repository origin/tags/2ndLatest
Seen branch in repository origin/tags/3rdRelease
Seen branch in repository origin/tags/4thRelease
Seen branch in repository origin/tags/5thRelease
Seen branch in repository origin/tags/6thRelease
Seen branch in repository origin/tags/7thRelease
Seen branch in repository origin/tags/8thRelease
Seen branch in repository origin/tags/9thRelease
Seen branch in repository origin/tags/Latest
Seen branch in repository origin/tags/fb-bin1
Seen 26 remote branches
 > git show-ref --tags -d # timeout=10
Done. Took 1.6 sec
No changes
于2020年10月13日下午4:42:00开始
在主服务器上轮询SCM更改
使用策略:默认
[投票]最新版本:版本2F3A23888BDCE0B4AC63044C0F71ADEDC0AA175(来源/标签/fb-bin1,来源/标签/15thRelease,来源/标签/9thRelease,来源/标签/17thRelease,来源/标签/14thRelease,来源/标签/11thRelease,来源/标签/20thRelease,来源/标签/8thRelease,来源/标签/13thRelease,来源/标签/10thRelease,来源/标签/21threlease,来源/标签/19thRelease,来源/标签/12thRelease,来源/标签/16thRelease,参考文献/标签/fb-bin1,参考/标签/15thRelease,参考/标签/13thRelease,参考/标签/8thRelease,参考/标签/19thRelease,参考/标签/16thRelease,参考/标签/12thRelease,参考/标签/17thRelease,参考/标签/9thRelease,参考/标签/21threlease,参考/标签/11thRelease,参考/标签/10thRelease,参考/标签/20thRelease,参考/标签/14thRelease)
使用凭证7cbf657e-010a-40fd-ad76-0813e675c188
>git rev parse——在工作树中#timeout=10
从远程Git存储库获取更改
>git config remote.origin.urlhttps://github.com//repo.git #超时=10
从中获取上游更改https://github.com//repo.git
>git——版本#超时=10
使用GIT_SSH设置凭据
>git fetch--标记--进度https://github.com//repo.git +refs/tags/*:refs/remotes/origin/tags/*#timeout=10
轮询更改
在存储库源代码/bin中看到分支
在存储库源代码/主代码中看到分支
在repository origin/tags/10thRelease中看到分支
在repository origin/tags/11thRelease中看到分支
在repository origin/tags/12thRelease中看到分支
在repository origin/tags/13thRelease中看到分支
在存储库origin/tags/14thRelease中看到分支
在repository origin/tags/15thRelease中看到分支
在存储库origin/tags/16thRelease中看到分支
在存储库origin/tags/17thRelease中看到分支
在repository origin/tags/19thRelease中看到分支
在存储库origin/tags/20thRelease中看到分支
在存储库origin/tags/21stRelease中看到分支
在存储库origin/tags/22ndRelease中看到分支
在存储库origin/tags/23rdRelease中看到分支
在repository origin/tags/24thRelease中看到分支
在存储库origin/tags/2ndLatest中看到分支
在repository origin/tags/3rdRelease中看到分支
在存储库源代码/tags/4threelease中看到分支
在repository origin/tags/5thRelease中看到分支
在存储库源代码/tags/6threease中看到分支
在repository origin/tags/7thRelease中看到分支
在repository origin/tags/8thRelease中看到分支
在repository origin/tags/9thRelease中看到分支
在存储库源代码/标签/最新版本中看到分支
在存储库origin/tags/fb-bin1中看到分支
看到26个偏远的分支
>git show ref--tags-d#timeout=10
完成,花了1.6秒
不变
提前谢谢