Hi Team, 

Facing issues when integrating Jira with Jenkins.
   
   - We have followed the method mentioned (URL:
   
http://stackoverflow.com/questions/24239678/jenkins-integration-with-jira-issue)
 
   inorder to do integration between Jira & Jenkins. But we are not able to 
   get notification on failed builds in Jira / raise a Issue for failed 
   builds. We have used both Jira Plugin for Jenkins as well as Jenkins Plugin 
   for Jira on both sides inorder to create reciprocal application links.
   - Environment Details:
   ------------------------
   1. Jira
   OS : Ubuntu 1404LTS
   Version : v6.4.12
   2. Jenkins 
   OS : Ubuntu 1404LTS
   Version : 1.646
   3. JIRA Plugin for Jenkins
   Version : 1.5.6


Herewith attaching the logs in Jenkins when the job tries to create a Jira 
issue.
Kindly do let us know for want of more information to help you understand 
more of our issue. Happy to do a Screenshare/WebEx session for resolving 
this issue.
Regards,PremKumar (For Trianz) 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2bf3fa0a-b923-4922-8d80-9bf1671250e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Scenario1
=========
Jenkins Console Output:
-----------------------
Build step 'Invoke Ant' marked build as failure
Successfully triggered JIRA to update builds of this job
ERROR: Build step failed with exception
java.lang.NullPointerException
        at 
hudson.plugins.jira.JiraCreateIssueNotifier.getStatus(JiraCreateIssueNotifier.java:186)
        at 
hudson.plugins.jira.JiraCreateIssueNotifier.currentBuildResultFailure(JiraCreateIssueNotifier.java:332)
        at 
hudson.plugins.jira.JiraCreateIssueNotifier.perform(JiraCreateIssueNotifier.java:133)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
        at hudson.model.Build$BuildExecution.post2(Build.java:185)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
        at hudson.model.Run.execute(Run.java:1763)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:410)
Build step 'Create Jira Issue' marked build as failure
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE

Jenkins Log:
------------
Feb 01, 2016 3:51:15 PM INFO 
com.marvelution.jenkins.plugins.jira.filter.OAuthFilter loginUser
Impersonating 'SYSTEM' to serve OAuth request: 
http://xxxx:8080/jenkins-jira-plugin/static/help.html
Feb 01, 2016 3:51:15 PM INFO 
com.marvelution.jenkins.plugins.jira.filter.OAuthFilter loginUser
Impersonating 'SYSTEM' to serve OAuth request: http://xxxx:8080/api/json
Feb 01, 2016 3:51:15 PM INFO 
com.marvelution.jenkins.plugins.jira.filter.OAuthFilter loginUser
Impersonating 'SYSTEM' to serve OAuth request: http:/xxxx:8080/api/json
Feb 01, 2016 3:57:40 PM INFO hudson.model.Run execute
General/DevOps_InvoiceDemo_Build #246 main build action completed: FAILURE
Feb 01, 2016 3:57:40 PM WARNING hudson.plugins.jira.JiraRestService getIssue
jira rest client get issue error. cause: 
RestClientException{statusCode=Optional.of(404), 
errorCollections=[ErrorCollection{status=404, errors={}, errorMessages=[Issue 
Does Not Exist]}]}

Scenario2
=========
Jenkins Console Output:
-----------------------
Total time: 12.462 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Successfully triggered JIRA to update builds of this job
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE

Jenkins Log:
------------
Feb 01, 2016 4:01:29 PM INFO hudson.model.Run execute
MobileBuilds/testjira01 #10 main build action completed: FAILURE

Scenario3
=========
Jenkins Console Output:
-----------------------
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
-------------------------------------------------------
JIRA Update Results Recorder
-------------------------------------------------------
Unable to connect to REST service
java.io.FileNotFoundException: 
http://xxxx:8080/rest/api/2/issue//search?jqlBuild step 'JIRA Issue Results 
Updater' marked build as failure
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE

Jenkins Log:
------------
Feb 01, 2016 4:14:53 PM INFO hudson.model.Run execute
MobileBuilds/testjira01 #11 main build action completed: FAILURE

Reply via email to