Git Product home page Git Product logo

jenkins-hipchat-plugin's Introduction

jenkins-hipchat-plugin's People

Contributors

darrinholst avatar iristyle avatar jessedearing avatar jglick avatar jlewallen avatar kellybyrd avatar peterlynch avatar phil-schneider avatar rocketraman avatar takai avatar thatguy1177 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  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

jenkins-hipchat-plugin's Issues

Global settings ignored after updating

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

failure to send if “Send As” > 15 characters

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."}}

Jenkins isn't sending any notifications

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

Release to Jenkins-ci.org

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

Anonymous Jenkins user name is empty string

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".

0.1.4 plugin not getting triggered - Jenkins 1.471

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.

Failed to load help file issue

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:
screen shot 2014-09-29 at 9 08 43 pm

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.

Show Build Parameters

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.

Thank you!

No issues, just wanted to say thank you for creating this.

No timeout set on HttpClient

At https://github.com/jlewallen/jenkins-hipchat-plugin/blob/master/src/main/java/jenkins/plugins/hipchat/StandardHipChatService.java#L60

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.

Include test results in notification

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.

Links in Hipchat messages don't work

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.

Error: aborted due to exception java.lang.UnsupportedOperationException

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

Post full URLs to hipchat, not just relative paths.

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?

hip chat build message have invalid url

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.

Notification does not work

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.

Change Hip Chat room per Jenkins Job

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!

global notifications

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.

Global settings are lost on restart

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)

Hipchat Notifications

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

Please cut a new release - v1.5

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? 🎱

Cannot see the options in my job preferences

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.

screen shot 2013-11-27 at 08 07 24

Am I missing something?

failed/still failing/fixed - options to chose when to send notifications

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.

Global HipChat Settings Not Updating

I've updated my Jenkins URL under global HipChat settings yet notifications are still sent with null URLs: "nulljob/project_name/9/"

INFO: Posting: Jenkins to 1234: project_name - #9 Success after 2.1 sec (Open) green

I've tried restarting Jenkins with no luck.

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.