[JIRA] [pretested-integration-plugin] (JENKINS-30465) Build job succeds even though pretested says error

2 views
Skip to first unread message

pablaasmo@java.net (JIRA)

unread,
Sep 15, 2015, 10:05:07 AM9/15/15
to jenkinsc...@googlegroups.com
Per Arnold Blaasmo created an issue
 
Jenkins / Bug JENKINS-30465
Build job succeds even though pretested says error
Issue Type: Bug Bug
Assignee: Praqma Support
Components: pretested-integration-plugin
Created: 15/Sep/15 2:04 PM
Priority: Major Major
Reporter: Per Arnold Blaasmo

The preintegration post build step fails with an exception and marks build as failure.
Still the build ends up as success.

[PREINT] Performing pre-verified post build steps
[PREINT] Using the master branch for polling and development is not allowed since it will attempt to merge it to other branches and delete it after. Failing build.
ERROR: Build step failed with exception
java.lang.IllegalStateException: cannot change build result while in POST_PRODUCTION
	at hudson.model.Run.setResult(Run.java:459)
	at org.jenkinsci.plugins.pretestedintegration.scm.git.GitBridge.handlePostBuild(GitBridge.java:565)
	at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationAction.finalise(PretestedIntegrationAction.java:94)
	at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:58)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
	at hudson.model.Build$BuildExecution.cleanUp(Build.java:193)
	at hudson.model.Run.execute(Run.java:1785)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:381)
Build step 'Pretested Integration post-build' marked build as failure
[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
Warning: ‘Access Control for Builds’ in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered
Triggering a new build of pack-status__publish__master
Finished: SUCCESS
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

man@praqma.net (JIRA)

unread,
Sep 15, 2015, 10:27:04 AM9/15/15
to jenkinsc...@googlegroups.com
Mads Nielsen commented on Bug JENKINS-30465
 
Re: Build job succeds even though pretested says error

Thanks for reporting this Per.

It's been added to our worklog for September.

man@praqma.net (JIRA)

unread,
Sep 15, 2015, 10:32:01 AM9/15/15
to jenkinsc...@googlegroups.com
Mads Nielsen updated an issue
 
Build job succeds even though pretested says error (case 13574)
Change By: Mads Nielsen
Summary: Build job succeds even though pretested says error  (case 13574)

scm_issue_link@java.net (JIRA)

unread,
Jan 5, 2016, 4:13:02 AM1/5/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-30465
 
Re: Build job succeds even though pretested says error (case 13574)

Code changed in jenkins
User: Mads Nielsen
Path:
src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java
src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPostCheckout.java
src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/GitBridge.java
src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/GitIntegrationStrategy.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/unit/PretestedIntegrationBuildWrapperTest.java
http://jenkins-ci.org/commit/pretested-integration-plugin/019c19b0b651db847a47de431feef6fc91933d55
Log:
JENKINS-30465 Post Build step unable to change status of build

We've changed our post build step to a Recorder, one which is able to change the result.

This also means we had to remove the automatically added git publisher. This now needs to
be added manually.

thi@praqma.net (JIRA)

unread,
Jan 5, 2016, 5:52:04 AM1/5/16
to jenkinsc...@googlegroups.com
Thierry Lacour resolved as Fixed
 

Fixed in 2.4.0

Change By: Thierry Lacour
Status: Open Resolved
Resolution: Fixed

thi@praqma.net (JIRA)

unread,
Jan 5, 2016, 5:55:03 AM1/5/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages