New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build notifications are broken for pull request operations #133
Comments
I believe this problem is due to the fact that you have requested an SSH clone but you don't have any SSH keys on your account? |
@anandsterlite - any answer to the question from @pdodds? Obviously, it probably shouldn't be blowing up if there aren't SSH keys/clone URLs, but want to make sure that's the case first. |
I'm having the same issue, and getting the same error output in atlassian-stash.log Stash 3.11.1, my account definitely has an SSH key defined. This is only occurring on new repositories that I create. I have around 200 older repos that I created, they still notify Jenkins without any problem. Some users seem to be able to create repos with the same settings, and the Jenkins hook works on those repos, even for my account. |
So, seems that this problem is occurring for more folks, but having trouble trying to figure out the common thread in the problems. Couple of quick questions... does it seem to cause any difference on the user that created the repo or the user that pushed the commits? Wonder if there might be some admin rights issue. |
I thought I had it nailed down to something with repos that I created, but that theory didn't pan out this morning when I had someone else create a new repo... the same person whose new repo last worked for me. Both of us have always used non-admin accounts to keep from seeing code outside of our department. I created a repo with the "admin" account, no difference there either. The old repos continue to work no matter who pushes the changes. Everyone gets the same error in Stash's log when they push code to the new repos. Everything was working fine before we upgraded Stash from 3.6.1 to 3.11.1. Sorry about the ramble, but I'm kind of stumped. Please let me know what I can provide for debugging data and testing. |
I just installed a fresh demo copy of Stash 3.11.1 with no other plugins enabled, everything "stock", only the admin account, only one repo, and this error was triggered. This is on CentOS 6.6 (x86_64) fully patched. I think it's probably something with Stash 3.11.1. |
Stash now Requires Java 8. The Reporter uses 7. please Update breite further Investigation Males sense. |
breite = before; Males = makes. Damn autocorrect on phone. Sorry. |
Stash is using the bundled JRE, and there is no other JRE installed on the server:
The only modification made to the setenv.sh was to add http proxy params to |
With the fresh Stash install, did you setup SSH access for cloning? Can't remember if that's turned on by default now or not. |
Mk. Might have to do some source code digging into Stash. Not sure why this might have all of a sudden changed. @jweisner - You said you're seeing this in Stash 3.11.1. Any other versions seeing this too? |
The only thing remotely related that I could find in Atlassian's JIRA: https://jira.atlassian.com/browse/STASH-7656 |
I get a the same error. My issue seems to be a duplicate of this and was closed. The only difference I can add is that when doing a test trigger to Jenkins using the ssh path it triggers a build. It's commits that aren't triggering builds and occasionally dumping the reported stack trace. |
@mikesir87 I'm currently on 3.11.0 and seeing the same issue. I've had to reset all my jenkins jobs to polling. |
Also getting this error after a git push:
While the test trigger button works. |
Could it be linked to this interface being deprecated? |
It could be related, but it's actually been deprecated for a while. It Will dig into the source code a little tonight and see what conditions On Wed, Aug 12, 2015, 3:18 PM Pior Bastida notifications@github.com wrote:
|
@mikesir87 |
@pior That would work because the link isn't being generated at notification time and you're specifying it. So, that's expected. @TD-4242 @anandsterlite @jweisner - have either of you tried with Stash 3.11.2? I just tried it myself, fresh install, no setting changes. Looks likes the notification worked using SSH. Any luck on your end? |
I'm still seeing the Tried existing and new repos, no difference. If this is now working in new installs, then perhaps the source of the problem is fixed, but there's an issue with Stash's stored configuration? |
@pior @mikesir87 jenkins build console output:
|
@mikesir87 I have not, currently we are set to Custom and it's working. It may be a while before I can swing back around and try the upgrade. |
Ran into this after an upgrade to Stash 3.11.2. Odd thing is, it doesn't seem to be affecting all repos and I can't find a common thread between the broken ones (or obvious differences). |
Also ran into this after upgrade to 3.11.2. However, if I try to set the Clone URL Type to Custom and use the same SSH URL, it reverts to SSH type upon save. If I change the URL a little bit, it stays on Custom. |
We worked with Atlassian and they fixed the behavior in 3.11.4. We pushed out an update last week and so far looks good. |
@bmoyles thanks for info! |
When we submit a pull request or reopen or update, this plugin couldn't able to resolve 'SSH clone url' using Stash SPIs, so the build notifications to jenkins are failing around this functionality.
"POST /rest/api/latest/projects/PROJECT/repos/REPOSITORY/pull-requests/3/reopen HTTP/1.1" com.nerdwin15.stash.webhook.Notifier Error getting Jenkins URL
java.lang.IllegalStateException: There were no SSH clone links generated for repository PROJECT/REPOSITORY
at com.atlassian.stash.internal.ssh.service.DefaultSshCloneUrlResolver.getCloneUrl(DefaultSshCloneUrlResolver.java:37) ~[na:na]
at com.nerdwin15.stash.webhook.Notifier$2.perform(Notifier.java:258) ~[plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.nerdwin15.stash.webhook.Notifier$2.perform(Notifier.java:255) ~[plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51) ~[stash-service-impl-3.11.0.jar:na]
at com.atlassian.stash.internal.user.DefaultSecurityService.doWithPermission(DefaultSecurityService.java:77) ~[stash-service-impl-3.11.0.jar:na]
at com.nerdwin15.stash.webhook.Notifier.getUrl(Notifier.java:255) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.nerdwin15.stash.webhook.Notifier.notify(Notifier.java:196) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.nerdwin15.stash.webhook.Notifier.notify(Notifier.java:165) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.nerdwin15.stash.webhook.Notifier$1.call(Notifier.java:144) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at com.nerdwin15.stash.webhook.Notifier$1.call(Notifier.java:141) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
... 44 frames trimmed
The text was updated successfully, but these errors were encountered: