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

Next phase is EXECUTING even though the previous phase is FAILED #189

Open
waguerin opened this issue Aug 6, 2019 · 6 comments
Open

Next phase is EXECUTING even though the previous phase is FAILED #189

waguerin opened this issue Aug 6, 2019 · 6 comments

Comments

@waguerin
Copy link

waguerin commented Aug 6, 2019

See the following for a similar issue: https://issues.jenkins-ci.org/browse/JENKINS-51126

I have a multijob project which is encountering the same issue as above. All of the phase configurations are as follows:
Job Execution Type: Running phase jobs sequentially
Continuation condition to next phase when jobs' statuses are: Successful

For example, I will build the multijob project, a job will fail, yet the next phase will execute. Then I immediately rebuild it (without making any changes), the same job fails, but the phase execution is correctly stopped.

What is is about my multijob configuration that is causing it to occasionally ignore the continuation condition? Is there something I can do as a workaround?

Using Multijob Plugin 1.32

@waguerin
Copy link
Author

waguerin commented Aug 6, 2019

Example project where the issue is observed:
Capture

Both phases are set as follows:
ex5

Env variable PHASE_1_RESULT was set to SUCCESS, yet it had a failure:
ex3
ex4

Console output:
Capture2

@yorammi
Copy link
Contributor

yorammi commented Aug 6, 2019 via email

@waguerin
Copy link
Author

waguerin commented Aug 8, 2019

Are you sure that 'failure' job is set to propagate the phase?

On Tue, Aug 6, 2019 at 11:10 PM waguerin @.***> wrote: Example project where the issue is observed: [image: Capture] https://user-images.githubusercontent.com/53836275/62573656-204e1180-b85c-11e9-9a1f-c3713cce2b2d.PNG Both phases are set as follows: [image: ex5] https://user-images.githubusercontent.com/53836275/62573123-e4667c80-b85a-11e9-885e-6fade07bfa14.PNG Env variable PHASE_1_RESULT was set to SUCCESS, yet it had a failure: [image: ex3] https://user-images.githubusercontent.com/53836275/62573251-3e674200-b85b-11e9-8b25-8551f66f30b0.PNG [image: ex4] https://user-images.githubusercontent.com/53836275/62573396-9aca6180-b85b-11e9-9806-df6aa743bb21.PNG Console output: [image: Capture2] https://user-images.githubusercontent.com/53836275/62573702-3eb40d00-b85c-11e9-86a8-f691dd2b050d.PNG — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#189?email_source=notifications&email_token=AASZBEVJ5CLTGDENORN564DQDHLEBA5CNFSM4IJZR6DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3WKG7Y#issuecomment-518824831>, or mute the thread https://github.com/notifications/unsubscribe-auth/AASZBEWKNVJ3HUWUGELV5QDQDHLEBANCNFSM4IJZR6DA .
-- Yoram Michaeli DevOps Tech Leader 052-5766838 [email protected] [image: Picture]

How do I know if a job is set to propagate the phase or not?

The success and failure jobs only return an exit code. Other than that, they are blank projects with default configurations. The phase jobs in the multijob config are also default settings.

@Leenachaudhari25
Copy link

Hi
Is the fix for this issue available. We have encountered the same issue. We noticed that in the Multijob project the phase result was returning Success even when one of the jobs failed.

@Leenachaudhari25
Copy link

Hi any update on the issue. Is there a work around available for this?

@RochaStratovan
Copy link

Encountering the problem off and on in our environment too. Fix would be appreciated.

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

No branches or pull requests

4 participants