-
Notifications
You must be signed in to change notification settings - Fork 72
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
Mark pipeline waitForBuild step with the downstream build result #112
Conversation
Exception during
|
Re-opening to trigger a new build. |
1ca3981
to
f01a141
Compare
Update test
f01a141
to
a853887
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@olamy could you please merge this so it can be released? Thanks! |
"} finally {\n" + | ||
" echo \"'ds' completed with status ${ds.getResult()}\"\n" + | ||
"}", true)); | ||
j.assertLogContains("'ds' completed with status UNSTABLE", j.buildAndAssertStatus(Result.UNSTABLE, us)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sometimes fails: the message is printed but the upstream build is marked a success. The need for
Line 80 in f3599dd
buildersList.add(new SleepBuilder(500)); |
Lines 37 to 38 in f3599dd
taskListener.getLogger().println(runHyperLink + " is already complete"); | |
getContext().onSuccess(null); |
propagate
. If that behavior is intentional, then fixing the test properly would mean deleting the sleep and instead having the downstream build pause until a semaphore is set by test code after the upstream build starts waiting.
This is a new pipeline step that extends BuildTriggerStep from jenkinsci/pipeline-build-step-plugin#112 in order to add a new build action EiffelActivityDataAction to the downstream build. This build action will supplement Eiffel activity data that will override corresponding data fields in the EiffelActivityTriggeredEvent when the downstream build enters the build queue. Unfortunately, in order to add a new action to triggered builds, the step execution of BuildTriggerStep had to be modified, which meant that a number of project files had to be copied with slight modifications to ensure that there is no interference when running with both jenkinsci/eiffel-broadcaster-plugin and jenkinsci/pipeline-build-step-plugin. Also, to ensure the underlying build trigger functionality inherited by the buildWithEiffel step, a regression test suite has been added, containing all the BuildTriggerStep tests. These tests have been updated to use buildWithEiffel and the suite itself is excluded from normal testing to reduce execution time. Currently, buildWithEiffel step only supports activity name.
This is a new pipeline step that extends BuildTriggerStep from jenkinsci/pipeline-build-step-plugin#112 in order to add a new build action EiffelActivityDataAction to the downstream build. This build action will supplement Eiffel activity data that will override corresponding data fields in the EiffelActivityTriggeredEvent when the downstream build enters the build queue. Unfortunately, in order to add a new action to triggered builds, the step execution of BuildTriggerStep had to be modified, which meant that a number of project files had to be copied with slight modifications to ensure that there is no interference when running with both jenkinsci/eiffel-broadcaster-plugin and jenkinsci/pipeline-build-step-plugin. Also, to ensure the underlying build trigger functionality inherited by the buildWithEiffel step, a regression test suite has been added, containing all the BuildTriggerStep tests. These tests have been updated to use buildWithEiffel and the suite itself is excluded from normal testing to reduce execution time. Currently, buildWithEiffel step only supports activity name.
Add a WarningAction to the
waitForBuild
step FlowNode when the downstream build isn't successful.Also, log the build result when the downstream run completes.
This is the
waitForBuild
step equivalent of #107.Implements https://issues.jenkins.io/browse/JENKINS-70983