Skip to content
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

exception startng jirareporter 0.1 #4

Open
gcody opened this issue Dec 17, 2013 · 10 comments
Open

exception startng jirareporter 0.1 #4

gcody opened this issue Dec 17, 2013 · 10 comments
Assignees
Labels

Comments

@gcody
Copy link

gcody commented Dec 17, 2013

I am using teamcity-8.0.5 and installed jira-reporter-0.1 plugin. I have jira-4.3.4.
I added buildstep with jirareporter as last step.
The ticket in jira does exist. The teamcity user has permission to update it.
The ticket is of type 'Other'. The ticket is Open.
Enable Issue Processing is checked.
Enablee SSL is not checked.

SUCCESS:In Open-Close Issue,In Testing-Close Issue,Open-Close Issue;
FAILURE:Closed-Open Issue,In Resolved-Open Issue, In Testing-Open Issue;
My atlassian-security-log shows teamcity user connecting successfully.

I see this in agent log:
Description: Used to track the success/failure of the build. Teamcity will update
[11:07:47][Step 5/5] Failed to start build runner 'jirareporter'
[11:07:47][Step 5/5] com.atlassian.jira.rest.client.RestClientException: at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:68) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.post(AbstractJerseyRestClient.java:135) at com.atlassian.jira.rest.client.internal.jersey.JerseyIssueRestClient.addComment(JerseyIssueRestClient.java:367) at com.amirov.jirareporter.Reporter.report(Reporter.java:22) at com.amirov.jirareporter.JIRABuildProcess.start(JIRABuildProcess.java:50) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.CallRunnerStage.doBuildStage(CallRunnerStage.java:58) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83) at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24) at jetbrains.buildServer.agent.impl.BuildRunAction.doStages(BuildRunAction.java:70) at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:50) at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:248) at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:48) at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:221) at java.lang.Thread.run(Unknown Source) Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404 at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:628) at com.sun.jersey.api.client.WebResource.post(WebResource.java:223) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$6.call(AbstractJerseyRestClient.java:141) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient$6.call(AbstractJerseyRestClient.java:135) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:54) ... 27 more
[11:07:47][Step 5/5] Step report (JIRA Reporter) failed with unexpected error

@ghost ghost assigned mamirov Dec 18, 2013
@mamirov
Copy link
Owner

mamirov commented Dec 18, 2013

Are you downloading latest plugin from here?
https://bitbucket.org/mamirov/jirareporter/downloads/jirareporter.zip

Plugin updated 17.12.2013

@mamirov
Copy link
Owner

mamirov commented Dec 18, 2013

if you downloading older plugin with name jirareporter-0.1.zip, this maybe work wrong

@gcody
Copy link
Author

gcody commented Dec 18, 2013

Hello I downloaded from the link you provided. I stopped both teamcity server and agent. I removed plugin from server unpacked folder and agent plugin folder. Then installed latest 0.1 and started both. I still see exactly same error.

The jirareporter is retrieving the ticket subject and description from our jira which it prints to the log immediately before crashing.
ISSUE: XYZ-1234
Title: TeamCity Build trunk Status
Description: Used to track the success/failure of the build. Teamcity will update

Is the 404 error in the log from the teamcity login? I double-checked all the config items for the teamcity config within the jirareporter. It has the correct name/password/url (url is our base teamcitiy login page)

@gcody gcody closed this as completed Dec 18, 2013
@gcody gcody reopened this Dec 18, 2013
@gcody
Copy link
Author

gcody commented Dec 18, 2013

closed ticket by accident

@mamirov
Copy link
Owner

mamirov commented Dec 18, 2013

404 error, not found page. Maybe he cannot find correct url for work with jira api, because you use older jira version, i see this tommorow, thanks for reporting.

@gcody
Copy link
Author

gcody commented Dec 18, 2013

Let me know if I can provide more info or if you have another change you would like me to try
(FYI Unfortunately i cannot upgrade to a newer jira version at this time).

@mamirov
Copy link
Owner

mamirov commented Dec 19, 2013

Can you run jirareporter without issue progressing?

Send me your build agent log and error message from build log TeamCity.

When you run jirareporter you jira issue have status "In Testing"?

@mamirov
Copy link
Owner

mamirov commented Dec 19, 2013

You status of JIRA issue named 'Open' or 'In Open' ?

@gcody
Copy link
Author

gcody commented Dec 20, 2013

Hello To answer your questions
I turned off issue progressing and saw the same error. What is the plugin supposed to do differently?
I used the values from your example on the wiki page.
I also tried with just SUCCESS:Open-Close; FAILURE:Close-Open;

@mamirov
Copy link
Owner

mamirov commented Dec 20, 2013

I see this problem on holidays, because i can't install jira-4.3.4 on MAC OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants