tikal-multijob-plugin icon indicating copy to clipboard operation
tikal-multijob-plugin copied to clipboard

Jobs status is greyed out even if build is running

Open guruvamsichintala opened this issue 6 years ago • 20 comments

Sub jobs does not display the status even if they are running. With the jenkins update to the version 2.107.2, status of sub jobs are greyed out and gives hard time to figure out the current phase of job while running.

guruvamsichintala avatar May 04 '18 15:05 guruvamsichintala

We are also facing the same issue after the plug-in upgrade to 1.30 with Jenkins version 2.107.2

kkrhdd avatar May 08 '18 03:05 kkrhdd

We are also seeing this issue. Same versions as @kkrhdd

ps-beilers avatar May 14 '18 13:05 ps-beilers

Downgrade to 1.29 from 1.30 resolved the issue for now. I think it's a regression .

kkrhdd avatar May 15 '18 07:05 kkrhdd

I was unable to recreate this issue using Jenkins 2.107.2/3 and multijob 1.30 on a newly created multijob job. Please elaborate on the steps taken to recreate this issue. Also, try to create new multijob, phase, and an example job and confirm this issue recreates

cohencil avatar May 15 '18 09:05 cohencil

Downgraded the plugin and it works.

guruvamsichintala avatar May 15 '18 21:05 guruvamsichintala

@cohencil

Jenkins Version: 2.107.2/3

Before Upgrade: image

Multi Job Project is working fine as below: image

After Plugin Upgrade: image

Updated Version 1.30 image

Job Icons are greyed out. image

When created new multi-job project (with the same set of jobs), It works fine: image

Jobs which are created before upgrade are having the issue.

kkrhdd avatar May 22 '18 05:05 kkrhdd

@kkrhdd can you compare the config.xml of the upgraded job with the newly created job? There is probably something missing from the upgraded job - which should be handled by the plug-in.

stefandrissen avatar May 23 '18 05:05 stefandrissen

@stefandrissen

The diff looks like below.

image

kkrhdd avatar May 23 '18 09:05 kkrhdd

Great - so if the plug-in /expects/ a jobAlias it should be added as part of the upgrade process.

As a work-around, editing and saving an upgraded multi-job project may be enough to add the missing properties - I will try this later on.

stefandrissen avatar May 23 '18 14:05 stefandrissen

Unfortunately simply saving an existing job only results in empty jobAlias tags being added.

When going to the configuration, the 'Job alias' is available as an editable field - so I suppose the work-around is to copy / paste the 'Job name' to the 'Job alias'.

stefandrissen avatar May 28 '18 12:05 stefandrissen

After adding the jobAliases everything works - but - all jobs are shown with their alias in brackets. I noticed that the comparison screen shots above do not show an extra alias. So figured that the jobAlias is /not/ mandatory. I removed the jobAlias thru the user interface again and everything seems to be behaving.

Conclusion: saving the job (which adds the jobAlias tags) is probably enough even though this step should not be necessary.

stefandrissen avatar May 29 '18 08:05 stefandrissen

Update: even after running with saved jobs in which the jobAlias is set to empty - the update mechanism of a completed or running job does not look right. When the multi-job is complete, the status of the sub jobs looks pretty random and does not reflect the status of the job executed within the multi-job's context. I have subjobs reporting failed, when the last 10 builds were fine and the 11th oldest subjob failed. Delete the older failure resulted in the subjob within the multi-job showing 'completed' again.

I am reverting to the previous version of this plug-in, I hope the jobAlias change #126 is either thoroughly fixed and tested or rolled back.

stefandrissen avatar Jun 04 '18 09:06 stefandrissen

This PR fixes the issue: https://github.com/jenkinsci/tikal-multijob-plugin/pull/142

vlsi avatar Jun 04 '18 13:06 vlsi

. When the multi-job is complete, the status of the sub jobs looks pretty random and does not reflect the status of the job executed within the multi-job's context. I have subjobs reporting failed, when the last 10 builds were fine and the 11th oldest subjob failed. Delete the older failure resulted in the subjob within the multi-job showing 'completed' again.

@stefandrissen , I agree there's issue. That is #142 does not fully resolve it, however it solves "all jobs being gray" issue at least.

vlsi avatar Jun 04 '18 13:06 vlsi

First I am very sorry for all the trouble i made with the jobAlias Changes... But I finally fixed the issue @stefandrissen talked about in detail. I also included the Fix from @vlsi in my own way so in other words it is not necessary to merge #142 .

ptrsny avatar Jun 22 '18 10:06 ptrsny

It doesn't look fixed. Installed latest version of plugin and we still doesn't see the status of running sub-jobs.

guruvamsichintala avatar Aug 09 '18 19:08 guruvamsichintala

Still looks like this is a problem, just upgraded to Jenkins 2.150.2 and MultiJob 1.32 and the issue is there with new and existing MultiJobs, roll back to 1.29 and problem goes away.

steve-sumner avatar Jan 22 '19 11:01 steve-sumner

Sorry for the necro-bump, but any plans on fixing this?

Still not working on the latest 1.32 release.

I tried installing the .hpi file for the 1.29 version, taken from the plugins repository, but then the multi-job build step just stopped working entirely; the sub-jobs never got triggered, the parent job would just result in success always.

The plugin is incredibly useful overall, specially when paired with job-dsl, but this bug really makes the multi-job view that is created pretty much useless.

dnery avatar Apr 01 '20 17:04 dnery

This is a problem for us also in Pipeline Multi Job, any idea by when the issue is planned to be fixed?

bpbhai avatar May 18 '20 12:05 bpbhai

I'll try to find time for this soon. If someone can PR me on it, it would be great.

Yoram

On Mon, May 18, 2020 at 3:49 PM bpbhai [email protected] wrote:

This is a problem for us also in Pipeline Multi Job, any idea by when the issue is planned to be fixed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jenkinsci/tikal-multijob-plugin/issues/135#issuecomment-630160479, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASZBEV5CWKQHL6G47DA7VTRSEVF7ANCNFSM4E6LIC2A .

-- Yoram Michaeli DevOps Tech Leader 052-5766838 [email protected]

yorammi avatar May 18 '20 13:05 yorammi