[HAP-1144] Build breaks with newest Git versions Created: 06/Feb/19  Updated: 12/Feb/19  Resolved: 10/Feb/19

Status: Resolved
Project: Jenkins Artifactory Plug-in
Component/s: None
Affects Version/s: 3.1.0
Fix Version/s: 3.1.1

Type: Bug Priority: Blocker
Reporter: Markus Amshove Assignee: Eyal Ben Moshe
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Relationship
relates to HAP-1143 Plug-in hangs in "run" in scripted mode Resolved

 Description   

Hello,

 

I've updated the Git plugin in our Jenkins to 4.0 and the Git client plugin to 3.0, because security related warnings have been published.

 

Since updating them, I can't build any projects that use the Artifactory plugin to upload artifacts.

 

The error:

```

java.lang.NoSuchMethodError: org.eclipse.jgit.internal.storage.file.FileRepository.getRef(Ljava/lang/String;)Lorg/eclipse/jgit/lib/Ref;
at org.jfrog.hudson.pipeline.common.Utils$1.invoke(Utils.java:148)
at org.jfrog.hudson.pipeline.common.Utils$1.invoke(Utils.java:145)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Thread.java:748)
```

At first I thought it was [this](https://issues.jenkins-ci.org/browse/JENKINS-53004) issue, but looking closer at the stacktrace it has jfrog in it



 Comments   
Comment by Yahav Itzhak [ 06/Feb/19 ]

Thanks for reporting this issue, Markus Amshove.

This pull request should resolve this issue. We are working to merge it.

We'll keep you updated.

Comment by Yahav Itzhak [ 07/Feb/19 ]

Markus Amshove,
This commit should resolve this issue.

Here you can download a snapshot with a fix.

Appreciate your feedback for that!

Comment by Markus Amshove [ 08/Feb/19 ]

Hi Yahav Itzhak,

 

I can confirm that the snapshot fixes the issue

 

Tested with

  • Artifactory-Plugin:3.1.x-SNAPSHOT (private-ffae12de-jenkins)
  • Git plugin: 4.0.0-rc
  • Git client plugin: 3.0.0-rc

 

Thank you for the quick response

 

Comment by Yahav Itzhak [ 11/Feb/19 ]

Markus Amshove

Jenkins-Artifactory plugin v3.1.2 is released. This version includes a fix for this issue.

Feel free to upgrade.

Comment by Markus Amshove [ 12/Feb/19 ]

I can confirm that it works with the release

Generated at Sun May 26 19:53:39 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.