diff --git a/index.html b/index.html index 687933d94e4090f112423ce5986e45de8ee6c034..6bdc92fe786d4fa39c599ea0fc44f9e264cd9edb 100644 --- a/index.html +++ b/index.html @@ -1838,16 +1838,13 @@ RU5ErkJggg==" /> - - + + - - - @@ -1855,15 +1852,18 @@ RU5ErkJggg==" /> - - + + - - + + + + + diff --git a/wechat/Jenkinsfile b/wechat/Jenkinsfile index cf80b9772abf3ad15bd8de7157b9845c88b42ad9..5434e06170f5ebbb276bf46acd3fdf5702ddcce6 100644 --- a/wechat/Jenkinsfile +++ b/wechat/Jenkinsfile @@ -14,12 +14,23 @@ pipeline { branch 'master' } steps{ - withCredentials([string(credentialsId: '0404af2d-8738-402e-922d-5acee65d3059', variable: 'TOKEN')]) { - sh ''' - curl -X POST -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" -i "https://api.github.com/repos/jenkins-zh/jenkins-zh/dispatches" -d '{"event_type":"repository_dispatch"}' - ''' + try{ + postBuild() + }catch{ + retry(3){ + postBuild() + } } + } } } } + +def postBuild() { + withCredentials([string(credentialsId: '0404af2d-8738-402e-922d-5acee65d3059', variable: 'TOKEN')]) { + sh ''' + curl -X POST -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${TOKEN}" -i "https://api.github.com/repos/jenkins-zh/jenkins-zh/dispatches" -d '{"event_type":"repository_dispatch"}' + ''' + } +} \ No newline at end of file diff --git a/wechat/articles/2019/07/2019-07-29-leveraging-jenkins-on-kubernetes/index.html b/wechat/articles/2019/07/2019-07-29-leveraging-jenkins-on-kubernetes/index.html index ad8577e6b726d4996a005335b428916b63b51d0e..b3ae20af410609164b3529e75d762c5340dc412e 100644 --- a/wechat/articles/2019/07/2019-07-29-leveraging-jenkins-on-kubernetes/index.html +++ b/wechat/articles/2019/07/2019-07-29-leveraging-jenkins-on-kubernetes/index.html @@ -381,10 +381,10 @@ var trackOutboundLink = function(id, url) {
  • 在大型企业里维护多分支流水线
  • -
  • Jenkins 插件的微基准测试框架
  • -
  • 多分支流水线任务对 GitLab SCM 的支持
  • +
  • Jenkins 插件的微基准测试框架
  • +
  • Jenkins 文档特别兴趣小组
  • diff --git a/wechat/articles/2019/11/2019-11-12-2019-jenkins-board-and-officer-elections-update/index.html b/wechat/articles/2019/11/2019-11-12-2019-jenkins-board-and-officer-elections-update/index.html index 144f6b27d78e85e98e076cd1c173c75fc0032cea..2e02dfcee5b6af3e5e736c8bee1b766db7ddd011 100644 --- a/wechat/articles/2019/11/2019-11-12-2019-jenkins-board-and-officer-elections-update/index.html +++ b/wechat/articles/2019/11/2019-11-12-2019-jenkins-board-and-officer-elections-update/index.html @@ -465,10 +465,10 @@ var trackOutboundLink = function(id, url) {
  • 在 Kubernetes 上使用 Jenkins
  • -
  • 多分支流水线任务对 GitLab SCM 的支持
  • -
  • Jenkins 插件的微基准测试框架
  • +
  • 多分支流水线任务对 GitLab SCM 的支持
  • +
  • Jenkins 文档特别兴趣小组