Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Post-Build Delivery set to deliver with no errors, but

I have declared a build definition with a post delivery from my integration stream to my release stream. I have specified the policy to be:

<i>Deliver if build has no errors or warnings.</i>

I am using a simple ant build process and have seen the build complete and deliver the code from the integration stream to the release stream.

The problem is :
I have introduced a compile error into one of the files. The code continues to get delivered to the release stream from the integration stream with the compile error.

The build shows up in the dashboard as failed.

<b>team.scm.deliver.triggerPolicy :NO_WARNINGS</b>

I've also set the trigger policy to <b>NO_ERROR</b>

Here is the snippet from the logs which shows the triggerPolicy, and the log showing that the integration code is delivered to the release stream.



&#91;echo&#93; Start Build Process&#58; _3YCgAOMJEeC2ctfjkYpq-w ...
&#91;echo&#93; Echo the post build delivery value of team.scm.deliver.triggerPolicy &#58;NO_WARNINGS
&#91;mkdir&#93; Created dir&#58; /buildRoot/engines/bpmdevinf001_engine5/build/PlayBack/load/componentA/build
&#91;javac&#93; Compiling 6 source files to /buildRoot/engines/bpmdevinf001_engine5/build/PlayBack/load/componentA/build
&#91;javac&#93; /buildRoot/engines/bpmdevinf001_engine5/build/PlayBack/load/componentA/src/com/xxx/B.java&#58;20&#58; cannot find symbol
&#91;javac&#93; symbol &#58; class strung
&#91;javac&#93; location&#58; class com.xxx.B
&#91;javac&#93; strung x = snull;
&#91;javac&#93; ^
&#91;javac&#93; /buildRoot/engines/bpmdevinf001_engine5/build/PlayBack/load/componentA/src/com/xxx/B.java&#58;20&#58; cannot find symbol
&#91;javac&#93; symbol &#58; variable snull
&#91;javac&#93; location&#58; class com.xxx.B
&#91;javac&#93; strung x = snull;
&#91;javac&#93; ^
&#91;javac&#93; 2 errors

BUILD FAILED
/buildRoot/engines/bpmdevinf001_engine5/build/PlayBack/load/componentA/build.xml&#58;11&#58; Compile failed; see the compiler error output for details.

Total time&#58; 42 seconds
Build failed. Exit value was 1.
2011-09-19 17&#58;56&#58;02 &#91;Jazz build engine&#93; Invoking post-build participant &quot;com.ibm.team.build.autoDeliver&quot;
2011-09-19 17&#58;56&#58;10 &#91;Jazz build engine&#93; Delivering components...
2011-09-19 17&#58;56&#58;10 &#91;Jazz build engine&#93; Post-build deliver complete.
Summary of Post-build Deliver&#58;
Build Workspace&#58;
&quot;4000 Integration Stream Build Workspace&quot; &#40;_jO2d0OCQEeC2cNfjkYpq-w&#41;
Deliver Target&#58;
&quot;4000 Release Stream&quot; &#40;_4jgvsOALEeC2b9fjkYpq-w&#41;
Delivered Snapshot&#58;
&quot;PlayBackBuildDef_20110919-1755&quot; &#40;_53mSseMJEeC2ctfjkYpq-w&#41;
Added Components&#58;
&lt;none&gt;
Replaced Components&#58;
&quot;SingleComponent&quot; &#40;_4wTOgOALEeC2b9fjkYpq-w&#41;
Removed Components&#58;
&lt;none&gt;


0 votes



4 answers

Permanent link
Hi Frank,

The good news is that this issue is fixed and available for RTC 3.0.1.1 (available ~ October). (as per this work item: 175702: 3.0.1.1 Backport: Post-build deliver still proceed even if the build failed

In the meantime, if you post the compile results to the build result it will correctly abort the auto-deliver. You can add the &quot;ECJ Publishing&quot; tab to the build result to do this, or use the &quot;jdtCompileLogPublisher&quot; to publish the compile results. (see this link on the available ant tasks used to publish build results.

0 votes


Permanent link
David,
I have updated the server:
Change and Configuration Management - Core Libraries 3.0.1.1 (RTC-I20111006-1106)
Jazz Foundation - Core Libraries 3.0.1.1 (RJF-I20111006-0903)

and still see the same problem, auto promote with a build failure:


Total time&#58; 5 seconds
Build failed. Exit value was 10.
2011-12-06 03&#58;53&#58;17 &#91;Jazz build engine&#93; Invoking post-build participant &quot;com.ibm.team.build.autoDeliver&quot;
2011-12-06 03&#58;53&#58;27 &#91;Jazz build engine&#93; Delivering components...
2011-12-06 03&#58;53&#58;38 &#91;Jazz build engine&#93; Post-build deliver complete.
Summary of Post-build Deliver&#58;
Build Workspace&#58;
&quot;8000 Build Release Stream Integration Build Workspace&quot; &#40;_fMClIAefEeGWk4mn4Kdi_w&#41;
Deliver Target&#58;
&quot;8000-Release&quot; &#40;_uCcaMPBdEeCki4EwQRsuZw&#41;
Delivered Snapshot&#58;
&quot;8000-Integration-Advanced_20111206-0138&quot; &#40;_8xgoQB_UEeGehsEPNI9jjA&#41;
Added Components&#58;
&lt;none&gt;
Replaced Components&#58;
&quot;XXX&quot; &#40;_Y2gzQPXUEeC9ZZ7RSd-fuQ&#41;
Removed Components&#58;
&lt;none&gt;




Hi Frank,

The good news is that this issue is fixed and available for RTC 3.0.1.1 (available ~ October). (as per this work item: 175702: 3.0.1.1 Backport: Post-build deliver still proceed even if the build failed

In the meantime, if you post the compile results to the build result it will correctly abort the auto-deliver. You can add the &quot;ECJ Publishing&quot; tab to the build result to do this, or use the &quot;jdtCompileLogPublisher&quot; to publish the compile results. (see this link on the available ant tasks used to publish build results.

									

0 votes


Permanent link
David,
I have updated the server:
Change and Configuration Management - Core Libraries 3.0.1.1 (RTC-I20111006-1106)
Jazz Foundation - Core Libraries 3.0.1.1 (RJF-I20111006-0903)


The fix is actually in the Jazz Build Engine (jbe.exe), not the server. Hopefully that helps.

0 votes


Permanent link
Yes, that does help

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 19 '11, 6:30 p.m.

Question was seen: 6,641 times

Last updated: Sep 19 '11, 6:30 p.m.

Confirmation Cancel Confirm