Code Monkey home page Code Monkey logo

coding-webhook-plugin's Introduction

This project is archived in favor of coding's official jenkins integration.


Jenkins Coding Webhook Plugin Build Status

This plugin integrates Coding with Jenkins. It handles WebHook request and triggers builds for pushes and merge/pull requests.

Installation

This plugin has been published to the official Plugins Index, follow the Managing Plugins document to install it.

Usage

See https://open.coding.net/ci/jenkins (Chinese)

Development

Run ./gradlew server to start the development server.

You may want to disable debug options to get faster page load time:

./gradlew -Dstapler.jelly.noCache=false -Dstapler.trace=false -Ddebug.YUI=false server

Acknowledgements

This project is started and based on the gitlab-plugin, thanks for the great project. The coding-api module follows github-api, and coding-auth module follows github-oauth-plugin, thanks for them.

coding-webhook-plugin's People

Contributors

darxriggs avatar tsl0922 avatar wusisu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coding-webhook-plugin's Issues

after init a project, and edit it a error like this.

A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.

Stack trace

java.lang.NullPointerException
at net.coding.jenkins.plugin.webhook.filter.BranchFilterFactory.newBranchFilter(BranchFilterFactory.java:11)
at net.coding.jenkins.plugin.CodingPushTrigger.initializeTriggerHandler(CodingPushTrigger.java:85)
at net.coding.jenkins.plugin.CodingPushTrigger.(CodingPushTrigger.java:77)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
at hudson.model.Descriptor.newInstance(Descriptor.java:592)
Caused: java.lang.Error: Failed to instantiate class net.coding.jenkins.plugin.CodingPushTrigger from {"webHookToken":"","apiToken":"xxxxxxxxxxxxx","triggerOnMergeRequest":false,"mergeRequestTriggerAction":"create,synchronize","triggerOnPush":true,"addResultNote":true,"ciSkip":true,"includeBranchesSpec":"","excludeBranchesSpec":"","targetBranchRegex":""}
at hudson.model.Descriptor.newInstance(Descriptor.java:600)
at hudson.model.AbstractProject.buildDescribable(AbstractProject.java:1902)
at hudson.model.AbstractProject.submit(AbstractProject.java:1880)
at hudson.model.Project.submit(Project.java:230)
at hudson.model.Job.doConfigSubmit(Job.java:1315)
at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:792)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
Caused: javax.servlet.ServletException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:80)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:92)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Jenkins war | org.jenkins-ci.main:jenkins-war:2.60.3

coding-webhook | 1.0.1 | true

Thank you.

webhook not executed successfully

I execute curl in local network:

[root@xxx ~]# curl http://127.0.0.1:8080/jenkins/coding/xxx-backend
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /jenkins/coding/xxx-backend. Reason:
<pre>    Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>

</body>
</html>

Is there anyting I need to congifure?

java.lang.ArrayIndexOutOfBoundsException

Aug 20, 2017 9:23:05 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
WebHook called with url: /jenkins/coding/xxx-backend
Aug 20, 2017 9:23:05 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
Resolved project: xxx-backend
Aug 20, 2017 9:23:05 PM INFO net.coding.jenkins.plugin.webhook.CodingWebHook getDynamic
WebHook payload: {"ref":"refs/heads/master","before":"xxxxx","commits":[],"after":"xxxxx","event":"push","repository":{"owner":{"path":"/u/0x5e","web_url":"https://coding.net/u/0x5e","global_key":"0x5e","name":"0x5e","avatar":"https://dn-coding-net-avatar.qbox.me/d8f35861-afbc-4e52-9d9f-416bf09637d8.png"},"https_url":"https://git.coding.net/0x5e/xxx-backend.git","web_url":"https://coding.net/u/0x5e/p/xxx-backend","project_id":"1331114","ssh_url":"[email protected]:0x5e/xxx-backend.git","name":"xxx-backend","description":"x"},"usxxer":{"path":"/u/0x5e","web_url":"https://coding.net/u/0x5e","global_key":"0x5e","name":"0x5e","avatar":"https://dn-coding-net-avatar.qbox.me/d8f35861-afbc-4e52-9d9f-416bf09637d8.png"}}
Aug 20, 2017 9:23:05 PM WARNING org.eclipse.jetty.server.handler.ContextHandler$Context log
Error while serving http://127.0.0.1:8081/jenkins/coding/xxx-backend
java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.elementData(ArrayList.java:418)
	at java.util.ArrayList.get(ArrayList.java:431)
	at net.coding.jenkins.plugin.webhook.TriggerHandler.retrieveRevisionToBuild(TriggerHandler.java:150)
	at net.coding.jenkins.plugin.webhook.TriggerHandler.createRevisionParameter(TriggerHandler.java:139)
	at net.coding.jenkins.plugin.webhook.TriggerHandler.createActions(TriggerHandler.java:130)
	at net.coding.jenkins.plugin.webhook.TriggerHandler.handle(TriggerHandler.java:109)
	at net.coding.jenkins.plugin.CodingPushTrigger.onPost(CodingPushTrigger.java:97)
	at net.coding.jenkins.plugin.webhook.CodingWebHook.lambda$getDynamic$0(CodingWebHook.java:92)
	at net.coding.jenkins.plugin.webhook.CodingWebHook$$Lambda$1.run(Unknown Source)
	at hudson.security.ACL.impersonate(ACL.java:243)
	at net.coding.jenkins.plugin.webhook.CodingWebHook.getDynamic(CodingWebHook.java:89)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
