Started with a fork of the Campfire plugin:
jlewallen / jenkins-hipchat-plugin Goto Github PK
View Code? Open in Web Editor NEWbasically forked the campfire plugin and made things hipchatish
basically forked the campfire plugin and made things hipchatish
Started with a fork of the Campfire plugin:
The hipchat notifier posts (Open) links into the hipchat, but they are relative path's like /job/metrics/68/ instead of a full URL like http://xxxx/job/metrics/68/.
I have set my "Jenkins URL" in the HipChat config but notifications are still only showing up as relative paths.
Hi,
Thanks for your work on that plugin, we've been using it for a while and are very satisfied. We encountered one issue that could possibly be addressed in a future version.
We configured our "Global HipChat Notifier Settings", then created our jobs and everything works well. However, once the jobs have been created, we changed the "Room". All jobs that we had created before making that change still point to the old "Room" value.
We can overwrite the "Room" property in every job and specify a "Project Room", but that's not very convenient.
Thanks,
Mike
Now that fine grained notification is implemented a nice "All" would be good vs having to selected every box. Thanks
Messages fail to be sent if the “Send As” value is greater than 15 characters:
Jun 04, 2014 4:31:10 PM WARNING jenkins.plugins.hipchat.StandardHipChatService publish
HipChat post may have failed. Response: {"error":{"code":400,"type":"Bad Request","message":"From name must be between 1 and 15 characters."}}
Hello,
I'd love to use this plugin but I don't feel like installing the libs to build it. Could you provide the hpi on github downloads?
Thanks!
Hello,
I've installed the plugin and configured it but I am not receiving any notifications in Hipchat.
Can you please clarify which API key I should be using - one generated from Group Admin -> API, or one from a users's Account Settings -> API access page?
Is there a log file somewhere that I can tail to try and diagnose the issue?
Thank you
I don't have a Java dev environment, and I'm used to adding plugins via the Jenkins management UI.
Would you be willing to follow the steps at https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Releasingtojenkinsci.org so this plugin can be added to a CI as easily as other plugins can?
Or has this been done, and I'm missing it?
BTW, thanks for building this plugin; I'd love to help get this published, but it will be a while before I have the opportunity.
Thanks!
-Patrick
I was looking at this hipchat notification:
Master - #12 Started by changes from softsupport (31 file(s) changed) (Open)
and was a bit confused. I think its supposed to say "Started by Anonymous, changes from softsupport"?
I'm guessing this because above in a previous build, it had "Started by anonymous".
Hello,
I am currently running jenkins 1.471 with hipchat plugin 0.1.4. I have everything configured token, room id, enable notification etc. When a build is triggered I am not seeing anything in the logs that the hipchat plugin got triggered. I have tried to implement my own loggers and still nothing. I have also posted a comment on the main wiki page along with jenkins bug ticket.
https://wiki.jenkins-ci.org/display/JENKINS/HipChat+Plugin?focusedCommentId=62063011#comment-62063011
https://issues.jenkins-ci.org/browse/JENKINS-14025
Any help would be appreciated. I don't know what side this issue is on Jenkins or plugin.
This plugin can not work for me. I am not sure it is due to my jenkins incorrect configuration or plugin bug. So I do some investigation:
I check jenkins configuration page, and find this issue in "Global HipChat Notifier Settings". When I click "?" icon, it displays this alert info "ERROR: Failed to load help file: Not Found". Then I use chrome developer tool to catch more info, and find:
GET http://10.128.5.136:8888/jenkins/jenkins/plugin/hipchat/help-globalConfig-hipChatBuildServerUrl.html 404 (Not Found)
This http request is send when I click "?" icon. but the url path is incorrect, which should be:
http://10.128.5.136:8888/jenkins/plugin/hipchat/help-globalConfig-hipChatBuildServerUrl.html
Here is image to show above issue:
My jenkins url is http://10.128.5.136:8888/jenkins
Then I find similar issue in other jenkins plugin: https://issues.jenkins-ci.org/browse/JENKINS-12433
This issue happens when jenkins url is NOT root url.
So I guess it may be a plugin bug.
We use parameterized jobs to deploy services, and we are notified about their start/finish via Hipchat. Knowing what environment is being deployed to in Hipchat would make our life much easier.
Any way to put the git branch name into the message sent to hipchat?
No issues, just wanted to say thank you for creating this.
When constructing HttpClient, there is no timeout set. We have experienced in several cases our Jenkins jobs stuck for hours even days on sending notification to HipChat. Here is an example thread dump:
Executor #3 for osx-slave2 : executing Core OS X #676
"Executor #3 for osx-slave2 : executing Core OS X #676" Id=149307 Group=main RUNNABLE (in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:554)
at sun.security.ssl.InputRecord.read(InputRecord.java:509)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
- locked java.lang.Object@702cf130
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
- locked java.lang.Object@168ebfd9
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
- locked sun.security.ssl.AppOutputStream@15c5fd5a
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
- locked java.io.BufferedOutputStream@46e3166f
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at jenkins.plugins.hipchat.StandardHipChatService.publish(StandardHipChatService.java:43)
at jenkins.plugins.hipchat.ActiveNotifier.completed(ActiveNotifier.java:63)
at jenkins.plugins.hipchat.HipChatListener.onCompleted(HipChatListener.java:26)
at jenkins.plugins.hipchat.HipChatListener.onCompleted(HipChatListener.java:14)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
at hudson.model.Run.execute(Run.java:1727)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Though the thread has state "RUNNABLE" but it is in a native method that does the network operation. When it hangs, java thread still show as "RUNNABLE"
Without the timeout set, the operation will wait forever I believe.
It would be sweet if some basic test result info could be sent over in the notification, something along the lines of:
Tests passed: 123, failed: 3, ignored: 1
...with a link to the jenkins test report included.
At the end of my Hipchat message, there is a link titled (Open). Nothing happens when I click on it. I would assume it would take me to the corresponding Jenkins job or be configurable.
For example, It'd be nice if our "Android" jobs could go to a Mobile HipChat room.
I.e. I have to enter each time hipchat token, room name and jenkins url.
I use Jenkins 1.454 on Debian squeeze with HipChat plugin 0.1.3.
Everything goes smoothly until the plugin is triggered at the end of an otherwise successful build, then this is thrown:
ERROR: Publisher jenkins.plugins.hipchat.HipChatNotifier aborted due to exception
java.lang.UnsupportedOperationException
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:59)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:639)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:617)
at hudson.model.Build$RunnerImpl.post2(Build.java:161)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:586)
at hudson.model.Run.run(Run.java:1400)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:175)
Finished: FAILURE
I have job with HipChat notification and send me notification ok.
But in promotion job log is ok:
build jenkins.plugins.hipchat.HipChatNotifier@133c7ae SUCCESS
but message not arrived. In catalina.out missing info notification about sending message.
Hello,
I'm trying to create a hipchat plugin which does not need any server (like redis) to be kept started continuously as explained in https://developer.atlassian.com/hipchat/tutorials/getting-started-with-atlassian-connect-express-node-js and the plugin can be available in Atlassian Marketplace.
I don't have much idea about it so please guide me.
Thank you
The hipchat notifier posts (Open) links into the hipchat, but they are relative path's like /job/metrics/68/
instead of a full URL like http://xxxx/job/metrics/68/
. I don't see an option to configure this?
On the Manage Jenkins page, under "Global HipChat Notifier Settings" I set the "Jenkins URL" to our jenkins sever (eg, http://foo.bar.com/) but when jenkins sends a message to our HipChat channel, the urls to the build are of the form "/job/project-name/buildNumber/"
I've also set the "Jenkins URL" property under the "Jenkins Location" on the Manage Jenkins page, and it's set to the same value.
I see this in my jenkin logs:
Mar 20, 2012 10:14:21 AM jenkins.plugins.hipchat.StandardHipChatService publish
INFO: Posting: Jenkins to 40365: my-project-build - #81 Success after 8 min 3 sec (<a href='https://my.domain.com/jenkins/job/my-project-build/81/'>Open</a>) green
however I never get the notification in Hipchat. I have tried both the room ID as well as room name.
How can I debug this further?
PS This used to work fine. Not sure when it stopped working. I updated to the latest jenkins and hipchat plugin to see if that would fix it, but it didn't.
From the StandardHipChatService the publish methods seems to do a POST request.
But after testing the hipchat API it seems to only work with GET requests.
It complains of missing parameters when a POST is done
Perhaps when the plugin Jenkins URL
is blank, it can fallback to the Jenkins Jenkins URL
.
Maybe this is it... Hudson.getInstance().getRootUrl()
from hudson.plugins.im.tools.MessageHelper::getBuildURL()
Right now it looks like the the Hip Chat room is used for all Jenkins jobs. Is there a way to change the room on a per job basis for the post build Hip-Chat Notifications action? I see that there is a parameter in the job's config.xml, but any changes made to that file manually are whipped out when you resave the job from within jenkins.
Also wondering if I'm missing something since the help for this plugin says: "You can customize the room name per-project, but should always enter a default here."
Thanks!
After updating the hipchat plugin, all our builds stopped notifying because of some changes in the settings. That is quite annoying since we have a few dozen builds and it is a lot of click work to fix. Instead of having to configure this per job it would be much nicer to have (optional) global notification settings for all builds. Basically, if any build fails, we want to be notified.
This plugin loses its global settings when Jenkins is restarted. The xml file is still there and has the correct information in it, but the fields in Jenkins' settings page are blank and no messages show up in HipChat. If I re-enter all of them, messages start flowing again (until the next restart).
This is with Jenkins 1.526 with version 0.1.0 of the plugin on Ubuntu Linux 12.04.2 64-bit.
java -version
returns:
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Hi.
Somebody know how to generate the hpi file?
Is this plugin working with hudson?
Thanks!
Love the plugin, just thought I'd note that it posts to the chat as Hudson rather than Jenkins.
It might be nice to be able to configure the plugin to allow hipchat notifications from failed builds. Though others may want notifications for successful build results
Right now, there are contributors who are offering dropbox links to hpi builds (see: #3) -- nothing against them -- but I'd rather have a build from JenkinsCI and there a few commits (2 years worth) on master that would be very useful for this plugin.
May we please get a new plugin release? 🎱
I see in the source of HipChatJobProperty that I can configure different types of notification. However, these are not visible to me in the UI. I can only choose the room and start notification. The fields are not present in the HTML either.
Am I missing something?
hi,
recently I was using the plugin for notification the sanity check job (runs via Jenkins cron each 30 min).
so it looks kinda bored to be notified in each 30 minute about a "green line" (it usually passed)
could it be possible please to make an option to choose when to send the notifications ?
(for me its ideal to have options to choose like: failed/still failing/fixed builds) - so the continuous "fixed/green" messages would be omitted.
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.