Caused: java.lang.reflect.InvocationTargetException
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
	at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:372)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
	at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at net.coding.jenkins.plugin.webhook.CodingWebHook$CodingWebHookCrumbExclusion.process(CodingWebHook.java:146)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:58)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:92)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:564)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

完全按照插件推荐配置,出现^特殊字符无法解析

"Started by 无心s Merge Request #1064: 统计导出pdf增加龙头企业级别(feature-newjiance-api => develop) at Coding"
Building in workspace /var/lib/jenkins/workspace/agri-rural-economic
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
Cloning the remote Git repository
Cloning repository [email protected]:wilsonlaw/agri-rural-economic.git

/usr/bin/git init /var/lib/jenkins/workspace/agri-rural-economic # timeout=60
Fetching upstream changes from [email protected]:wilsonlaw/agri-rural-economic.git
/usr/bin/git --version # timeout=60
using GIT_SSH to set credentials
/usr/bin/git fetch --tags --progress [email protected]:wilsonlaw/agri-rural-economic.git +refs/heads/:refs/remotes/origin/
/usr/bin/git config remote.origin.url [email protected]:wilsonlaw/agri-rural-economic.git # timeout=60
/usr/bin/git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=60
/usr/bin/git config remote.origin.url [email protected]:wilsonlaw/agri-rural-economic.git # timeout=60
Fetching upstream changes from [email protected]:wilsonlaw/agri-rural-economic.git
using GIT_SSH to set credentials
/usr/bin/git fetch --tags --progress [email protected]:wilsonlaw/agri-rural-economic.git +refs/heads/:refs/remotes/origin/ +refs/merge//MERGE:refs/remotes/origin/merge/
/usr/bin/git rev-parse ^{commit} # timeout=60
FATAL: Command "/usr/bin/git rev-parse ^{commit}" returned status code 128:
stdout: ^{commit}

stderr: fatal: ambiguous argument '^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

hudson.plugins.git.GitException: Command "/usr/bin/git rev-parse ^{commit}" returned status code 128:
stdout: ^{commit}

stderr: fatal: ambiguous argument '^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Build step 'Deploy war/ear to a container' changed build result to NOT_BUILT
Finished: NOT_BUILT

获取修改文件列表

你好,能否在收到coding过来的请求之后,根据请求获取modify的文件列表并输出到指定的文件

Push event 触发构建结果无法在提交历史看到

我是企业版用户,新建了一个Pipeline项目,根据文档配置了Coding webhook,并能够通过push事件触发构建。

根据之前和你们客服的沟通结果,应该是能够在提交历史的commit上看到构建结果的,如下图:

61070aeb 98cdbb0f e4a8fc5b

但实际上并没有看到。

Prepare Coding Webhook for core Guava upgrade

See JENKINS-65988. Jenkins core is using Guava 11.0.1, which was released on January 9, 2012. Jenkins core would like to upgrade to Guava 30.1.1, which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

In particular, this plugin has been identified as using the com.google.common.cache.Cache#get(K key) API, which has been removed between Guava 11.0.1 and latest. The removal took place in Guava 12.0.

To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The recommendation is for plugins to migrate from Guava's cache to Caffeine via the Jenkins Caffeine API plugin.

For the most part, the migration is a trivial matter of replacing imports of com.google.common.cache.Cache with imports of com.github.benmanes.caffeine.cache.Cache and imports of com.google.common.cache.CacheBuilder with imports of com.github.benmanes.caffeine.cache.Caffeine. For examples of how to do this, see these existing PRs:

MR发起之后再push,不会更新持续集成状态检查结果

环境:配置了Jenkins+Coding webhook plugin

步骤:

  1. 新建了一个MR,然后成功触发了Jenkins构建,也能够看到Coding webhook plugin追加到MR的持续集成状态检查结果
  2. 在这个MR的分支上又做了几个commit然后push,之前的支持集成检查结果没有变化。

期望:对MR创建之后的commit/push的所触发的构建结果能够追加到MR里。

env.BRANCH_NAME返回的是null

不确定这个问题是出在Coding plugin上还是Jenkins上,先描述一下问题吧:

弄了一个Simple Pipeline项目。

在Jenkinsfile里通过全局变量${env.BRANCH_NAME}得到的结果是null。

不过在这个界面是能够看到当前构建分支的:

qq20181217-151606 2x

因为我有这么一个要求,develop分支的打包推送到nexus仓库,其他分支不推送,如果无法知道当前是什么分支就没有办法达到这个要求了。

构建结果无法反馈至 MR 中

环境

Coding Webhook + Jenkins Coding Webhook Plugin
已经设置完毕一切,包括访问令牌(Full Access)。
image

步骤

创建一个 MR,成功触发 Jenkins 构建。

结果

MR 页面没有出现构建情况的反馈。

疑问

是 coding 更改了 API 导致的问题吗?
该插件是否还在维护呢?

界面错乱,配置无法保存

Jenkins2.281版本和codinghook的1.4.2版本用在一起会导致配置页面错乱,并且无缘无故多出一个Transfers块,并且必须要填写。就算填写了也无法保存。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.